Skip to content

Instantly share code, notes, and snippets.

@leedrch
Created January 5, 2019 16:13
Show Gist options
  • Save leedrch/58fea53636a3a899d4d52ba437e2240e to your computer and use it in GitHub Desktop.
Save leedrch/58fea53636a3a899d4d52ba437e2240e to your computer and use it in GitHub Desktop.
Node-Red Flow example : DHT11 on RaspberryPi
[{"id":"3cec1b16.fb3c94","type":"comment","z":"edd3b9e7.c47d48","name":"DHT11","info":"","x":110,"y":140,"wires":[]},{"id":"1e59e60c.b80f7a","type":"inject","z":"edd3b9e7.c47d48","name":"","topic":"","payload":"","payloadType":"date","repeat":"","crontab":"","once":false,"onceDelay":0.1,"x":160,"y":180,"wires":[["6905a4ce.c04e4c"]]},{"id":"f01c779b.fba5c8","type":"debug","z":"edd3b9e7.c47d48","name":"","active":true,"tosidebar":true,"console":false,"tostatus":false,"complete":"true","x":530,"y":180,"wires":[]},{"id":"6905a4ce.c04e4c","type":"rpi-dht22","z":"edd3b9e7.c47d48","name":"","topic":"rpi-dht11","dht":"11","pintype":"4","pin":"1","x":340,"y":180,"wires":[["f01c779b.fba5c8","c23c0244.e0f9","d9eb1e18.89855","87085dd6.9f121","d3b49137.e5221"]]},{"id":"c23c0244.e0f9","type":"debug","z":"edd3b9e7.c47d48","name":"temperature","active":true,"tosidebar":true,"console":false,"tostatus":false,"complete":"payload","x":550,"y":220,"wires":[]},{"id":"d9eb1e18.89855","type":"debug","z":"edd3b9e7.c47d48","name":"humidity","active":true,"tosidebar":true,"console":false,"tostatus":false,"complete":"humidity","x":540,"y":260,"wires":[]},{"id":"a0a35d6c.ee4cc","type":"ui_gauge","z":"edd3b9e7.c47d48","name":"","group":"324601de.10d49e","order":0,"width":0,"height":0,"gtype":"gage","title":"temperature","label":"units","format":"{{value}}","min":0,"max":"50","colors":["#00b500","#e6e600","#ca3838"],"seg1":"","seg2":"","x":550,"y":320,"wires":[]},{"id":"4a13170c.d13b88","type":"ui_gauge","z":"edd3b9e7.c47d48","name":"","group":"324601de.10d49e","order":0,"width":0,"height":0,"gtype":"gage","title":"humidity","label":"units","format":"{{value}}","min":0,"max":"100","colors":["#00b500","#e6e600","#ca3838"],"seg1":"","seg2":"","x":540,"y":360,"wires":[]},{"id":"87085dd6.9f121","type":"function","z":"edd3b9e7.c47d48","name":"tem","func":"msg.payload = msg.payload;\nreturn msg;","outputs":1,"noerr":0,"x":350,"y":320,"wires":[["a0a35d6c.ee4cc"]]},{"id":"d3b49137.e5221","type":"function","z":"edd3b9e7.c47d48","name":"hum","func":"msg.payload = msg.humidity;\nreturn msg;","outputs":1,"noerr":0,"x":350,"y":360,"wires":[["4a13170c.d13b88"]]},{"id":"324601de.10d49e","type":"ui_group","z":"","name":"Default","tab":"c16ebc9.b95334","disp":true,"width":"6","collapse":false},{"id":"c16ebc9.b95334","type":"ui_tab","name":"Tab 1","icon":"dashboard","order":1}]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment