Plant Monitoring with Graphic Emoncms

I put sensors with Arduino and Rasberry - pi .

1- humidity sensor 1- temperature 1- soil moisture 1- light

as the variation of soil moisture sensor to pump water pumps

see :

http://caasisaac.no-ip.org/emoncms/root&id=1

[{"id":"7a361879.85c9e8","type":"nodebot","name":"","username":"","password":"","boardType":"firmata","serialportName":"/dev/ttyACM0","connectionType":"local","mqttServer":"","pubTopic":"","subTopic":"","tcpHost":"","tcpPort":"","sparkId":"","sparkToken":"","beanId":"","impId":""},{"id":"3b746044.c48ba","type":"emoncms-server","server":"http://10.1.1.102/emoncms/","name":"emoncms"},{"id":"997d5236.6682b","type":"function","name":"Solo Umidade","func":"var teste = JSON.parse(msg.payload);\n\nmsg.payload = \"Solo Humidade:\" + teste;\n\nreturn msg;","outputs":1,"noerr":0,"x":539.5,"y":145,"z":"a2e72bc5.5d18d8","wires":[["38a43a69.c75bc6","39ebfe48.c61402"]]},{"id":"38a43a69.c75bc6","type":"emoncms","name":"Emoncms","emonServer":"3b746044.c48ba","nodegroup":"","x":735.5,"y":208,"z":"a2e72bc5.5d18d8","wires":[]},{"id":"58b23371.a74dcc","type":"debug","name":"","active":false,"console":"false","complete":"payload","x":971.5,"y":271,"z":"a2e72bc5.5d18d8","wires":[]},{"id":"d811ca4c.27ee38","type":"rpi-dht22","name":"teste","topic":"rpi-dht22","dht":22,"pintype":"0","pin":"4","x":297.5,"y":225,"z":"a2e72bc5.5d18d8","wires":[["898ddfe8.76722","df4680ea.20b98"]]},{"id":"95b4d630.6a4b28","type":"inject","name":"","topic":"","payload":"","payloadType":"date","repeat":"3","crontab":"","once":true,"x":115.5,"y":269,"z":"a2e72bc5.5d18d8","wires":[["d811ca4c.27ee38"]]},{"id":"c6c94bcd.3936b8","type":"gpio in","name":"","state":"ANALOG","samplingInterval":"5000","pin":"2","board":"7a361879.85c9e8","x":311.5,"y":151,"z":"a2e72bc5.5d18d8","wires":[["997d5236.6682b","be4596d2.41ba68"]]},{"id":"898ddfe8.76722","type":"function","name":"Temperatura","func":"var teste = JSON.parse(msg.payload);\n\nmsg.payload = \"Temperatura:\" + teste;\n\nreturn msg;","outputs":1,"noerr":0,"x":536.5000305175781,"y":197,"z":"a2e72bc5.5d18d8","wires":[["38a43a69.c75bc6"]]},{"id":"df4680ea.20b98","type":"function","name":"Umidade Ar","func":"var humidade = JSON.parse(msg.humidity);\n\nmsg.humidity = \"Humidade Ar:\" + humidade;\nmsg.payload = msg.humidity;\n\nreturn msg;","outputs":1,"noerr":0,"x":535.5,"y":245,"z":"a2e72bc5.5d18d8","wires":[["38a43a69.c75bc6"]]},{"id":"39ebfe48.c61402","type":"debug","name":"","active":true,"console":"false","complete":"false","x":974.5,"y":214,"z":"a2e72bc5.5d18d8","wires":[]},{"id":"62671440.9d98ec","type":"debug","name":"","active":false,"console":"false","complete":"false","x":974.5,"y":331,"z":"a2e72bc5.5d18d8","wires":[]},{"id":"8231ddb1.7dce2","type":"gpio in","name":"Lux","state":"ANALOG","samplingInterval":"5000","pin":"0","board":"7a361879.85c9e8","x":314.5,"y":77,"z":"a2e72bc5.5d18d8","wires":[["72208905.8ddf78"]]},{"id":"72208905.8ddf78","type":"function","name":"Luminosidade","func":"var teste = JSON.parse(msg.payload);\n\nmsg.payload = \"Luminosidade:\" + teste;\n\nreturn msg;","outputs":1,"noerr":0,"x":537.5,"y":100,"z":"a2e72bc5.5d18d8","wires":[["38a43a69.c75bc6"]]},{"id":"ed91801b.126e8","type":"debug","name":"","active":false,"console":"false","complete":"false","x":970.5,"y":145,"z":"a2e72bc5.5d18d8","wires":[]},{"id":"d9b3085e.264cf8","type":"gpio out","name":"Bomba Agua","state":"OUTPUT","pin":"4","i2cDelay":"0","i2cAddress":"","i2cRegister":"","outputs":0,"board":"7a361879.85c9e8","x":968.5000305175781,"y":411,"z":"a2e72bc5.5d18d8","wires":[]},{"id":"be4596d2.41ba68","type":"switch","name":"","property":"payload","rules":[{"t":"gt","v":"52"},{"t":"gt","v":"2"}],"checkall":"true","outputs":2,"x":143.5,"y":401,"z":"a2e72bc5.5d18d8","wires":[["45a44e7e.ba5bb","db8a00da.2476"],["1ad23256.e52dce"]]},{"id":"db8a00da.2476","type":"trigger","op1":"1","op2":"1","op1type":"val","op2type":"pay","duration":"1","extend":false,"units":"s","name":"","x":593.5000610351562,"y":401.00006103515625,"z":"a2e72bc5.5d18d8","wires":[["ed91801b.126e8","d9b3085e.264cf8"]]},{"id":"45a44e7e.ba5bb","type":"function","name":"Bomba Agua","func":"var teste = JSON.parse(msg.payload);\n\nmsg.payload = \"Bomba Agua:\" + teste;\n\nreturn msg;","outputs":1,"noerr":0,"x":534.5909118652344,"y":311.0909118652344,"z":"a2e72bc5.5d18d8","wires":[["38a43a69.c75bc6"]]},{"id":"1ad23256.e52dce","type":"trigger","op1":"1","op2":"0","op1type":"val","op2type":"val","duration":"1","extend":false,"units":"s","name":"","x":346.0909423828125,"y":526.9091186523438,"z":"a2e72bc5.5d18d8","wires":[["45a44e7e.ba5bb"]]}]
caasisaac

Flow Info

created 1 year, 8 months ago

Node Types

Core
  • debug (x4)
  • function (x5)
  • inject (x1)
  • switch (x1)
  • trigger (x2)
Other

Tags

  • Plant
  • Monitoring
  • emoncms
  • Arduino
  • Rasberry
  • sensors
  • sensor
  • humidity
  • temperature
  • soil
  • moisture
  • light
  • water
  • Graphic
Copy this flow JSON to your clipboard and then import into Node-RED using the Import From > Clipboard (Ctrl-I) menu option