ESP8266_DHT11_Thingspeak

I made an update to my DHT11 flow, and now in this version, using the node that a colleague created and shared here, it is also possible to see the read data in both, the node-red UI, and the thingspeak website.

My node-red is connected to a broker: http://www.hivemq.com/

Of course you should open an account on thingspeak to be able to use these nodes, the colleague's node link to thingspeak is this, link below.

https://flows.nodered.org/node/node-red-contrib-thingspeak42

Thank you for your contribution friend.

I also made a video, showing how to use this flow to make a practical application, locking a fan when the temperature is higher than the one set by the set point.

This is the link of video: https://www.youtube.com/watch?v=uKdEMALlciI&feature=youtu.be

The complete project is here: https://github.com/ckwiek/Smart-socket-ESP8266-NODE-RED

I tested both the flow and the project, but if someone checks for any errors, I'd appreciate it if they would let me know to fix.

[{"id":"45c41d6b.6e4b34","type":"mqtt in","z":"94949755.80f138","name":"Temperatura","topic":"client1/value","qos":"1","broker":"47dcf20d.cc4c4c","x":219,"y":156,"wires":[["3028d606.9cfeca","b9169041.3b56c","bee0e924.7b54f8"]]},{"id":"3028d606.9cfeca","type":"ui_gauge","z":"94949755.80f138","name":"Umidade","group":"12ed5804.30b9e8","order":0,"width":"6","height":"6","gtype":"gage","title":"Temperatura","label":"units","format":"{{value}}","min":0,"max":"60","colors":["#00b500","#e6e600","#ca3838"],"seg1":"25","seg2":"28","x":400,"y":114,"wires":[]},{"id":"b9169041.3b56c","type":"debug","z":"94949755.80f138","name":"","active":false,"console":"false","complete":"false","x":648,"y":203,"wires":[]},{"id":"43aa7f7f.67f25","type":"mqtt in","z":"94949755.80f138","name":"Umidade","topic":"client2/value2","qos":"1","broker":"47dcf20d.cc4c4c","x":218,"y":243,"wires":[["65d90298.95cafc","e035557e.610468","474d1c21.2d8684"]]},{"id":"65d90298.95cafc","type":"ui_gauge","z":"94949755.80f138","name":"Umidade","group":"12ed5804.30b9e8","order":0,"width":"6","height":"6","gtype":"gage","title":"Umidade","label":"units","format":"{{value}}","min":0,"max":"100","colors":["#00b500","#e6e600","#ca3838"],"seg1":"50","seg2":"60","x":385,"y":317,"wires":[]},{"id":"d4666856.9919e8","type":"mqtt in","z":"94949755.80f138","name":"","topic":"client3/value3","qos":"1","broker":"47dcf20d.cc4c4c","x":235,"y":382,"wires":[["fcc2819.4b8a98","e8aba9b2.9b4bb8"]]},{"id":"fcc2819.4b8a98","type":"ui_gauge","z":"94949755.80f138","name":"POT","group":"12ed5804.30b9e8","order":0,"width":"6","height":"6","gtype":"gage","title":"SeTPoint","label":"units","format":"{{value}}","min":0,"max":"60","colors":["#00b500","#e6e600","#ca3838"],"seg1":"25","seg2":"28","x":370,"y":438,"wires":[]},{"id":"e8aba9b2.9b4bb8","type":"debug","z":"94949755.80f138","name":"","active":false,"console":"false","complete":"false","x":633,"y":387,"wires":[]},{"id":"e035557e.610468","type":"debug","z":"94949755.80f138","name":"","active":false,"console":"false","complete":"false","x":643,"y":316,"wires":[]},{"id":"bee0e924.7b54f8","type":"thingspeak42","z":"94949755.80f138","name":"TEMPERATURA","delay":"15","topic1":"client1/value","topic2":"","topic3":"","topic4":"","topic5":"","topic6":"","topic7":"","topic8":"","endpoint":"https://thingspeak.com","x":598,"y":155,"wires":[]},{"id":"474d1c21.2d8684","type":"thingspeak42","z":"94949755.80f138","name":"UMIDADE","delay":"10","topic1":"","topic2":"client2/value2","topic3":"","topic4":"","topic5":"","topic6":"","topic7":"","topic8":"","endpoint":"https://thingspeak.com","x":527,"y":251,"wires":[]},{"id":"47dcf20d.cc4c4c","type":"mqtt-broker","z":"","broker":"192.168.0.6","port":"1883","clientid":"Teste","usetls":false,"compatmode":true,"keepalive":"60","cleansession":true,"willTopic":"","willQos":"0","willPayload":"","birthTopic":"","birthQos":"0","birthPayload":""},{"id":"12ed5804.30b9e8","type":"ui_group","z":"","name":"DHT11","tab":"1970df39.b46bf1","order":1,"disp":true,"width":"18"},{"id":"1970df39.b46bf1","type":"ui_tab","z":"","name":"ESP_DTH11","icon":"dashboard","order":3}]
ckwiek

Flow Info

created 4 months, 3 weeks ago

Node Types

Core
  • debug (x3)
  • mqtt in (x3)
  • mqtt-broker (x1)
Other

Tags

  • ESP8266
  • DHT11
  • Thingspeak
Copy this flow JSON to your clipboard and then import into Node-RED using the Import From > Clipboard (Ctrl-I) menu option