2020年12月23日 星期三

Node-Red MQTT 華氏攝氏(2)

 Node-Red MQTT 華氏攝氏(2)




[{"id":"7e25c2d5.f0476c","type":"comment","z":"4e792ace.0c0c04","name":"ESP8266 MQTT Temperature DS18B20 ","info":"","x":310,"y":40,"wires":[]},{"id":"866663df.03348","type":"mqtt in","z":"4e792ace.0c0c04","name":"DS1820 Temp Sensor","topic":"alex9ufo/outTopic/temp/DS1820sensor","qos":"2","datatype":"auto","broker":"e4d9b72d.d14398","x":260,"y":160,"wires":[["cce3ab83.b54588","73fc7aab.c2cd94","559ff7f.63d5408","59fa23b0.f46e5c"]]},{"id":"cce3ab83.b54588","type":"debug","z":"4e792ace.0c0c04","name":"","active":true,"console":"false","complete":"payload","x":530,"y":100,"wires":[]},{"id":"73fc7aab.c2cd94","type":"ui_gauge","z":"4e792ace.0c0c04","name":"","group":"4e2af753.086688","order":2,"width":0,"height":0,"gtype":"gage","title":"Temperature","label":"ºC","format":"{{value}}","min":"10","max":"50","colors":["#00b500","#e6e600","#ca3838"],"seg1":"","seg2":"","x":530,"y":160,"wires":[]},{"id":"559ff7f.63d5408","type":"ui_chart","z":"4e792ace.0c0c04","name":"5  Min","group":"4e2af753.086688","order":0,"width":0,"height":0,"label":"5  Min","chartType":"line","legend":"false","xformat":"H:M:S","interpolate":"linear","nodata":"5  Min","dot":false,"ymin":"10","ymax":"50","removeOlder":"1","removeOlderPoints":"","removeOlderUnit":"60","cutout":"","useOneColor":false,"useUTC":false,"colors":["#1f77b4","#aec7e8","#ff7f0e","#2ca02c","#98df8a","#d62728","#ff9896","#9467bd","#c5b0d5"],"outputs":1,"x":510,"y":220,"wires":[[]]},{"id":"59fa23b0.f46e5c","type":"ui_chart","z":"4e792ace.0c0c04","name":"1  Hour","group":"4e2af753.086688","order":0,"width":0,"height":0,"label":"1  Hour","chartType":"line","legend":"false","xformat":"H:M:S","interpolate":"linear","nodata":"","dot":false,"ymin":"10","ymax":"50","removeOlder":1,"removeOlderPoints":"","removeOlderUnit":"3600","cutout":"","useOneColor":false,"useUTC":false,"colors":["#1f77b4","#aec7e8","#ff7f0e","#2ca02c","#98df8a","#d62728","#ff9896","#9467bd","#c5b0d5"],"outputs":1,"x":510,"y":280,"wires":[[]]},{"id":"28b0dd1b.b3d632","type":"function","z":"4e792ace.0c0c04","name":"","func":"var max=50;\nvar min=10;\nmsg.payload= Math.floor(Math.random()*(max-min+1))+min;\nreturn msg;","outputs":1,"noerr":0,"initialize":"","finalize":"","x":250,"y":380,"wires":[["beb35e5b.181b6"]]},{"id":"beb35e5b.181b6","type":"mqtt out","z":"4e792ace.0c0c04","name":"DS1820 Temp Sensor","topic":"alex9ufo/outTopic/temp/DS1820sensor","qos":"2","retain":"","broker":"e4d9b72d.d14398","x":440,"y":380,"wires":[]},{"id":"69aed158.bec98","type":"inject","z":"4e792ace.0c0c04","name":"","props":[{"p":"payload"},{"p":"topic","vt":"str"}],"repeat":"4","crontab":"","once":false,"onceDelay":0.1,"topic":"","payload":"","payloadType":"date","x":110,"y":380,"wires":[["28b0dd1b.b3d632"]]},{"id":"e4d9b72d.d14398","type":"mqtt-broker","name":"","broker":"broker.mqtt-dashboard.com","port":"1883","clientid":"","usetls":false,"compatmode":true,"keepalive":"15","cleansession":true,"birthTopic":"","birthQos":"0","birthPayload":"","closeTopic":"","closePayload":"","willTopic":"","willQos":"0","willPayload":""},{"id":"4e2af753.086688","type":"ui_group","name":"ESP8266 DS18B20 MQTT","tab":"e0a394f8.695aa8","order":1,"disp":true,"width":"6"},{"id":"e0a394f8.695aa8","type":"ui_tab","name":"ESP8266","icon":"dashboard","order":2}]

沒有留言:

張貼留言

2024_09 作業3 以Node-Red 為主

 2024_09 作業3  (以Node-Red 為主  Arduino 可能需要配合修改 ) Arduino 可能需要修改的部分 1)mqtt broker  2) 主題Topic (發行 接收) 3) WIFI ssid , password const char br...