Node-RED:亂數顯示到Dashboard儀表板
[{"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":280,"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":660,"y":120,"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":660,"y":260,"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}]
沒有留言:
張貼留言