2022年2月19日 星期六

Node-Red : Tab 切換

  Node-Red : Tab 切換











[{"id":"fa40bcf07266cb0d","type":"ui_button","z":"8eebfc64cae8318e","name":"","group":"80c78d71fd175fbf","order":1,"width":"4","height":"4","passthru":false,"label":"MQTT測試1","tooltip":"","color":"","bgcolor":"","className":"","icon":"","payload":"MQTT","payloadType":"str","topic":"topic","topicType":"msg","x":310,"y":100,"wires":[["2dbcae94fa8b0276"]]},{"id":"2dbcae94fa8b0276","type":"ui_ui_control","z":"8eebfc64cae8318e","name":"","events":"all","x":480,"y":160,"wires":[["f5f5a008e12ede56"]]},{"id":"17688e9c553d10e2","type":"ui_button","z":"8eebfc64cae8318e","name":"","group":"80c78d71fd175fbf","order":2,"width":"4","height":"4","passthru":false,"label":"MQTT測試2","tooltip":"","color":"","bgcolor":"","className":"","icon":"","payload":"Home","payloadType":"str","topic":"topic","topicType":"msg","x":310,"y":200,"wires":[["2dbcae94fa8b0276"]]},{"id":"f5f5a008e12ede56","type":"debug","z":"8eebfc64cae8318e","name":"","active":true,"tosidebar":true,"console":false,"tostatus":false,"complete":"false","statusVal":"","statusType":"auto","x":650,"y":160,"wires":[]},{"id":"80c78d71fd175fbf","type":"ui_group","name":"Group 1","tab":"fc4acb4da1369f93","order":1,"disp":false,"width":"24","collapse":false,"className":""},{"id":"fc4acb4da1369f93","type":"ui_tab","name":"首頁","icon":"dashboard","order":1,"disabled":false,"hidden":false}]


[{"id":"7620c466df1bf574","type":"inject","z":"9742b4ffade40c3e","name":"","props":[{"p":"payload"},{"p":"topic","vt":"str"}],"repeat":"2","crontab":"","once":true,"onceDelay":0.1,"topic":"","payloadType":"date","x":300,"y":200,"wires":[["9bafdbab6d589c9a"]]},{"id":"9bafdbab6d589c9a","type":"function","z":"9742b4ffade40c3e","name":"","func":"var m;\nm = 100*Math.random();\nmsg.payload = Math.round(m);\nreturn msg;\n","outputs":1,"noerr":0,"initialize":"","finalize":"","libs":[],"x":470,"y":200,"wires":[["d8e706bb0f2f4791","86be743fd72e6b64"]]},{"id":"86be743fd72e6b64","type":"ui_gauge","z":"9742b4ffade40c3e","name":"","group":"77022c6eef942630","order":0,"width":0,"height":0,"gtype":"gage","title":"gauge","label":"units","format":"{{value}}","min":0,"max":"100","colors":["#00b500","#e6e600","#ca3838"],"seg1":"33","seg2":"66","className":"","x":650,"y":140,"wires":[]},{"id":"d8e706bb0f2f4791","type":"ui_chart","z":"9742b4ffade40c3e","name":"","group":"35b8a654c00a2209","order":0,"width":0,"height":0,"label":"chart","chartType":"line","legend":"false","xformat":"HH:mm:ss","interpolate":"linear","nodata":"","dot":false,"ymin":"0","ymax":"100","removeOlder":1,"removeOlderPoints":"","removeOlderUnit":"3600","cutout":0,"useOneColor":false,"useUTC":false,"colors":["#1f77b4","#aec7e8","#ff7f0e","#2ca02c","#98df8a","#d62728","#ff9896","#9467bd","#c5b0d5"],"outputs":1,"useDifferentColor":false,"className":"","x":650,"y":220,"wires":[[]]},{"id":"77022c6eef942630","type":"ui_group","name":"Gauge","tab":"2711d5a2.d68132","order":1,"disp":true,"width":"6","collapse":false,"className":""},{"id":"35b8a654c00a2209","type":"ui_group","name":"Chart","tab":"2711d5a2.d68132","order":2,"disp":true,"width":"6","collapse":false,"className":""},{"id":"2711d5a2.d68132","type":"ui_tab","name":"MQTT","icon":"dashboard","disabled":false,"hidden":false}]


[{"id":"64b7a1046d679632","type":"mqtt out","z":"921ffb91cd8aaac1","name":"","topic":"alex9ufo/esp32/humidity","qos":"1","retain":"","respTopic":"","contentType":"","userProps":"","correl":"","expiry":"","broker":"2db287b.addf978","x":510,"y":20,"wires":[]},{"id":"154ff355146aee5c","type":"mqtt in","z":"921ffb91cd8aaac1","name":"","topic":"alex9ufo/esp32/temperature","qos":"1","datatype":"auto","broker":"2db287b.addf978","nl":false,"rap":false,"x":240,"y":260,"wires":[["87782bdccd9d9566","b1fa8d89b92adcb2"]]},{"id":"87782bdccd9d9566","type":"debug","z":"921ffb91cd8aaac1","name":"","active":true,"tosidebar":true,"console":false,"tostatus":false,"complete":"false","x":461,"y":234,"wires":[]},{"id":"1f09b9c0c6708e0d","type":"mqtt in","z":"921ffb91cd8aaac1","name":"","topic":"alex9ufo/esp32/humidity","qos":"1","datatype":"auto","broker":"2db287b.addf978","nl":false,"rap":false,"x":230,"y":160,"wires":[["624c40c20901851e","95b81ba7015ce035"]]},{"id":"624c40c20901851e","type":"debug","z":"921ffb91cd8aaac1","name":"","active":true,"tosidebar":true,"console":false,"tostatus":false,"complete":"false","x":450,"y":140,"wires":[]},{"id":"b1fa8d89b92adcb2","type":"ui_chart","z":"921ffb91cd8aaac1","name":"","group":"61285987.c20328","order":0,"width":0,"height":0,"label":"Temperature","chartType":"line","legend":"false","xformat":"HH:mm:ss","interpolate":"linear","nodata":"","dot":false,"ymin":"","ymax":"","removeOlder":1,"removeOlderPoints":"","removeOlderUnit":"3600","cutout":0,"useOneColor":false,"useUTC":false,"colors":["#1f77b4","#aec7e8","#ff7f0e","#2ca02c","#98df8a","#d62728","#ff9896","#9467bd","#c5b0d5"],"outputs":1,"useDifferentColor":false,"className":"","x":461,"y":294,"wires":[[]]},{"id":"95b81ba7015ce035","type":"ui_gauge","z":"921ffb91cd8aaac1","name":"","group":"61285987.c20328","order":0,"width":0,"height":0,"gtype":"gage","title":"Humidity","label":"%","format":"{{value}}","min":0,"max":"100","colors":["#00b3d9","#0073e6","#001bd7"],"seg1":"33","seg2":"66","className":"","x":440,"y":178,"wires":[]},{"id":"22e94b8c02e88d42","type":"inject","z":"921ffb91cd8aaac1","name":"","props":[{"p":"payload"},{"p":"topic","vt":"str"}],"repeat":"2","crontab":"","once":true,"onceDelay":0.1,"topic":"","payloadType":"date","x":140,"y":40,"wires":[["5fb93f613d646ccc","1b7fb8fa938f3496"]]},{"id":"5fb93f613d646ccc","type":"function","z":"921ffb91cd8aaac1","name":"","func":"var m;\nm = 100*Math.random();\nmsg.payload = Math.round(m);\nreturn msg;\n","outputs":1,"noerr":0,"initialize":"","finalize":"","libs":[],"x":330,"y":20,"wires":[["64b7a1046d679632"]]},{"id":"1b7fb8fa938f3496","type":"function","z":"921ffb91cd8aaac1","name":"","func":"\n//產生min到max之間的亂數\nmin=20;\nmax=50;\n\n//會產生20~50之間的隨機亂數\nmsg.payload =  Math.floor(Math.random()*(max-min+1))+min;\nreturn msg;","outputs":1,"noerr":0,"initialize":"","finalize":"","libs":[],"x":310,"y":60,"wires":[["1be8703a0c064300"]]},{"id":"1be8703a0c064300","type":"mqtt out","z":"921ffb91cd8aaac1","name":"","topic":"alex9ufo/esp32/temperature","qos":"1","retain":"","respTopic":"","contentType":"","userProps":"","correl":"","expiry":"","broker":"2db287b.addf978","x":520,"y":80,"wires":[]},{"id":"2db287b.addf978","type":"mqtt-broker","name":"","broker":"broker.mqtt-dashboard.com","port":"1883","clientid":"","usetls":false,"protocolVersion":"4","keepalive":"60","cleansession":true,"birthTopic":"/vm/mqtt/birth","birthQos":"0","birthPayload":"birth","birthMsg":{},"closeTopic":"","closePayload":"","closeMsg":{},"willTopic":"","willQos":"0","willPayload":"","willMsg":{},"sessionExpiry":""},{"id":"61285987.c20328","type":"ui_group","name":"測試2","tab":"b0dfa4371f4b1a30","order":1,"disp":true,"width":"6","collapse":false,"className":""},{"id":"b0dfa4371f4b1a30","type":"ui_tab","name":"Home","icon":"dashboard","disabled":false,"hidden":false}]

沒有留言:

張貼留言

113 學年度第 1 學期 RFID應用課程 Arduino程式

113 學年度第 1 學期 RFID應用課程 Arduino程式 https://www.mediafire.com/file/zr0h0p3iosq12jw/MFRC522+(2).7z/file 內含修改過後的 MFRC522 程式庫 (原程式有錯誤) //定義MFRC522...