Instantly share code, notes, and snippets.

View .block
height: 700
scrolling: yes
View .block
height: 700
scrolling: yes
View .block
license:
View .block
license: mit
View .block
license: mit
View .block
license: mit
View .block
license: mit
View .block
license: mit
View gist:67b324e2454280a2868b5430bd37d09e
var now = (new Date()).toTimeString().slice(0,5);
if (msg.payload === now) {
return msg;
}
return null;
View gist:0e7935a577c8d65d2c1b9465b2048051
[{"id":"a44bfc41.6faae","type":"ui_text","z":"96082429.7476f8","group":"221ee4e8.e06a1c","order":0,"width":0,"height":0,"name":"","label":"value","format":"{{msg.payload}}","layout":"row-spread","x":1105,"y":4899,"wires":[]},{"id":"9b9c669f.9c0a58","type":"ui_slider","z":"96082429.7476f8","name":"","label":"slider","group":"221ee4e8.e06a1c","order":0,"width":0,"height":0,"passthru":true,"topic":"slider1","min":0,"max":"200","step":1,"x":391,"y":4872,"wires":[["1ba5f103.ad976f"]]},{"id":"1ba5f103.ad976f","type":"change","z":"96082429.7476f8","name":"","rules":[{"t":"set","p":"val","pt":"msg","to":"100 - payload","tot":"jsonata"},{"t":"set","p":"pwm","pt":"msg","to":"val < 0 ? 1 : 0","tot":"jsonata"},{"t":"set","p":"payload","pt":"msg","to":"val","tot":"msg"}],"action":"","property":"","from":"","to":"","reg":false,"x":731,"y":4855,"wires":[["5ba64ce2.806f84","a44bfc41.6faae"]]},{"id":"5ba64ce2.806f84","type":"debug","z":"96082429.7476f8","name":"","active":true,"tosidebar":true,"console":false,"tostatus":false