[{"id":"81fcf4c7.575458","type":"inject","z":"620ba035.1c29b","name":"","topic":"","payload":"","payloadType":"date","repeat":"6","crontab":"","once":false,"onceDelay":"","x":150,"y":80,"wires":[["dd0e08be.ef3418"]]},{"id":"dd0e08be.ef3418","type":"function","z":"620ba035.1c29b","name":"random number","func":"\nmsg.payload=Math.random();\nreturn msg;","outputs":1,"noerr":0,"x":340,"y":80,"wires":[["d50a1714.1c8028","e068dbd0.f917b8","dbe499c6.457188"]]},{"id":"d50a1714.1c8028","type":"debug","z":"620ba035.1c29b","name":"random number debug","active":false,"console":"false","complete":"payload","x":580,"y":40,"wires":[]},{"id":"e068dbd0.f917b8","type":"ui_chart","z":"620ba035.1c29b","name":"","group":"e104b15f.b8b64","order":0,"width":0,"height":0,"label":"chart","chartType":"line","legend":"false","xformat":"HH:mm:ss","interpolate":"linear","nodata":"","ymin":"","ymax":"","removeOlder":1,"removeOlderPoints":"","removeOlderUnit":"3600","cutout":0,"colors":["#1f77b4","#aec7e8","#ff7f0e","#2ca02c","#98df8a","#d62728","#ff9896","#9467bd","#c5b0d5"],"x":530,"y":80,"wires":[[],[]]},{"id":"dbe499c6.457188","type":"ui_gauge","z":"620ba035.1c29b","name":"","group":"e104b15f.b8b64","order":0,"width":0,"height":0,"gtype":"gage","title":"Gauge","label":"units","format":"{{value}}","min":0,"max":"1","colors":["#00b500","#e6e600","#ca3838"],"seg1":"","seg2":"","x":530,"y":120,"wires":[]},{"id":"104cc6b0.768ac9","type":"inject","z":"620ba035.1c29b","name":"","topic":"","payload":"2","payloadType":"num","repeat":"6","crontab":"","once":false,"onceDelay":"","x":130,"y":200,"wires":[["c40cedca.a490d"]]},{"id":"31747511.da4bda","type":"ui_chart","z":"620ba035.1c29b","name":"","group":"ee3281e6.d66bb","order":0,"width":0,"height":0,"label":"chart","chartType":"line","legend":"false","xformat":"HH:mm:ss","interpolate":"linear","nodata":"","dot":false,"ymin":"","ymax":"","removeOlder":1,"removeOlderPoints":"","removeOlderUnit":"3600","cutout":0,"useOneColor":false,"colors":["#1f77b4","#aec7e8","#ff7f0e","#2ca02c","#98df8a","#d62728","#ff9896","#9467bd","#c5b0d5"],"useOldStyle":true,"x":530,"y":200,"wires":[[],[]]},{"id":"c40cedca.a490d","type":"function","z":"620ba035.1c29b","name":"","func":"\nmsg.payload=Math.round(Math.random()*100);\nreturn msg;","outputs":1,"noerr":0,"x":330,"y":200,"wires":[["31747511.da4bda"]]},{"id":"60774fd3.0dd11","type":"ui_button","z":"620ba035.1c29b","name":"","group":"7a2c3d3a.22ad34","order":0,"width":0,"height":0,"label":"OFF","color":"","bgcolor":"","icon":"","payload":"OFF","payloadType":"str","topic":"","x":130,"y":320,"wires":[["54501b37.344f24"]]},{"id":"af637ce5.8e5fc","type":"ui_button","z":"620ba035.1c29b","name":"","group":"7a2c3d3a.22ad34","order":0,"width":0,"height":0,"label":"ON","color":"","bgcolor":"","icon":"","payload":"ON","payloadType":"str","topic":"","x":130,"y":280,"wires":[["54501b37.344f24"]]},{"id":"54501b37.344f24","type":"ui_text_input","z":"620ba035.1c29b","name":"","label":"LED is","group":"7a2c3d3a.22ad34","order":0,"width":0,"height":0,"passthru":true,"mode":"text","delay":300,"topic":"","x":330,"y":300,"wires":[[]]},{"id":"833da0f0.9a37b","type":"ui_slider","z":"620ba035.1c29b","name":"","label":"slider","group":"24a5443e.8edf7c","order":0,"width":0,"height":0,"passthru":true,"topic":"","min":0,"max":10,"step":1,"x":130,"y":380,"wires":[["61ec456d.a13e2c"]]},{"id":"61ec456d.a13e2c","type":"ui_gauge","z":"620ba035.1c29b","name":"","group":"24a5443e.8edf7c","order":0,"width":0,"height":0,"gtype":"gage","title":"Gauge","label":"units","format":"{{value}}","min":0,"max":10,"colors":["#00b500","#e6e600","#ca3838"],"seg1":"","seg2":"","x":330,"y":380,"wires":[]},{"id":"e104b15f.b8b64","type":"ui_group","z":"","name":"Default1","tab":"a9bd0f6a.7c7dc","order":1,"disp":true,"width":"6","collapse":false},{"id":"ee3281e6.d66bb","type":"ui_group","z":"","name":"Default2","tab":"a9bd0f6a.7c7dc","order":2,"disp":true,"width":"6","collapse":false},{"id":"7a2c3d3a.22ad34","type":"ui_group","z":"","name":"ON OFF1","tab":"a9bd0f6a.7c7dc","order":4,"disp":true,"width":"6","collapse":false},{"id":"24a5443e.8edf7c","type":"ui_group","z":"","name":"Default3","tab":"a9bd0f6a.7c7dc","order":3,"disp":true,"width":"6","collapse":false},{"id":"a9bd0f6a.7c7dc","type":"ui_tab","z":"","name":"Home","icon":"dashboard"}]
2019年10月11日 星期五
Node-RED 使用dashboard 建立儀表版
Node-RED 使用dashboard
建立儀表版
[{"id":"81fcf4c7.575458","type":"inject","z":"620ba035.1c29b","name":"","topic":"","payload":"","payloadType":"date","repeat":"6","crontab":"","once":false,"onceDelay":"","x":150,"y":80,"wires":[["dd0e08be.ef3418"]]},{"id":"dd0e08be.ef3418","type":"function","z":"620ba035.1c29b","name":"random number","func":"\nmsg.payload=Math.random();\nreturn msg;","outputs":1,"noerr":0,"x":340,"y":80,"wires":[["d50a1714.1c8028","e068dbd0.f917b8","dbe499c6.457188"]]},{"id":"d50a1714.1c8028","type":"debug","z":"620ba035.1c29b","name":"random number debug","active":false,"console":"false","complete":"payload","x":580,"y":40,"wires":[]},{"id":"e068dbd0.f917b8","type":"ui_chart","z":"620ba035.1c29b","name":"","group":"e104b15f.b8b64","order":0,"width":0,"height":0,"label":"chart","chartType":"line","legend":"false","xformat":"HH:mm:ss","interpolate":"linear","nodata":"","ymin":"","ymax":"","removeOlder":1,"removeOlderPoints":"","removeOlderUnit":"3600","cutout":0,"colors":["#1f77b4","#aec7e8","#ff7f0e","#2ca02c","#98df8a","#d62728","#ff9896","#9467bd","#c5b0d5"],"x":530,"y":80,"wires":[[],[]]},{"id":"dbe499c6.457188","type":"ui_gauge","z":"620ba035.1c29b","name":"","group":"e104b15f.b8b64","order":0,"width":0,"height":0,"gtype":"gage","title":"Gauge","label":"units","format":"{{value}}","min":0,"max":"1","colors":["#00b500","#e6e600","#ca3838"],"seg1":"","seg2":"","x":530,"y":120,"wires":[]},{"id":"104cc6b0.768ac9","type":"inject","z":"620ba035.1c29b","name":"","topic":"","payload":"2","payloadType":"num","repeat":"6","crontab":"","once":false,"onceDelay":"","x":130,"y":200,"wires":[["c40cedca.a490d"]]},{"id":"31747511.da4bda","type":"ui_chart","z":"620ba035.1c29b","name":"","group":"ee3281e6.d66bb","order":0,"width":0,"height":0,"label":"chart","chartType":"line","legend":"false","xformat":"HH:mm:ss","interpolate":"linear","nodata":"","dot":false,"ymin":"","ymax":"","removeOlder":1,"removeOlderPoints":"","removeOlderUnit":"3600","cutout":0,"useOneColor":false,"colors":["#1f77b4","#aec7e8","#ff7f0e","#2ca02c","#98df8a","#d62728","#ff9896","#9467bd","#c5b0d5"],"useOldStyle":true,"x":530,"y":200,"wires":[[],[]]},{"id":"c40cedca.a490d","type":"function","z":"620ba035.1c29b","name":"","func":"\nmsg.payload=Math.round(Math.random()*100);\nreturn msg;","outputs":1,"noerr":0,"x":330,"y":200,"wires":[["31747511.da4bda"]]},{"id":"60774fd3.0dd11","type":"ui_button","z":"620ba035.1c29b","name":"","group":"7a2c3d3a.22ad34","order":0,"width":0,"height":0,"label":"OFF","color":"","bgcolor":"","icon":"","payload":"OFF","payloadType":"str","topic":"","x":130,"y":320,"wires":[["54501b37.344f24"]]},{"id":"af637ce5.8e5fc","type":"ui_button","z":"620ba035.1c29b","name":"","group":"7a2c3d3a.22ad34","order":0,"width":0,"height":0,"label":"ON","color":"","bgcolor":"","icon":"","payload":"ON","payloadType":"str","topic":"","x":130,"y":280,"wires":[["54501b37.344f24"]]},{"id":"54501b37.344f24","type":"ui_text_input","z":"620ba035.1c29b","name":"","label":"LED is","group":"7a2c3d3a.22ad34","order":0,"width":0,"height":0,"passthru":true,"mode":"text","delay":300,"topic":"","x":330,"y":300,"wires":[[]]},{"id":"833da0f0.9a37b","type":"ui_slider","z":"620ba035.1c29b","name":"","label":"slider","group":"24a5443e.8edf7c","order":0,"width":0,"height":0,"passthru":true,"topic":"","min":0,"max":10,"step":1,"x":130,"y":380,"wires":[["61ec456d.a13e2c"]]},{"id":"61ec456d.a13e2c","type":"ui_gauge","z":"620ba035.1c29b","name":"","group":"24a5443e.8edf7c","order":0,"width":0,"height":0,"gtype":"gage","title":"Gauge","label":"units","format":"{{value}}","min":0,"max":10,"colors":["#00b500","#e6e600","#ca3838"],"seg1":"","seg2":"","x":330,"y":380,"wires":[]},{"id":"e104b15f.b8b64","type":"ui_group","z":"","name":"Default1","tab":"a9bd0f6a.7c7dc","order":1,"disp":true,"width":"6","collapse":false},{"id":"ee3281e6.d66bb","type":"ui_group","z":"","name":"Default2","tab":"a9bd0f6a.7c7dc","order":2,"disp":true,"width":"6","collapse":false},{"id":"7a2c3d3a.22ad34","type":"ui_group","z":"","name":"ON OFF1","tab":"a9bd0f6a.7c7dc","order":4,"disp":true,"width":"6","collapse":false},{"id":"24a5443e.8edf7c","type":"ui_group","z":"","name":"Default3","tab":"a9bd0f6a.7c7dc","order":3,"disp":true,"width":"6","collapse":false},{"id":"a9bd0f6a.7c7dc","type":"ui_tab","z":"","name":"Home","icon":"dashboard"}]
[{"id":"81fcf4c7.575458","type":"inject","z":"620ba035.1c29b","name":"","topic":"","payload":"","payloadType":"date","repeat":"6","crontab":"","once":false,"onceDelay":"","x":150,"y":80,"wires":[["dd0e08be.ef3418"]]},{"id":"dd0e08be.ef3418","type":"function","z":"620ba035.1c29b","name":"random number","func":"\nmsg.payload=Math.random();\nreturn msg;","outputs":1,"noerr":0,"x":340,"y":80,"wires":[["d50a1714.1c8028","e068dbd0.f917b8","dbe499c6.457188"]]},{"id":"d50a1714.1c8028","type":"debug","z":"620ba035.1c29b","name":"random number debug","active":false,"console":"false","complete":"payload","x":580,"y":40,"wires":[]},{"id":"e068dbd0.f917b8","type":"ui_chart","z":"620ba035.1c29b","name":"","group":"e104b15f.b8b64","order":0,"width":0,"height":0,"label":"chart","chartType":"line","legend":"false","xformat":"HH:mm:ss","interpolate":"linear","nodata":"","ymin":"","ymax":"","removeOlder":1,"removeOlderPoints":"","removeOlderUnit":"3600","cutout":0,"colors":["#1f77b4","#aec7e8","#ff7f0e","#2ca02c","#98df8a","#d62728","#ff9896","#9467bd","#c5b0d5"],"x":530,"y":80,"wires":[[],[]]},{"id":"dbe499c6.457188","type":"ui_gauge","z":"620ba035.1c29b","name":"","group":"e104b15f.b8b64","order":0,"width":0,"height":0,"gtype":"gage","title":"Gauge","label":"units","format":"{{value}}","min":0,"max":"1","colors":["#00b500","#e6e600","#ca3838"],"seg1":"","seg2":"","x":530,"y":120,"wires":[]},{"id":"104cc6b0.768ac9","type":"inject","z":"620ba035.1c29b","name":"","topic":"","payload":"2","payloadType":"num","repeat":"6","crontab":"","once":false,"onceDelay":"","x":130,"y":200,"wires":[["c40cedca.a490d"]]},{"id":"31747511.da4bda","type":"ui_chart","z":"620ba035.1c29b","name":"","group":"ee3281e6.d66bb","order":0,"width":0,"height":0,"label":"chart","chartType":"line","legend":"false","xformat":"HH:mm:ss","interpolate":"linear","nodata":"","dot":false,"ymin":"","ymax":"","removeOlder":1,"removeOlderPoints":"","removeOlderUnit":"3600","cutout":0,"useOneColor":false,"colors":["#1f77b4","#aec7e8","#ff7f0e","#2ca02c","#98df8a","#d62728","#ff9896","#9467bd","#c5b0d5"],"useOldStyle":true,"x":530,"y":200,"wires":[[],[]]},{"id":"c40cedca.a490d","type":"function","z":"620ba035.1c29b","name":"","func":"\nmsg.payload=Math.round(Math.random()*100);\nreturn msg;","outputs":1,"noerr":0,"x":330,"y":200,"wires":[["31747511.da4bda"]]},{"id":"60774fd3.0dd11","type":"ui_button","z":"620ba035.1c29b","name":"","group":"7a2c3d3a.22ad34","order":0,"width":0,"height":0,"label":"OFF","color":"","bgcolor":"","icon":"","payload":"OFF","payloadType":"str","topic":"","x":130,"y":320,"wires":[["54501b37.344f24"]]},{"id":"af637ce5.8e5fc","type":"ui_button","z":"620ba035.1c29b","name":"","group":"7a2c3d3a.22ad34","order":0,"width":0,"height":0,"label":"ON","color":"","bgcolor":"","icon":"","payload":"ON","payloadType":"str","topic":"","x":130,"y":280,"wires":[["54501b37.344f24"]]},{"id":"54501b37.344f24","type":"ui_text_input","z":"620ba035.1c29b","name":"","label":"LED is","group":"7a2c3d3a.22ad34","order":0,"width":0,"height":0,"passthru":true,"mode":"text","delay":300,"topic":"","x":330,"y":300,"wires":[[]]},{"id":"833da0f0.9a37b","type":"ui_slider","z":"620ba035.1c29b","name":"","label":"slider","group":"24a5443e.8edf7c","order":0,"width":0,"height":0,"passthru":true,"topic":"","min":0,"max":10,"step":1,"x":130,"y":380,"wires":[["61ec456d.a13e2c"]]},{"id":"61ec456d.a13e2c","type":"ui_gauge","z":"620ba035.1c29b","name":"","group":"24a5443e.8edf7c","order":0,"width":0,"height":0,"gtype":"gage","title":"Gauge","label":"units","format":"{{value}}","min":0,"max":10,"colors":["#00b500","#e6e600","#ca3838"],"seg1":"","seg2":"","x":330,"y":380,"wires":[]},{"id":"e104b15f.b8b64","type":"ui_group","z":"","name":"Default1","tab":"a9bd0f6a.7c7dc","order":1,"disp":true,"width":"6","collapse":false},{"id":"ee3281e6.d66bb","type":"ui_group","z":"","name":"Default2","tab":"a9bd0f6a.7c7dc","order":2,"disp":true,"width":"6","collapse":false},{"id":"7a2c3d3a.22ad34","type":"ui_group","z":"","name":"ON OFF1","tab":"a9bd0f6a.7c7dc","order":4,"disp":true,"width":"6","collapse":false},{"id":"24a5443e.8edf7c","type":"ui_group","z":"","name":"Default3","tab":"a9bd0f6a.7c7dc","order":3,"disp":true,"width":"6","collapse":false},{"id":"a9bd0f6a.7c7dc","type":"ui_tab","z":"","name":"Home","icon":"dashboard"}]
訂閱:
張貼留言 (Atom)
2024_09 作業3 以Node-Red 為主
2024_09 作業3 (以Node-Red 為主 Arduino 可能需要配合修改 ) Arduino 可能需要修改的部分 1)mqtt broker 2) 主題Topic (發行 接收) 3) WIFI ssid , password const char br...
-
python pip 不是内部或外部命令 -- 解決方法 要安裝 Pyqt5 1. 首先,開啟命令提示字元。 2. 輸入 pip3 install pyqt5 好像不能執行 ! ! 錯誤顯示 : ‘ pip3 ’ 不是內部或外部命令、可執行的程式或批...
-
課程講義 下載 11/20 1) PPT 下載 + 程式下載 http://www.mediafire.com/file/cru4py7e8pptfda/106%E5%8B%A4%E7%9B%8A2-1.rar 11/27 2) PPT 下載...
-
• 認 識 PreFix、InFix、PostFix PreFix(前序式):* + 1 2 + 3 4 InFix(中序式): (1+2)*(3+4) PostFix(後序式):1 2 + 3 4 + * 後 序式的運算 例如: 運算時由 後序式的...
沒有留言:
張貼留言