TOP 3 Countdown Timer

Three countdown Timer.

See http://www.wenzlaff.info (German)

The Flow:

The GUI:

[{"id":"dfdb2036.ae7008","type":"tab","label":"Timer","disabled":false,"info":""},{"id":"b0ee65c9.a0dcb","type":"mytimeout","z":"dfdb2036.ae7008","name":"1 Stunden Timer","outtopic":"","outsafe":"","outwarning":"Warnung","outunsafe":"Zeit abgelaufen","warning":"5","timer":"10","debug":false,"ndebug":false,"ignoreCase":false,"repeat":false,"again":false,"x":390,"y":180,"wires":[["34d6eb9b.95cc84"],["3d4ace11.a6486a"]]},{"id":"403a94a.74c346c","type":"inject","z":"dfdb2036.ae7008","name":"Stop","topic":"","payload":"{ \"payload\": \"stop\" }","payloadType":"str","repeat":"","crontab":"","once":false,"onceDelay":0.1,"x":150,"y":140,"wires":[["b0ee65c9.a0dcb"]]},{"id":"850f3e70.c843e8","type":"inject","z":"dfdb2036.ae7008","name":"Start","topic":"","payload":"{ \"payload\": \"on\", \"timeout\": 3600, \"warning\": 1800 }","payloadType":"json","repeat":"","crontab":"","once":false,"onceDelay":0.1,"x":150,"y":100,"wires":[["b0ee65c9.a0dcb"]]},{"id":"da1fc279.7ccc98","type":"ui_gauge","z":"dfdb2036.ae7008","name":"Countdown Timer","group":"25257d51.78bd9a","order":2,"width":0,"height":0,"gtype":"donut","title":"Countdown","label":"Minuten","format":"{{value | number:0}}","min":0,"max":"60","colors":["#ff2600","#e6e600","#00f900"],"seg1":"5","seg2":"30","x":870,"y":180,"wires":[]},{"id":"3d4ace11.a6486a","type":"function","z":"dfdb2036.ae7008","name":"Sekunden zu Minuten","func":"var minuten = msg.payload /60;\nmsg.payload=minuten;\nreturn msg;","outputs":1,"noerr":0,"x":620,"y":180,"wires":[["da1fc279.7ccc98"]]},{"id":"b44aa4fe.c096","type":"ui_button","z":"dfdb2036.ae7008","name":"","group":"25257d51.78bd9a","order":1,"width":0,"height":0,"passthru":false,"label":"Start","tooltip":"","color":"","bgcolor":"","icon":"fa-clock-o","payload":"{ \"payload\": \"on\", \"timeout\": 3600, \"warning\": 1800 }","payloadType":"str","topic":"","x":150,"y":180,"wires":[["b0ee65c9.a0dcb"]]},{"id":"85c42753.32f618","type":"ui_button","z":"dfdb2036.ae7008","name":"","group":"25257d51.78bd9a","order":3,"width":0,"height":0,"passthru":false,"label":"Stop","tooltip":"","color":"","bgcolor":"","icon":"fa-clock-o","payload":"{ \"payload\": \"stop\" }","payloadType":"str","topic":"","x":150,"y":220,"wires":[["b0ee65c9.a0dcb"]]},{"id":"2807fe8d.caaff2","type":"ui_button","z":"dfdb2036.ae7008","name":"","group":"1d657f78.0c59f9","order":1,"width":0,"height":0,"passthru":false,"label":"Start","tooltip":"","color":"","bgcolor":"","icon":"fa-clock-o","payload":"{ \"payload\": \"on\", \"timeout\": 1800, \"warning\": 1500 }","payloadType":"str","topic":"","x":150,"y":300,"wires":[["a95de875.595f88"]]},{"id":"a95de875.595f88","type":"mytimeout","z":"dfdb2036.ae7008","name":"30 Minuten Timer","outtopic":"","outsafe":"","outwarning":"Warnung","outunsafe":"Zeit abgelaufen","warning":"5","timer":"10","debug":false,"ndebug":false,"ignoreCase":false,"repeat":false,"again":false,"x":390,"y":300,"wires":[["4d3c63.6ae0fb9c"],["d8d06bfd.e85f08"]]},{"id":"409be814.163d","type":"ui_button","z":"dfdb2036.ae7008","name":"","group":"1d657f78.0c59f9","order":3,"width":0,"height":0,"passthru":false,"label":"Stop","tooltip":"","color":"","bgcolor":"","icon":"fa-clock-o","payload":"{ \"payload\": \"stop\" }","payloadType":"str","topic":"","x":150,"y":360,"wires":[["a95de875.595f88"]]},{"id":"d8d06bfd.e85f08","type":"function","z":"dfdb2036.ae7008","name":"Sekunden zu Minuten","func":"var minuten = msg.payload /60;\nmsg.payload=minuten;\nreturn msg;","outputs":1,"noerr":0,"x":620,"y":300,"wires":[["e2613bbe.b62518"]]},{"id":"e2613bbe.b62518","type":"ui_gauge","z":"dfdb2036.ae7008","name":"Countdown Timer","group":"1d657f78.0c59f9","order":2,"width":0,"height":0,"gtype":"donut","title":"Countdown","label":"Minuten","format":"{{value | number:0}}","min":0,"max":"30","colors":["#ff2600","#e6e600","#00f900"],"seg1":"2","seg2":"5","x":870,"y":300,"wires":[]},{"id":"9f83aba0.6c35f","type":"mytimeout","z":"dfdb2036.ae7008","name":"1-120 Minuten Timer","outtopic":"","outsafe":"","outwarning":"Zeit fast abgelaufen","outunsafe":"Zeit abgelaufen","warning":"","timer":"","debug":false,"ndebug":true,"ignoreCase":false,"repeat":false,"again":false,"x":680,"y":580,"wires":[["7970dad1.40275c"],["479c225c.6a815c"]]},{"id":"37fabd29.bc32c2","type":"ui_button","z":"dfdb2036.ae7008","name":"","group":"baf0bfb2.b2599","order":3,"width":0,"height":0,"passthru":false,"label":"Stop","tooltip":"","color":"","bgcolor":"","icon":"fa-clock-o","payload":"{ \"payload\": \"stop\" }","payloadType":"str","topic":"","x":150,"y":580,"wires":[["9f83aba0.6c35f"]]},{"id":"479c225c.6a815c","type":"function","z":"dfdb2036.ae7008","name":"Sekunden zu Minuten","func":"var minuten = msg.payload /60;\nmsg.payload=minuten;\n\n//msg.ui_control = {\"min\":0,\"max\":10, \"seg1\":0, \"seg2\":1}\n\nreturn msg;","outputs":1,"noerr":0,"x":920,"y":580,"wires":[["6afce539.4ee5f4"]]},{"id":"6afce539.4ee5f4","type":"ui_gauge","z":"dfdb2036.ae7008","name":"Countdown Timer","group":"baf0bfb2.b2599","order":2,"width":0,"height":0,"gtype":"donut","title":"Countdown","label":"Minuten","format":"{{value | number:0}}","min":0,"max":"1","colors":["#ff2600","#e6e600","#00f900"],"seg1":"","seg2":"","x":1150,"y":580,"wires":[]},{"id":"b5cd6d7f.d67ec8","type":"function","z":"dfdb2036.ae7008","name":"Minuten zu Sekunden","func":"var sekunden = msg.payload * 60;\n\n// msg.ui_control = {\"min\":0,\"max\":10, \"seg1\":0, \"seg2\":1}\n\n\nmsg.payload=\"{\\\"payload\\\": \\\"on\\\", \\\"timeout\\\":\" + sekunden + \", \\\"warning\\\": 30}\"\n\nreturn msg;","outputs":1,"noerr":0,"x":380,"y":480,"wires":[["6a753af9.558cc4","9f83aba0.6c35f"]]},{"id":"6a753af9.558cc4","type":"debug","z":"dfdb2036.ae7008","name":"Ausgabe","active":false,"tosidebar":true,"console":false,"tostatus":false,"complete":"payload","targetType":"msg","x":640,"y":480,"wires":[]},{"id":"842b04f7.4b7c3","type":"ui_slider","z":"dfdb2036.ae7008","name":"","label":"Start","tooltip":"Start des Timers beim loslassen","group":"baf0bfb2.b2599","order":1,"width":0,"height":0,"passthru":true,"outs":"end","topic":"","min":"1","max":"120","step":1,"x":150,"y":480,"wires":[["b5cd6d7f.d67ec8"]]},{"id":"7970dad1.40275c","type":"ui_toast","z":"dfdb2036.ae7008","position":"top right","displayTime":"10","highlight":"#e83a2c","sendall":true,"outputs":0,"ok":"OK","cancel":"","raw":false,"topic":"","name":"","x":910,"y":520,"wires":[]},{"id":"4d3c63.6ae0fb9c","type":"ui_toast","z":"dfdb2036.ae7008","position":"top right","displayTime":"10","highlight":"#e83a2c","sendall":true,"outputs":0,"ok":"OK","cancel":"","raw":false,"topic":"","name":"","x":610,"y":240,"wires":[]},{"id":"34d6eb9b.95cc84","type":"ui_toast","z":"dfdb2036.ae7008","position":"top right","displayTime":"10","highlight":"#e83a2c","sendall":true,"outputs":0,"ok":"OK","cancel":"","raw":false,"topic":"","name":"","x":610,"y":120,"wires":[]},{"id":"351d9013.e941f8","type":"comment","z":"dfdb2036.ae7008","name":"(c) 2020 Thomas Wenzlaff   www.wenzlaff.info","info":"","x":850,"y":40,"wires":[]},{"id":"cfc92ef2.b33b8","type":"comment","z":"dfdb2036.ae7008","name":"Countdown Timer","info":"","x":170,"y":40,"wires":[]},{"id":"25257d51.78bd9a","type":"ui_group","z":"","name":"Timer 1 Stunde","tab":"564a631a.2f096c","order":2,"disp":true,"width":"6","collapse":false},{"id":"1d657f78.0c59f9","type":"ui_group","z":"","name":"Timer 30 Minuten","tab":"564a631a.2f096c","order":1,"disp":true,"width":"6","collapse":false},{"id":"baf0bfb2.b2599","type":"ui_group","z":"","name":"1-120 Min Timer","tab":"564a631a.2f096c","disp":true,"width":"6","collapse":false},{"id":"564a631a.2f096c","type":"ui_tab","z":"","name":"Timer","icon":"fa-clock-o","disabled":false,"hidden":false}]

Flow Info

Created 4 years, 8 months ago
Rating: 4 4

Owner

Actions

Rate:

Node Types

Core
  • comment (x2)
  • debug (x1)
  • function (x4)
  • inject (x2)
Other
  • mytimeout (x3)
  • tab (x1)
  • ui_button (x5)
  • ui_gauge (x3)
  • ui_group (x3)
  • ui_slider (x1)
  • ui_tab (x1)
  • ui_toast (x3)

Tags

  • Timer
  • countdown
  • Countdown
  • CountdownTimer
  • Uhr
  • Zeit
  • Stopuhr
  • Vortrag
  • Wenzlaff.de
  • kleinhirn.eu
Copy this flow JSON to your clipboard and then import into Node-RED using the Import From > Clipboard (Ctrl-I) menu option