Skip to content

Instantly share code, notes, and snippets.

@blackfyre
Created May 27, 2020 12:52
Show Gist options
  • Save blackfyre/9dfa65ef9ae4c0b897e5958551d94272 to your computer and use it in GitHub Desktop.
Save blackfyre/9dfa65ef9ae4c0b897e5958551d94272 to your computer and use it in GitHub Desktop.
Node Red Dashboard current time
[{"id":"f194521c.66b9f","type":"inject","z":"bfcd59fd.b97788","name":"","topic":"","payload":"","payloadType":"date","repeat":"1","crontab":"","once":false,"onceDelay":0.1,"x":270,"y":260,"wires":[["7c13eb50.965874"]]},{"id":"7c13eb50.965874","type":"change","z":"bfcd59fd.b97788","name":"Set Time Attributes","rules":[{"t":"set","p":"seconds","pt":"msg","to":"$fromMillis(payload, '[s]')\t","tot":"jsonata"},{"t":"set","p":"minutes","pt":"msg","to":"$fromMillis(payload, '[m]')","tot":"jsonata"},{"t":"set","p":"hours","pt":"msg","to":"$fromMillis(payload, '[H]')\t","tot":"jsonata"}],"action":"","property":"","from":"","to":"","reg":false,"x":450,"y":260,"wires":[["47562960.35fcf8","48a47986.3197d8","cd4f0be8.3c6118"]]},{"id":"cd4f0be8.3c6118","type":"ui_gauge","z":"bfcd59fd.b97788","name":"","group":"48cb4a07.3e2634","order":0,"width":"1","height":"1","gtype":"gage","title":"Seconds","label":"","format":"{{seconds}}","min":0,"max":"60","colors":["#00b500","#e6e600","#ca3838"],"seg1":"","seg2":"","x":640,"y":220,"wires":[]},{"id":"47562960.35fcf8","type":"ui_gauge","z":"bfcd59fd.b97788","name":"","group":"48cb4a07.3e2634","order":1,"width":"1","height":"1","gtype":"gage","title":"Hours","label":"","format":"{{hours}}","min":0,"max":"24","colors":["#00b500","#e6e600","#ca3838"],"seg1":"","seg2":"","x":630,"y":260,"wires":[]},{"id":"48a47986.3197d8","type":"ui_gauge","z":"bfcd59fd.b97788","name":"","group":"48cb4a07.3e2634","order":2,"width":"1","height":"1","gtype":"gage","title":"Minutes","label":"","format":"{{minutes}}","min":0,"max":"60","colors":["#00b500","#e6e600","#ca3838"],"seg1":"","seg2":"","x":640,"y":300,"wires":[]},{"id":"48cb4a07.3e2634","type":"ui_group","z":"","name":"Time","tab":"1b14afe4.3cef1","order":1,"disp":true,"width":"3","collapse":false},{"id":"1b14afe4.3cef1","type":"ui_tab","z":"","name":"Tab 1","icon":"dashboard","order":1,"disabled":false,"hidden":false}]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment