Last active
April 15, 2019 08:52
-
-
Save rmit-s3545996-leanne-tran/2dab8482a9acae1da89001ab96dbd221 to your computer and use it in GitHub Desktop.
Dashboard Misc
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
[{"id":"d438ed8b.30da9","type":"tab","label":"Flow 2","disabled":false,"info":""},{"id":"7a92b80d.6902a8","type":"inject","z":"d438ed8b.30da9","name":"","topic":"","payload":"","payloadType":"date","repeat":"1","crontab":"","once":true,"onceDelay":0.1,"x":130,"y":100,"wires":[["4430632d.adf67c","1bea2ced.b41693","79a70d6a.1224b4"]]},{"id":"4430632d.adf67c","type":"function","z":"d438ed8b.30da9","name":"DateTime","func":"var dd = new Date(msg.payload)\nflow.set(\"datetime\",dd)\nmsg.payload=dd\nreturn msg;","outputs":1,"noerr":0,"x":320,"y":100,"wires":[["58e35708.63ace8"]]},{"id":"58e35708.63ace8","type":"ui_text","z":"d438ed8b.30da9","group":"749ff62.c051408","order":1,"width":0,"height":0,"name":"Date ","label":"Date: ","format":"{{msg.payload}}","layout":"row-spread","x":530,"y":100,"wires":[]},{"id":"cdecfaec.32d838","type":"debug","z":"d438ed8b.30da9","name":"","active":false,"tosidebar":true,"console":false,"tostatus":false,"complete":"false","x":250,"y":300,"wires":[]},{"id":"1bea2ced.b41693","type":"ui_text","z":"d438ed8b.30da9","group":"749ff62.c051408","order":2,"width":0,"height":0,"name":"msTime","label":"Milliseconds since 1990 Jan 1 : ","format":"{{msg.payload}}","layout":"row-spread","x":540,"y":20,"wires":[]},{"id":"f5b81ad.7090be8","type":"ui_text","z":"d438ed8b.30da9","group":"749ff62.c051408","order":3,"width":0,"height":0,"name":"","label":"YEAR ","format":"{{msg.payload[0]}}","layout":"row-spread","x":530,"y":180,"wires":[]},{"id":"79a70d6a.1224b4","type":"function","z":"d438ed8b.30da9","name":"DateParts","func":"var dates = flow.get(\"datetime\")\nvar parts = [dates.getFullYear(), dates.getMonth(),dates.getDate(), dates.getDay(), dates.getSeconds(), dates.getMinutes(), dates.getHours()] \nmsg.payload = parts\nreturn msg;","outputs":1,"noerr":0,"x":330,"y":180,"wires":[["f5b81ad.7090be8","cdecfaec.32d838","13774060.88e74","69a7fead.7d0d5","dd5652a1.c813f","90f76aca.454928","90784e7c.1bece","51279.594abd87c"]]},{"id":"13774060.88e74","type":"ui_text","z":"d438ed8b.30da9","group":"749ff62.c051408","order":4,"width":0,"height":0,"name":"","label":"MONTH","format":"{{msg.payload[1]}}","layout":"row-spread","x":540,"y":220,"wires":[]},{"id":"69a7fead.7d0d5","type":"ui_text","z":"d438ed8b.30da9","group":"749ff62.c051408","order":5,"width":0,"height":0,"name":"","label":"DATE","format":"{{msg.payload[2]}}","layout":"row-spread","x":530,"y":260,"wires":[]},{"id":"dd5652a1.c813f","type":"ui_text","z":"d438ed8b.30da9","group":"749ff62.c051408","order":6,"width":0,"height":0,"name":"","label":"DAY","format":"{{msg.payload[3]}}","layout":"row-spread","x":530,"y":300,"wires":[]},{"id":"90f76aca.454928","type":"ui_gauge","z":"d438ed8b.30da9","name":"Seconds","group":"cb78cc83.2ab5b","order":2,"width":0,"height":0,"gtype":"donut","title":"Seconds","label":"seconds","format":"{{msg.payload[4]}}","min":0,"max":"60","colors":["#00b500","#e6e600","#ca3838"],"seg1":"","seg2":"","x":720,"y":340,"wires":[]},{"id":"90784e7c.1bece","type":"ui_text","z":"d438ed8b.30da9","group":"749ff62.c051408","order":7,"width":0,"height":0,"name":"","label":"Hour","format":"{{msg.payload[6]}}","layout":"row-spread","x":530,"y":340,"wires":[]},{"id":"51279.594abd87c","type":"ui_gauge","z":"d438ed8b.30da9","name":"Minute","group":"cb78cc83.2ab5b","order":1,"width":0,"height":0,"gtype":"donut","title":"gauge","label":"Minutes","format":"{{msg.payload[5]}}","min":0,"max":"60","colors":["#00b500","#e6e600","#ca3838"],"seg1":"","seg2":"","x":710,"y":380,"wires":[]},{"id":"257ae01d.30a0f","type":"ui_button","z":"d438ed8b.30da9","name":"Button","group":"749ff62.c051408","order":7,"width":0,"height":0,"passthru":false,"label":"button","tooltip":"","color":"","bgcolor":"","icon":"","payload":"PEW PEW","payloadType":"str","topic":"","x":150,"y":400,"wires":[["5e45ea1d.357794","9f84a0e0.ff835"]]},{"id":"5e45ea1d.357794","type":"function","z":"d438ed8b.30da9","name":"button clicker","func":"// initialise the counter to 0 if it doesn't exist already\nvar count = context.get('count')||0;\ncount += 1;\n// store the value back\ncontext.set('count',count);\n// make it part of the outgoing msg object\nmsg.count = count;\nreturn msg;","outputs":1,"noerr":0,"x":310,"y":400,"wires":[["e23403c5.6aa4a"]]},{"id":"e23403c5.6aa4a","type":"ui_text","z":"d438ed8b.30da9","group":"749ff62.c051408","order":8,"width":0,"height":0,"name":"ButtonClicker","label":"Number on times Button has been clicked","format":"{{msg.count}}","layout":"row-spread","x":540,"y":420,"wires":[]},{"id":"add3b9b9.c0c548","type":"ui_slider","z":"d438ed8b.30da9","name":"","label":"slider","tooltip":"","group":"8e6486de.8512d8","order":9,"width":0,"height":0,"passthru":true,"outs":"all","topic":"","min":0,"max":"100","step":1,"x":190,"y":540,"wires":[["1b530f09.51ac71"]]},{"id":"1b530f09.51ac71","type":"ui_gauge","z":"d438ed8b.30da9","name":"","group":"8e6486de.8512d8","order":10,"width":0,"height":0,"gtype":"donut","title":"gauge","label":"","format":"{{msg.payload}}","min":0,"max":"100","colors":["#00b500","#e6e600","#ca3838"],"seg1":"","seg2":"","x":390,"y":540,"wires":[]},{"id":"9f84a0e0.ff835","type":"play audio","z":"d438ed8b.30da9","name":"","voice":"0","x":550,"y":480,"wires":[],"inputLabels":["msg.payload"]},{"id":"749ff62.c051408","type":"ui_group","z":"","name":"Time Stuff","tab":"4026f3e2.6b3f2c","disp":true,"width":"6","collapse":false},{"id":"cb78cc83.2ab5b","type":"ui_group","z":"","name":"TimeCharts","tab":"4026f3e2.6b3f2c","order":2,"disp":true,"width":"6","collapse":false},{"id":"8e6486de.8512d8","type":"ui_group","z":"","name":"AAAA","tab":"4026f3e2.6b3f2c","order":3,"disp":true,"width":"6","collapse":false},{"id":"4026f3e2.6b3f2c","type":"ui_tab","z":"","name":"Home","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