Skip to content

Instantly share code, notes, and snippets.

Eugene Schava eschava

  • Ukraine
Block or report user

Report or block eschava

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
View hysteresis.js
module.exports = function(RED) {
function HysteresisNode(config) {
RED.nodes.createNode(this, config);
var node = this;
this.on('input', function(msg) {
if (msg.hasOwnProperty('payload')) {
var this_value = Number(msg.payload);
if (! isNaN(this_value)) {
var last_value = Number(node.last_value);
var last_edge = node.last_edge;
View gist:7698ca014ad6c323ccac08828bb25c7f
# broadlink-mqtt
BROADLINKMQTTCONFIG=/home/cubie/broadlink-mqtt/mqtt.conf /home/cubie/broadlink-mqtt/ &
You can’t perform that action at this time.