Skip to content

Instantly share code, notes, and snippets.

@Dornawcox
Last active March 18, 2018 19:32
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save Dornawcox/662eaabc188cd7d8ef0a4ebeac02ad7a to your computer and use it in GitHub Desktop.
Save Dornawcox/662eaabc188cd7d8ef0a4ebeac02ad7a to your computer and use it in GitHub Desktop.
Farm Suite FIOT node-red flows
[{"id":"d0e58ee4.02def","type":"tab","label":"Germination Chamber ","disabled":true,"info":""},{"id":"3cd62fd9.1af1c8","type":"tab","label":"Relay Control","disabled":true,"info":""},{"id":"45c8404.aa8154","type":"tab","label":"GreenHouse Control ","disabled":true,"info":""},{"id":"59a0335a.418e94","type":"tab","label":"Walk-In Cooler","disabled":true,"info":""},{"id":"2b13bfc8.898938","type":"tab","label":"Fence and Water Monitor ","disabled":true,"info":""},{"id":"55b03d0a.3d7034","type":"tab","label":"Observatory ","disabled":true,"info":""},{"id":"270bf7d9.ba2778","type":"tab","label":"Irrigation Control ","disabled":true,"info":""},{"id":"2dfaf8f8.30897","type":"tab","label":"Root Cellar ","disabled":true,"info":""},{"id":"48c29024.b749","type":"tab","label":"Compost Heating System","disabled":true,"info":""},{"id":"9009c2e0.ed13f","type":"tab","label":"Flow 1","disabled":true,"info":""},{"id":"4ff04edd.6724c8","type":"board-config","z":"","board":"GrovePi"},{"id":"f54350b.c18a63","type":"mui_base","theme":{"name":"theme-light","lightTheme":{"default":"#0094CE","baseColor":"#0094CE","baseFont":"-apple-system,BlinkMacSystemFont,Segoe UI,Roboto,Oxygen-Sans,Ubuntu,Cantarell,Helvetica Neue,sans-serif","edited":true,"reset":false},"darkTheme":{"default":"#097479","baseColor":"#097479","baseFont":"-apple-system,BlinkMacSystemFont,Segoe UI,Roboto,Oxygen-Sans,Ubuntu,Cantarell,Helvetica Neue,sans-serif","edited":false},"customTheme":{"name":"Untitled Theme 1","default":"#4B7930","baseColor":"#4B7930","baseFont":"-apple-system,BlinkMacSystemFont,Segoe UI,Roboto,Oxygen-Sans,Ubuntu,Cantarell,Helvetica Neue,sans-serif"},"themeState":{"m-base-color":{"default":"#0094CE","value":"#0094CE","edited":false},"m-page-titlebar-backgroundColor":{"value":"#0094CE","edited":false},"m-page-backgroundColor":{"value":"#fafafa","edited":false},"m-page-sidebar-backgroundColor":{"value":"#ffffff","edited":false},"m-group-textColor":{"value":"#1bbfff","edited":false},"m-group-borderColor":{"value":"#ffffff","edited":false},"m-group-backgroundColor":{"value":"#ffffff","edited":false},"m-widget-textColor":{"value":"#111111","edited":false},"m-widget-backgroundColor":{"value":"#0094ce","edited":false},"m-widget-borderColor":{"value":"#ffffff","edited":false},"base-font":{"value":"-apple-system,BlinkMacSystemFont,Segoe UI,Roboto,Oxygen-Sans,Ubuntu,Cantarell,Helvetica Neue,sans-serif"}}},"site":{"name":"Node-RED Dashboard","hideToolbar":"false","allowSwipe":"false","dateFormat":"DD/MM/YYYY","sizes":{"sx":48,"sy":48,"gx":6,"gy":6,"cx":6,"cy":6,"px":0,"py":0}}},{"id":"d2091807.cd1338","type":"mui_group","name":"mGroup 1","tab":"","order":1,"disp":true,"width":6},{"id":"589139ec.29424","type":"mui_tab","z":"","name":"test guage","icon":"dashboard","order":2},{"id":"183c8e88.d73fe9","type":"mui_link","z":"","name":"Link 2","link":"","icon":"open_in_browser","target":"newtab","order":2},{"id":"33eec52b.dfc802","type":"ui_group","z":"","name":"Test","tab":"d7b290f7.baff48","disp":true,"width":"6","collapse":false},{"id":"d7b290f7.baff48","type":"ui_tab","z":"","name":"Home","icon":"dashboard"},{"id":"806b4b91.afa8f","type":"ui_base","theme":{"name":"theme-light","lightTheme":{"default":"#0094CE","baseColor":"#0094CE","baseFont":"-apple-system,BlinkMacSystemFont,Segoe UI,Roboto,Oxygen-Sans,Ubuntu,Cantarell,Helvetica Neue,sans-serif","edited":true,"reset":false},"darkTheme":{"default":"#097479","baseColor":"#097479","baseFont":"-apple-system,BlinkMacSystemFont,Segoe UI,Roboto,Oxygen-Sans,Ubuntu,Cantarell,Helvetica Neue,sans-serif","edited":false},"customTheme":{"name":"Untitled Theme 1","default":"#4B7930","baseColor":"#4B7930","baseFont":"-apple-system,BlinkMacSystemFont,Segoe UI,Roboto,Oxygen-Sans,Ubuntu,Cantarell,Helvetica Neue,sans-serif"},"themeState":{"base-color":{"default":"#0094CE","value":"#0094CE","edited":false},"page-titlebar-backgroundColor":{"value":"#0094CE","edited":false},"page-backgroundColor":{"value":"#fafafa","edited":false},"page-sidebar-backgroundColor":{"value":"#ffffff","edited":false},"group-textColor":{"value":"#1bbfff","edited":false},"group-borderColor":{"value":"#ffffff","edited":false},"group-backgroundColor":{"value":"#ffffff","edited":false},"widget-textColor":{"value":"#111111","edited":false},"widget-backgroundColor":{"value":"#0094ce","edited":false},"widget-borderColor":{"value":"#ffffff","edited":false},"base-font":{"value":"-apple-system,BlinkMacSystemFont,Segoe UI,Roboto,Oxygen-Sans,Ubuntu,Cantarell,Helvetica Neue,sans-serif"}}},"site":{"name":"Node-RED Dashboard","hideToolbar":"false","allowSwipe":"false","dateFormat":"DD/MM/YYYY","sizes":{"sx":48,"sy":48,"gx":6,"gy":6,"cx":6,"cy":6,"px":0,"py":0}}},{"id":"9012ea9f.81efd","type":"switch","z":"3cd62fd9.1af1c8","name":"Define the logic for when to turn on and off","property":"payload","propertyType":"msg","rules":[{"t":"gte","v":"50","vt":"str"},{"t":"lt","v":"50","vt":"str"}],"checkall":"true","repair":false,"outputs":2,"x":208,"y":280,"wires":[["428603f2.7c49ac"],["e207456e.6424a8"]],"outputLabels":["Over","Under"]},{"id":"428603f2.7c49ac","type":"change","z":"3cd62fd9.1af1c8","name":"TRUE","rules":[{"t":"set","p":"payload","pt":"msg","to":"true","tot":"bool"}],"action":"","property":"","from":"","to":"","reg":false,"x":463,"y":249,"wires":[["9016cf3d.7633c8"]]},{"id":"e207456e.6424a8","type":"change","z":"3cd62fd9.1af1c8","name":"FALSE","rules":[{"t":"set","p":"payload","pt":"msg","to":"false","tot":"bool"}],"action":"","property":"","from":"","to":"","reg":false,"x":471,"y":313,"wires":[["9016cf3d.7633c8"]]},{"id":"a5a5fbaa.1e093","type":"grove digital sensor","z":"3cd62fd9.1af1c8","name":"Grab sensor values","board":"4ff04edd.6724c8","sensor":"ultrasonic","repeat":"1800","pin":"7","x":97,"y":192,"wires":[["78e9a2b4.095e3c","9012ea9f.81efd"]]},{"id":"7c531c43.a679f4","type":"split","z":"3cd62fd9.1af1c8","name":"Split into 3 separate readings","splt":"\\n","spltType":"str","arraySplt":1,"arraySpltType":"len","stream":false,"addname":"topic","x":301,"y":545,"wires":[["fd8c6ffe.5c3728"]]},{"id":"fd8c6ffe.5c3728","type":"switch","z":"3cd62fd9.1af1c8","name":"Create a path for each sensor","property":"topic","propertyType":"msg","rules":[{"t":"eq","v":"temperature","vt":"str"},{"t":"eq","v":"humidity","vt":"str"},{"t":"eq","v":"heatIndex","vt":"str"}],"checkall":"true","repair":false,"outputs":3,"x":347,"y":625,"wires":[["628580b7.36a8e8"],["589549d7.722e28"],["c07a5080.88b6a8"]]},{"id":"628580b7.36a8e8","type":"debug","z":"3cd62fd9.1af1c8","name":"Debuging output","active":true,"tosidebar":true,"console":false,"tostatus":false,"complete":"payload","x":620,"y":521,"wires":[]},{"id":"63797d0d.17f864","type":"comment","z":"3cd62fd9.1af1c8","name":"Grab values from the sensor and turn a relay on or off depending on the value","info":"","x":431,"y":51,"wires":[]},{"id":"5dad7285.8b361c","type":"inject","z":"3cd62fd9.1af1c8","name":"Test input","topic":"value","payload":"33","payloadType":"num","repeat":"","crontab":"","once":false,"onceDelay":"","x":144,"y":112,"wires":[["78e9a2b4.095e3c"]]},{"id":"78e9a2b4.095e3c","type":"template","z":"3cd62fd9.1af1c8","name":"Make json","field":"payload","fieldType":"msg","format":"handlebars","syntax":"mustache","template":"{\"value\": {{payload}} }","x":356,"y":189,"wires":[["d831258b.ac6c58","ae8c1358.763d4"]]},{"id":"d831258b.ac6c58","type":"http request","z":"3cd62fd9.1af1c8","name":"Push to FarmOS","method":"POST","ret":"txt","url":"https:/","tls":"","x":617,"y":191,"wires":[[]]},{"id":"b5ace93a.3c4408","type":"inject","z":"3cd62fd9.1af1c8","name":"Relay On","topic":"","payload":"true","payloadType":"bool","repeat":"","crontab":"","once":false,"onceDelay":0.1,"x":475,"y":388.5,"wires":[["9016cf3d.7633c8"]]},{"id":"a9c1de70.4d9b3","type":"inject","z":"3cd62fd9.1af1c8","name":"Relay Off","topic":"","payload":"false","payloadType":"bool","repeat":"","crontab":"","once":false,"onceDelay":0.1,"x":477,"y":431.5,"wires":[["9016cf3d.7633c8"]]},{"id":"9016cf3d.7633c8","type":"grovepi-relay","z":"3cd62fd9.1af1c8","name":"Relay ","pin":"8","x":779,"y":343,"wires":[]},{"id":"ae8c1358.763d4","type":"debug","z":"3cd62fd9.1af1c8","name":"","active":true,"tosidebar":true,"console":false,"tostatus":false,"complete":"payload","x":596,"y":132,"wires":[]},{"id":"3b71c746.fb71b8","type":"grove digital sensor","z":"3cd62fd9.1af1c8","name":"","board":"4ff04edd.6724c8","sensor":"dht22","repeat":"600","pin":"5","x":95,"y":498.5,"wires":[["7c531c43.a679f4"]]},{"id":"589549d7.722e28","type":"debug","z":"3cd62fd9.1af1c8","name":"","active":true,"tosidebar":true,"console":false,"tostatus":false,"complete":"payload","x":629,"y":564,"wires":[]},{"id":"c07a5080.88b6a8","type":"debug","z":"3cd62fd9.1af1c8","name":"","active":true,"tosidebar":true,"console":false,"tostatus":false,"complete":"payload","x":629,"y":610,"wires":[]},{"id":"fdd186d8.1900a","type":"switch","z":"d0e58ee4.02def","name":"Create a path for each sensor","property":"topic","propertyType":"msg","rules":[{"t":"eq","v":"temperature","vt":"str"},{"t":"eq","v":"humidity","vt":"str"},{"t":"eq","v":"heatIndex","vt":"str"}],"checkall":"true","repair":false,"outputs":3,"x":350,"y":240,"wires":[["8e014c52.cf1e28","5d88a518.3960b4","98a85e67.3dfc88"],["28fffbba.666e24","3e414156.90076e","18235446.5d42ac"],["c37f53a9.0d35e8"]]},{"id":"fcf68032.308aa8","type":"split","z":"d0e58ee4.02def","name":"Split into 3 separate readings","splt":"\\n","spltType":"str","arraySplt":1,"arraySpltType":"len","stream":false,"addname":"topic","x":304,"y":160,"wires":[["fdd186d8.1900a"]]},{"id":"8e014c52.cf1e28","type":"debug","z":"d0e58ee4.02def","name":"Debuging temp output","active":true,"tosidebar":true,"console":false,"tostatus":false,"complete":"payload","x":740,"y":160,"wires":[]},{"id":"28fffbba.666e24","type":"debug","z":"d0e58ee4.02def","name":"Debug Humidity output","active":true,"tosidebar":true,"console":false,"tostatus":false,"complete":"payload","x":750,"y":240,"wires":[]},{"id":"c37f53a9.0d35e8","type":"debug","z":"d0e58ee4.02def","name":"Debug heatindex","active":true,"tosidebar":true,"console":false,"tostatus":false,"complete":"payload","x":750,"y":340,"wires":[]},{"id":"f6277151.e3cf78","type":"grove digital sensor","z":"d0e58ee4.02def","name":"","board":"4ff04edd.6724c8","sensor":"dht22","repeat":"600","pin":"5","x":110,"y":80,"wires":[["fcf68032.308aa8"]]},{"id":"5d88a518.3960b4","type":"switch","z":"d0e58ee4.02def","name":"Define temperature when to turn on and off","property":"payload","propertyType":"msg","rules":[{"t":"lte","v":"15","vt":"str"},{"t":"gt","v":"15","vt":"str"}],"checkall":"true","repair":false,"outputs":2,"x":210,"y":460,"wires":[["fe41d9f4.997be8"],["120da724.50b039"]],"outputLabels":["Over","Under"]},{"id":"fe41d9f4.997be8","type":"change","z":"d0e58ee4.02def","name":"TRUE","rules":[{"t":"set","p":"payload","pt":"msg","to":"true","tot":"bool"}],"action":"","property":"","from":"","to":"","reg":false,"x":465,"y":429,"wires":[["1aee34ee.37ebab"]]},{"id":"120da724.50b039","type":"change","z":"d0e58ee4.02def","name":"FALSE","rules":[{"t":"set","p":"payload","pt":"msg","to":"false","tot":"bool"}],"action":"","property":"","from":"","to":"","reg":false,"x":473,"y":493,"wires":[["1aee34ee.37ebab"]]},{"id":"1aee34ee.37ebab","type":"grovepi-relay","z":"d0e58ee4.02def","name":"Relay D8 heater","pin":"8","x":773,"y":528,"wires":[]},{"id":"98a85e67.3dfc88","type":"template","z":"d0e58ee4.02def","name":"Make json","field":"payload","fieldType":"msg","format":"handlebars","syntax":"mustache","template":"{\"temperature\": {{payload}} }","x":490,"y":40,"wires":[["e3a8f038.30869"]]},{"id":"363bf1ca.0fa6b6","type":"inject","z":"d0e58ee4.02def","name":"Relay On","topic":"","payload":"true","payloadType":"bool","repeat":"","crontab":"","once":false,"onceDelay":0.1,"x":477,"y":568.5,"wires":[["1aee34ee.37ebab"]]},{"id":"50c0320c.1d4944","type":"inject","z":"d0e58ee4.02def","name":"Relay Off","topic":"","payload":"false","payloadType":"bool","repeat":"","crontab":"","once":false,"onceDelay":0.1,"x":479,"y":611.5,"wires":[["1aee34ee.37ebab"]]},{"id":"e3a8f038.30869","type":"http request","z":"d0e58ee4.02def","name":"Push to FarmOS","method":"POST","ret":"txt","url":"https://","tls":"","x":816,"y":33,"wires":[[]]},{"id":"a751fc7e.0878b","type":"change","z":"d0e58ee4.02def","name":"TRUE","rules":[{"t":"set","p":"payload","pt":"msg","to":"true","tot":"bool"}],"action":"","property":"","from":"","to":"","reg":false,"x":470,"y":660,"wires":[["30f3e30d.8d0b64"]]},{"id":"18235446.5d42ac","type":"switch","z":"d0e58ee4.02def","name":"Define humidity for when to turn on and off","property":"payload","propertyType":"msg","rules":[{"t":"lte","v":"25","vt":"str"},{"t":"gt","v":"25","vt":"str"}],"checkall":"true","repair":false,"outputs":2,"x":215,"y":691,"wires":[["a751fc7e.0878b"],["33fa9ed3.8b1532"]],"outputLabels":["Over","Under"]},{"id":"30f3e30d.8d0b64","type":"grovepi-relay","z":"d0e58ee4.02def","name":"Relay D6 humidifier","pin":"6","x":836,"y":754,"wires":[]},{"id":"33fa9ed3.8b1532","type":"change","z":"d0e58ee4.02def","name":"FALSE","rules":[{"t":"set","p":"payload","pt":"msg","to":"false","tot":"bool"}],"action":"","property":"","from":"","to":"","reg":false,"x":478,"y":724,"wires":[["30f3e30d.8d0b64"]]},{"id":"7d6c8cb5.9d326c","type":"inject","z":"d0e58ee4.02def","name":"Relay On","topic":"","payload":"true","payloadType":"bool","repeat":"","crontab":"","once":false,"onceDelay":0.1,"x":482,"y":799.5,"wires":[["30f3e30d.8d0b64"]]},{"id":"f2a0bc36.9c30f","type":"inject","z":"d0e58ee4.02def","name":"Relay Off","topic":"","payload":"false","payloadType":"bool","repeat":"","crontab":"","once":false,"onceDelay":0.1,"x":484,"y":842.5,"wires":[["30f3e30d.8d0b64"]]},{"id":"3e414156.90076e","type":"template","z":"d0e58ee4.02def","name":"Make json","field":"payload","fieldType":"msg","format":"handlebars","syntax":"mustache","template":"{\"humidity\": {{payload}} }","x":550,"y":100,"wires":[["e3a8f038.30869"]]},{"id":"39f41bdc.8c40dc","type":"split","z":"45c8404.aa8154","name":"Split into 3 separate readings","splt":"\\n","spltType":"str","arraySplt":1,"arraySpltType":"len","stream":false,"addname":"topic","x":270,"y":220,"wires":[["e2066cb7.e7c2d"]]},{"id":"e2066cb7.e7c2d","type":"switch","z":"45c8404.aa8154","name":"Create a path for each sensor","property":"topic","propertyType":"msg","rules":[{"t":"eq","v":"temperature","vt":"str"},{"t":"eq","v":"humidity","vt":"str"},{"t":"eq","v":"heatIndex","vt":"str"}],"checkall":"true","repair":false,"outputs":3,"x":316,"y":300,"wires":[["68831c13.a44d44","f7535f4c.9170c8","7622fc64.7ca54c","8383412d.517948"],["47cb79cd.771a98","ca6e2bb5.6b1038"],["c65a6730.35f618"]]},{"id":"7e0f9003.627cd8","type":"grove digital sensor","z":"45c8404.aa8154","name":"","board":"4ff04edd.6724c8","sensor":"dht22","repeat":"600","pin":"5","x":76,"y":140,"wires":[["39f41bdc.8c40dc"]]},{"id":"47cb79cd.771a98","type":"debug","z":"45c8404.aa8154","name":"Debug Humidity output","active":true,"tosidebar":true,"console":false,"tostatus":false,"complete":"payload","x":716,"y":300,"wires":[]},{"id":"c65a6730.35f618","type":"debug","z":"45c8404.aa8154","name":"Debug heatindex","active":true,"tosidebar":true,"console":false,"tostatus":false,"complete":"payload","x":716,"y":400,"wires":[]},{"id":"68831c13.a44d44","type":"debug","z":"45c8404.aa8154","name":"Debuging temp output","active":true,"tosidebar":true,"console":false,"tostatus":false,"complete":"payload","x":706,"y":220,"wires":[]},{"id":"f7535f4c.9170c8","type":"switch","z":"45c8404.aa8154","name":"Define temperature for when to open sides","property":"payload","propertyType":"msg","rules":[{"t":"lte","v":"75","vt":"str"},{"t":"gt","v":"75","vt":"str"}],"checkall":"true","repair":false,"outputs":2,"x":176,"y":520,"wires":[["e481361e.e4959"],["c6a93030.720ba"]],"outputLabels":["Over","Under"]},{"id":"7622fc64.7ca54c","type":"template","z":"45c8404.aa8154","name":"Make json","field":"payload","fieldType":"msg","format":"handlebars","syntax":"mustache","template":"{\"temperature\": {{payload}} }","x":490,"y":80,"wires":[["f0ef57d9.9f3f3"]]},{"id":"ca6e2bb5.6b1038","type":"template","z":"45c8404.aa8154","name":"Make json","field":"payload","fieldType":"msg","format":"handlebars","syntax":"mustache","template":"{\"humidity\": {{payload}} }","x":516,"y":160,"wires":[["f0ef57d9.9f3f3"]]},{"id":"8383412d.517948","type":"switch","z":"45c8404.aa8154","name":"Define temperature for when to shut sides","property":"payload","propertyType":"msg","rules":[{"t":"lte","v":"70","vt":"str"},{"t":"gt","v":"70","vt":"str"}],"checkall":"true","repair":false,"outputs":2,"x":181,"y":751,"wires":[["fc104d04.72e61"],["8023f6fb.0be97"]],"outputLabels":["Over","Under"]},{"id":"e481361e.e4959","type":"change","z":"45c8404.aa8154","name":"TRUE","rules":[{"t":"set","p":"payload","pt":"msg","to":"true","tot":"bool"}],"action":"","property":"","from":"","to":"","reg":false,"x":431,"y":489,"wires":[["5809db3.4b85924"]]},{"id":"c6a93030.720ba","type":"change","z":"45c8404.aa8154","name":"FALSE","rules":[{"t":"set","p":"payload","pt":"msg","to":"false","tot":"bool"}],"action":"","property":"","from":"","to":"","reg":false,"x":439,"y":553,"wires":[["5809db3.4b85924"]]},{"id":"f0ef57d9.9f3f3","type":"http request","z":"45c8404.aa8154","name":"Push to FarmOS","method":"POST","ret":"txt","url":"https://","tls":"","x":696,"y":100,"wires":[[]]},{"id":"29b3af3.b7668d","type":"inject","z":"45c8404.aa8154","name":"Test input","topic":"value","payload":"25","payloadType":"num","repeat":"","crontab":"","once":false,"onceDelay":"","x":66,"y":80,"wires":[["7622fc64.7ca54c"]]},{"id":"fc104d04.72e61","type":"change","z":"45c8404.aa8154","name":"TRUE","rules":[{"t":"set","p":"payload","pt":"msg","to":"true","tot":"bool"}],"action":"","property":"","from":"","to":"","reg":false,"x":436,"y":720,"wires":[["297c0ec.aa6da72"]]},{"id":"8023f6fb.0be97","type":"change","z":"45c8404.aa8154","name":"FALSE","rules":[{"t":"set","p":"payload","pt":"msg","to":"false","tot":"bool"}],"action":"","property":"","from":"","to":"","reg":false,"x":444,"y":784,"wires":[["297c0ec.aa6da72"]]},{"id":"5809db3.4b85924","type":"grovepi-relay","z":"45c8404.aa8154","name":"Relay D8 open sides","pin":"8","x":797,"y":583,"wires":[]},{"id":"297c0ec.aa6da72","type":"grovepi-relay","z":"45c8404.aa8154","name":"Relay D6 shut sides","pin":"6","x":780,"y":800,"wires":[]},{"id":"263b4bd6.8cd78c","type":"inject","z":"45c8404.aa8154","name":"Relay On","topic":"","payload":"true","payloadType":"bool","repeat":"","crontab":"","once":false,"onceDelay":0.1,"x":443,"y":628.5,"wires":[["5809db3.4b85924"]]},{"id":"99c328e9.1e4458","type":"inject","z":"45c8404.aa8154","name":"Relay Off","topic":"","payload":"false","payloadType":"bool","repeat":"","crontab":"","once":false,"onceDelay":0.1,"x":445,"y":671.5,"wires":[["5809db3.4b85924"]]},{"id":"7c04d198.a90818","type":"inject","z":"45c8404.aa8154","name":"Relay On","topic":"","payload":"true","payloadType":"bool","repeat":"","crontab":"","once":false,"onceDelay":0.1,"x":448,"y":859.5,"wires":[["297c0ec.aa6da72"]]},{"id":"55483fe6.9d043","type":"inject","z":"45c8404.aa8154","name":"Relay Off","topic":"","payload":"false","payloadType":"bool","repeat":"","crontab":"","once":false,"onceDelay":0.1,"x":450,"y":902.5,"wires":[["297c0ec.aa6da72"]]},{"id":"8e71fae7.903698","type":"split","z":"59a0335a.418e94","name":"Split into 3 separate readings","splt":"\\n","spltType":"str","arraySplt":1,"arraySpltType":"len","stream":false,"addname":"topic","x":270,"y":160,"wires":[["a8aacff4.d2feb"]]},{"id":"a8aacff4.d2feb","type":"switch","z":"59a0335a.418e94","name":"Create a path for each sensor","property":"topic","propertyType":"msg","rules":[{"t":"eq","v":"temperature","vt":"str"},{"t":"eq","v":"humidity","vt":"str"},{"t":"eq","v":"heatIndex","vt":"str"}],"checkall":"true","repair":false,"outputs":3,"x":316,"y":240,"wires":[["ea877d11.d058f","b5e246ed.b1b73","b4652c06.cf763","169ff68a.eac4b1"],["18932066.e00bd","e1016ecf.91ef78","6bc1495f.67bf18"],["e6beb06a.b4fad8"]]},{"id":"ea837b6d.5cd96","type":"grove digital sensor","z":"59a0335a.418e94","name":"Temperature and Humidity sensor","board":"4ff04edd.6724c8","sensor":"dht22","repeat":"600","pin":"5","x":126,"y":80,"wires":[["8e71fae7.903698"]]},{"id":"18932066.e00bd","type":"debug","z":"59a0335a.418e94","name":"Debug Humidity output","active":true,"tosidebar":true,"console":false,"tostatus":false,"complete":"payload","x":716,"y":240,"wires":[]},{"id":"e6beb06a.b4fad8","type":"debug","z":"59a0335a.418e94","name":"Debug heatindex","active":true,"tosidebar":true,"console":false,"tostatus":false,"complete":"payload","x":716,"y":340,"wires":[]},{"id":"ea877d11.d058f","type":"debug","z":"59a0335a.418e94","name":"Debuging temp output","active":true,"tosidebar":true,"console":false,"tostatus":false,"complete":"payload","x":706,"y":160,"wires":[]},{"id":"169ff68a.eac4b1","type":"switch","z":"59a0335a.418e94","name":"Define Temp(C) when to turn Cooler on and off","property":"payload","propertyType":"msg","rules":[{"t":"lte","v":"75","vt":"str"},{"t":"gt","v":"75","vt":"str"}],"checkall":"true","repair":false,"outputs":2,"x":260,"y":460,"wires":[["4d3a08cd.6427b8"],["97b1b873.b9af08"]],"outputLabels":["Over","Under"]},{"id":"b5e246ed.b1b73","type":"template","z":"59a0335a.418e94","name":"Make json","field":"payload","fieldType":"msg","format":"handlebars","syntax":"mustache","template":"{\"temperature\": {{payload}} }","x":631,"y":66,"wires":[["b734d2dc.a04f5"]]},{"id":"e1016ecf.91ef78","type":"template","z":"59a0335a.418e94","name":"Make json","field":"payload","fieldType":"msg","format":"handlebars","syntax":"mustache","template":"{\"humidity\": {{payload}} }","x":631,"y":99,"wires":[["b734d2dc.a04f5"]]},{"id":"b4652c06.cf763","type":"switch","z":"59a0335a.418e94","name":"Define Temp(C) for when to turn heater on and off","property":"payload","propertyType":"msg","rules":[{"t":"lte","v":"70","vt":"str"},{"t":"gt","v":"70","vt":"str"}],"checkall":"true","repair":false,"outputs":2,"x":421,"y":693,"wires":[["84fee520.ef1718"],["6f034117.50f2e"]],"outputLabels":["Over","Under"]},{"id":"4d3a08cd.6427b8","type":"change","z":"59a0335a.418e94","name":"TRUE","rules":[{"t":"set","p":"payload","pt":"msg","to":"true","tot":"bool"}],"action":"","property":"","from":"","to":"","reg":false,"x":510,"y":440,"wires":[["7c9a559c.288474"]]},{"id":"97b1b873.b9af08","type":"change","z":"59a0335a.418e94","name":"FALSE","rules":[{"t":"set","p":"payload","pt":"msg","to":"false","tot":"bool"}],"action":"","property":"","from":"","to":"","reg":false,"x":520,"y":500,"wires":[["7c9a559c.288474"]]},{"id":"b734d2dc.a04f5","type":"http request","z":"59a0335a.418e94","name":"Push to FarmOS","method":"POST","ret":"txt","url":"https://","tls":"","x":1047,"y":66,"wires":[[]]},{"id":"58d91b87.f01c5c","type":"inject","z":"59a0335a.418e94","name":"Test input","topic":"value","payload":"25","payloadType":"num","repeat":"","crontab":"","once":false,"onceDelay":"","x":66,"y":20,"wires":[["b5e246ed.b1b73"]]},{"id":"84fee520.ef1718","type":"change","z":"59a0335a.418e94","name":"TRUE","rules":[{"t":"set","p":"payload","pt":"msg","to":"true","tot":"bool"}],"action":"","property":"","from":"","to":"","reg":false,"x":710,"y":660,"wires":[["943e9656.4f39f"]]},{"id":"6f034117.50f2e","type":"change","z":"59a0335a.418e94","name":"FALSE","rules":[{"t":"set","p":"payload","pt":"msg","to":"false","tot":"bool"}],"action":"","property":"","from":"","to":"","reg":false,"x":720,"y":726,"wires":[["943e9656.4f39f"]]},{"id":"7c9a559c.288474","type":"grovepi-relay","z":"59a0335a.418e94","name":"Relay D8 cooler ","pin":"8","x":777,"y":523,"wires":[]},{"id":"943e9656.4f39f","type":"grovepi-relay","z":"59a0335a.418e94","name":"Relay D6 heater","pin":"6","x":938,"y":759,"wires":[]},{"id":"d1da0dc9.0a957","type":"inject","z":"59a0335a.418e94","name":"Relay On","topic":"","payload":"true","payloadType":"bool","repeat":"","crontab":"","once":false,"onceDelay":0.1,"x":443,"y":568.5,"wires":[["7c9a559c.288474"]]},{"id":"dcc967d2.0c64a","type":"inject","z":"59a0335a.418e94","name":"Relay Off","topic":"","payload":"false","payloadType":"bool","repeat":"","crontab":"","once":false,"onceDelay":0.1,"x":445,"y":611.5,"wires":[["7c9a559c.288474"]]},{"id":"ecb501f8.e9948","type":"inject","z":"59a0335a.418e94","name":"Relay On","topic":"","payload":"true","payloadType":"bool","repeat":"","crontab":"","once":false,"onceDelay":0.1,"x":448,"y":799.5,"wires":[["943e9656.4f39f"]]},{"id":"f863959b.e9f088","type":"inject","z":"59a0335a.418e94","name":"Relay Off","topic":"","payload":"false","payloadType":"bool","repeat":"","crontab":"","once":false,"onceDelay":0.1,"x":450,"y":842.5,"wires":[["943e9656.4f39f"]]},{"id":"1079afce.f3f468","type":"change","z":"59a0335a.418e94","name":"TRUE","rules":[{"t":"set","p":"payload","pt":"msg","to":"true","tot":"bool"}],"action":"","property":"","from":"","to":"","reg":false,"x":530,"y":920,"wires":[["234a3408.87f9ec"]]},{"id":"6bc1495f.67bf18","type":"switch","z":"59a0335a.418e94","name":"Define humidity(%) for when to turn humidifier on and off","property":"payload","propertyType":"msg","rules":[{"t":"lte","v":"70","vt":"str"},{"t":"gt","v":"70","vt":"str"}],"checkall":"true","repair":false,"outputs":2,"x":250,"y":940,"wires":[["1079afce.f3f468"],["47c99c4c.64300c"]],"outputLabels":["Over","Under"]},{"id":"234a3408.87f9ec","type":"grovepi-relay","z":"59a0335a.418e94","name":"Relay D3 humidifier","pin":"3","x":925,"y":990,"wires":[]},{"id":"47c99c4c.64300c","type":"change","z":"59a0335a.418e94","name":"FALSE","rules":[{"t":"set","p":"payload","pt":"msg","to":"false","tot":"bool"}],"action":"","property":"","from":"","to":"","reg":false,"x":540,"y":980,"wires":[["234a3408.87f9ec"]]},{"id":"31efc49c.e32544","type":"inject","z":"59a0335a.418e94","name":"Relay On","topic":"","payload":"true","payloadType":"bool","repeat":"","crontab":"","once":false,"onceDelay":0.1,"x":462,"y":1059.5,"wires":[["234a3408.87f9ec"]]},{"id":"410d406a.b7e478","type":"inject","z":"59a0335a.418e94","name":"Relay Off","topic":"","payload":"false","payloadType":"bool","repeat":"","crontab":"","once":false,"onceDelay":0.1,"x":464,"y":1102.5,"wires":[["234a3408.87f9ec"]]},{"id":"3f15a4c8.ca82b4","type":"change","z":"59a0335a.418e94","name":"TRUE","rules":[{"t":"set","p":"payload","pt":"msg","to":"true","tot":"bool"}],"action":"","property":"","from":"","to":"","reg":false,"x":562,"y":1168,"wires":[["470b2ec9.e2088"]]},{"id":"470b2ec9.e2088","type":"grovepi-relay","z":"59a0335a.418e94","name":"Relay D8 fin-heater","pin":"8","x":839,"y":1251,"wires":[]},{"id":"a3e17a8c.4b6168","type":"change","z":"59a0335a.418e94","name":"FALSE","rules":[{"t":"set","p":"payload","pt":"msg","to":"false","tot":"bool"}],"action":"","property":"","from":"","to":"","reg":false,"x":572,"y":1228,"wires":[["470b2ec9.e2088"]]},{"id":"beee00ef.f8512","type":"inject","z":"59a0335a.418e94","name":"Relay On","topic":"","payload":"true","payloadType":"bool","repeat":"","crontab":"","once":false,"onceDelay":0.1,"x":495,"y":1296.5,"wires":[["470b2ec9.e2088"]]},{"id":"d4d92c62.77a838","type":"inject","z":"59a0335a.418e94","name":"Relay Off","topic":"","payload":"false","payloadType":"bool","repeat":"","crontab":"","once":false,"onceDelay":0.1,"x":497,"y":1339.5,"wires":[["470b2ec9.e2088"]]},{"id":"9e94924c.c13468","type":"switch","z":"59a0335a.418e94","name":"Define Temp(C) and time when to de-ice Cooler fins","property":"payload","propertyType":"msg","rules":[{"t":"lte","v":"75","vt":"str"},{"t":"gt","v":"75","vt":"str"}],"checkall":"true","repair":false,"outputs":2,"x":266,"y":1188,"wires":[["3f15a4c8.ca82b4","97b1b873.b9af08"],["a3e17a8c.4b6168"]],"outputLabels":["Over","Under"]},{"id":"b939c790.e8345","type":"grove digital sensor","z":"59a0335a.418e94","name":"Grove temperature probe (fin temp)","board":"4ff04edd.6724c8","sensor":"dht22","repeat":"600","pin":"2","x":140,"y":1089,"wires":[["9e94924c.c13468"]]},{"id":"bd69174f.30614","type":"comment","z":"59a0335a.418e94","name":"Logic to turn off cooler for deicing cycle ","info":"","x":480,"y":528,"wires":[]},{"id":"c5bbb361.21dd38","type":"comment","z":"59a0335a.418e94","name":"space heater for winter crop storage","info":"","x":899,"y":792,"wires":[]},{"id":"10abd95.a25d1a7","type":"template","z":"2b13bfc8.898938","name":"Make json","field":"payload","fieldType":"msg","format":"handlebars","syntax":"mustache","template":"{\"water level\": {{payload}} }","x":499,"y":132,"wires":[["c177dab8.2b8708","767ebd6e.144b84"]]},{"id":"202a3b0c.0c1cc4","type":"grove digital sensor","z":"2b13bfc8.898938","name":"Ultrasonic water level ","board":"4ff04edd.6724c8","sensor":"ultrasonic","repeat":"1800","pin":"7","x":133,"y":198,"wires":[["10abd95.a25d1a7"]]},{"id":"57b5f1dd.c6b69","type":"inject","z":"2b13bfc8.898938","name":"Test input","topic":"value","payload":"33","payloadType":"num","repeat":"","crontab":"","once":false,"onceDelay":"","x":126,"y":66,"wires":[["4a2597de.35f438"]]},{"id":"c177dab8.2b8708","type":"http request","z":"2b13bfc8.898938","name":"Push to FarmOS","method":"POST","ret":"txt","url":"https://","tls":"","x":1179,"y":264,"wires":[[]]},{"id":"767ebd6e.144b84","type":"debug","z":"2b13bfc8.898938","name":"","active":true,"tosidebar":true,"console":false,"tostatus":false,"complete":"payload","x":895,"y":66,"wires":[]},{"id":"5843081f.585e6","type":"switch","z":"2b13bfc8.898938","name":"Define the low voltage for when to turn fence on and off","property":"payload","propertyType":"msg","rules":[{"t":"gte","v":"11","vt":"str"},{"t":"lt","v":"11","vt":"str"}],"checkall":"true","repair":false,"outputs":2,"x":408,"y":297,"wires":[["9683d73c.11038"],["2fc470b4.2aa718"]],"outputLabels":["Over","Under"]},{"id":"9683d73c.11038","type":"change","z":"2b13bfc8.898938","name":"TRUE","rules":[{"t":"set","p":"payload","pt":"msg","to":"true","tot":"bool"}],"action":"","property":"","from":"","to":"","reg":false,"x":677,"y":264,"wires":[["7b4ed586.5d200c"]]},{"id":"2fc470b4.2aa718","type":"change","z":"2b13bfc8.898938","name":"FALSE","rules":[{"t":"set","p":"payload","pt":"msg","to":"false","tot":"bool"}],"action":"","property":"","from":"","to":"","reg":false,"x":687,"y":330,"wires":[["7b4ed586.5d200c"]]},{"id":"7b4ed586.5d200c","type":"grovepi-relay","z":"2b13bfc8.898938","name":"Relay ","pin":"8","x":908,"y":264,"wires":[]},{"id":"dd0a1b19.1bbc88","type":"inject","z":"2b13bfc8.898938","name":"Fence On","topic":"","payload":"true","payloadType":"bool","repeat":"","crontab":"","once":false,"onceDelay":0.1,"x":618,"y":397.5,"wires":[["7b4ed586.5d200c"]]},{"id":"27855026.6be498","type":"inject","z":"2b13bfc8.898938","name":"Fence Off","topic":"","payload":"false","payloadType":"bool","repeat":"","crontab":"","once":false,"onceDelay":0.1,"x":620,"y":440.5,"wires":[["7b4ed586.5d200c"]]},{"id":"1e8c25b3.973b32","type":"grove analog sensor","z":"2b13bfc8.898938","name":"Battery voltage ","pin":"0","sensor":"sound","repeat":"1","board":"4ff04edd.6724c8","x":113,"y":264,"wires":[["5843081f.585e6","33feb0af.27907"]]},{"id":"f028251a.f259a","type":"grove digital sensor","z":"2b13bfc8.898938","name":"Fence voltage ","board":"4ff04edd.6724c8","sensor":"temphum","repeat":"1","pin":"2","x":103,"y":132,"wires":[["4a2597de.35f438"]]},{"id":"33feb0af.27907","type":"template","z":"2b13bfc8.898938","name":"Make json","field":"payload","fieldType":"msg","format":"handlebars","syntax":"mustache","template":"{\"battery voltage\": {{payload}} }","x":499,"y":165,"wires":[["c177dab8.2b8708"]]},{"id":"4a2597de.35f438","type":"template","z":"2b13bfc8.898938","name":"Make json","field":"payload","fieldType":"msg","format":"handlebars","syntax":"mustache","template":"{\"fence voltage\": {{payload}} }","x":499,"y":99,"wires":[["c177dab8.2b8708"]]},{"id":"a3a547.0c7442b8","type":"template","z":"55b03d0a.3d7034","name":"Make json","field":"payload","fieldType":"msg","format":"handlebars","syntax":"mustache","template":"{\"fence voltage\": {{payload}} }","x":499,"y":363,"wires":[["36c14b4c.8ac954"]]},{"id":"57bfc2d4.8e805c","type":"grove digital sensor","z":"55b03d0a.3d7034","name":"Soil Temperature 1(C)","board":"4ff04edd.6724c8","sensor":"temphum","repeat":"1","pin":"2","x":133,"y":429,"wires":[["a3a547.0c7442b8"]]},{"id":"36c14b4c.8ac954","type":"http request","z":"55b03d0a.3d7034","name":"Push to FarmOS","method":"POST","ret":"txt","url":"https://","tls":"","x":915,"y":396,"wires":[[]]},{"id":"39358263.a0d7b6","type":"inject","z":"55b03d0a.3d7034","name":"Test input","topic":"value","payload":"33","payloadType":"num","repeat":"","crontab":"","once":false,"onceDelay":"","x":93,"y":330,"wires":[["cd343afd.44dd2"]]},{"id":"ef11ef53.9321c","type":"template","z":"55b03d0a.3d7034","name":"Make json","field":"payload","fieldType":"msg","format":"handlebars","syntax":"mustache","template":"{\"water level\": {{payload}} }","x":499,"y":396,"wires":[["36c14b4c.8ac954","bd952d82.155c08"]]},{"id":"a7fd9bb6.1944b","type":"template","z":"55b03d0a.3d7034","name":"Make json","field":"payload","fieldType":"msg","format":"handlebars","syntax":"mustache","template":"{\"battery voltage\": {{payload}} }","x":499,"y":429,"wires":[["36c14b4c.8ac954"]]},{"id":"bd952d82.155c08","type":"debug","z":"55b03d0a.3d7034","name":"","active":true,"tosidebar":true,"console":false,"tostatus":false,"complete":"payload","x":895,"y":330,"wires":[]},{"id":"3fad9808.72c0a8","type":"grove digital sensor","z":"55b03d0a.3d7034","name":"Soil Moisture 1","board":"4ff04edd.6724c8","sensor":"ultrasonic","repeat":"1800","pin":"7","x":113,"y":462,"wires":[["ef11ef53.9321c"]]},{"id":"443cde78.3a785","type":"grove analog sensor","z":"55b03d0a.3d7034","name":"Battery voltage ","pin":"0","sensor":"sound","repeat":"1","board":"4ff04edd.6724c8","x":113,"y":561,"wires":[["f882dab8.f5495","a7fd9bb6.1944b"]]},{"id":"f882dab8.f5495","type":"switch","z":"55b03d0a.3d7034","name":"Define the low voltage for when to turn battery off","property":"payload","propertyType":"msg","rules":[{"t":"gte","v":"11","vt":"str"},{"t":"lt","v":"11","vt":"str"}],"checkall":"true","repair":false,"outputs":2,"x":421,"y":561,"wires":[["79695e12.92b1d8"],["26184427.4abc14"]],"outputLabels":["Over","Under"]},{"id":"79695e12.92b1d8","type":"change","z":"55b03d0a.3d7034","name":"TRUE","rules":[{"t":"set","p":"payload","pt":"msg","to":"true","tot":"bool"}],"action":"","property":"","from":"","to":"","reg":false,"x":677,"y":528,"wires":[["a4be1968.d26418"]]},{"id":"26184427.4abc14","type":"change","z":"55b03d0a.3d7034","name":"FALSE","rules":[{"t":"set","p":"payload","pt":"msg","to":"false","tot":"bool"}],"action":"","property":"","from":"","to":"","reg":false,"x":687,"y":594,"wires":[["a4be1968.d26418"]]},{"id":"a4be1968.d26418","type":"grovepi-relay","z":"55b03d0a.3d7034","name":"Relay ","pin":"8","x":922,"y":616,"wires":[]},{"id":"74f50027.0dca38","type":"inject","z":"55b03d0a.3d7034","name":"Observatory On","topic":"","payload":"true","payloadType":"bool","repeat":"","crontab":"","once":false,"onceDelay":0.1,"x":638,"y":661.5,"wires":[["a4be1968.d26418"]]},{"id":"42e42151.ca7fe8","type":"inject","z":"55b03d0a.3d7034","name":"Observatory Off","topic":"","payload":"false","payloadType":"bool","repeat":"","crontab":"","once":false,"onceDelay":0.1,"x":640,"y":704.5,"wires":[["a4be1968.d26418"]]},{"id":"8ac9b399.09ff6","type":"grove digital sensor","z":"55b03d0a.3d7034","name":"Air temp (C)","board":"4ff04edd.6724c8","sensor":"temphum","repeat":"1","pin":"2","x":103,"y":363,"wires":[["cd343afd.44dd2"]]},{"id":"4a73fa2f.7d61dc","type":"grove digital sensor","z":"55b03d0a.3d7034","name":"Surface temp (C)","board":"4ff04edd.6724c8","sensor":"temphum","repeat":"1","pin":"2","x":113,"y":396,"wires":[["3bc32757.a12a18"]]},{"id":"3bc32757.a12a18","type":"template","z":"55b03d0a.3d7034","name":"Make json","field":"payload","fieldType":"msg","format":"handlebars","syntax":"mustache","template":"{\"surface temp\": {{payload}} }","x":499,"y":330,"wires":[["36c14b4c.8ac954"]]},{"id":"cd343afd.44dd2","type":"template","z":"55b03d0a.3d7034","name":"Make json","field":"payload","fieldType":"msg","format":"handlebars","syntax":"mustache","template":"{\"Air Temp\": {{payload}} }","x":499,"y":297,"wires":[["36c14b4c.8ac954"]]},{"id":"4c2e2e9f.fcf2f8","type":"comment","z":"55b03d0a.3d7034","name":"species ID stream audio to http address ","info":"","x":160,"y":264,"wires":[]},{"id":"37272c9c.59fe24","type":"usbcamera","z":"55b03d0a.3d7034","filemode":"1","filename":"image01.jpg","filedefpath":"1","filepath":"","fileformat":"jpeg","resolution":"4","name":"USB Camera/Rhyzotron ","x":506,"y":165,"wires":[["d548616.22ddc2"]]},{"id":"2b7ba4a4.344314","type":"usbcamera","z":"55b03d0a.3d7034","filemode":"1","filename":"image01.jpg","filedefpath":"0","filepath":"","fileformat":"jpeg","resolution":"5","name":"USB Camera/Phenocam ","x":506,"y":99,"wires":[["62f5d09a.11dc6"]]},{"id":"62f10fa2.148b38","type":"delay","z":"55b03d0a.3d7034","name":"30 min intervals - during daylight ","pauseType":"delay","timeout":"30","timeoutUnits":"minutes","rate":"1","nbRateUnits":"1","rateUnits":"second","randomFirst":"1","randomLast":"5","randomUnits":"seconds","drop":false,"x":140,"y":33,"wires":[["2b7ba4a4.344314"]]},{"id":"59f626f0.2f6178","type":"delay","z":"55b03d0a.3d7034","name":"12 hour intervals ","pauseType":"delay","timeout":"12","timeoutUnits":"hours","rate":"1","nbRateUnits":"1","rateUnits":"second","randomFirst":"1","randomLast":"5","randomUnits":"seconds","drop":false,"x":90,"y":165,"wires":[["37272c9c.59fe24"]]},{"id":"e06ab948.79203","type":"trigger","z":"55b03d0a.3d7034","op1":"1","op2":"0","op1type":"val","op2type":"val","duration":"250","extend":"false","units":"ms","reset":"","bytopic":"all","name":"","x":80,"y":198,"wires":[["37272c9c.59fe24"]]},{"id":"df2687b9.3a4498","type":"trigger","z":"55b03d0a.3d7034","op1":"1","op2":"0","op1type":"str","op2type":"str","duration":"250","extend":false,"units":"ms","reset":"","bytopic":"all","name":"","x":80,"y":99,"wires":[["2b7ba4a4.344314"]]},{"id":"6ea1890.b552e78","type":"grove analog sensor","z":"2b13bfc8.898938","name":"Load Cell (Scales)","pin":"1","sensor":"sound","repeat":"1","board":"4ff04edd.6724c8","x":123,"y":495,"wires":[["47486fff.91f99"]]},{"id":"91ae1083.d3afe8","type":"grove digital sensor","z":"2b13bfc8.898938","name":"RFID Animal ID","board":"4ff04edd.6724c8","sensor":"temphum","repeat":"1","pin":"2","x":113,"y":528,"wires":[["f0d44bac.903c18"]]},{"id":"47486fff.91f99","type":"template","z":"2b13bfc8.898938","name":"Make json","field":"payload","fieldType":"msg","format":"handlebars","syntax":"mustache","template":"{\"Animal Weight - Lbs\": {{payload}} }","x":466,"y":495,"wires":[["c177dab8.2b8708"]]},{"id":"f0d44bac.903c18","type":"template","z":"2b13bfc8.898938","name":"Make json","field":"payload","fieldType":"msg","format":"handlebars","syntax":"mustache","template":"{\"Animal ID\": {{payload}} }","x":466,"y":528,"wires":[["c177dab8.2b8708"]]},{"id":"62f5d09a.11dc6","type":"http request","z":"55b03d0a.3d7034","name":"Push to FarmOS","method":"POST","ret":"txt","url":"https://","tls":"","x":915,"y":99,"wires":[[]]},{"id":"d548616.22ddc2","type":"http request","z":"55b03d0a.3d7034","name":"Push to FarmOS","method":"POST","ret":"txt","url":"https://","tls":"","x":915,"y":165,"wires":[[]]},{"id":"286e78ba.6d107","type":"grove lcdrgb output","z":"d0e58ee4.02def","name":"","board":"4ff04edd.6724c8","pin":"3","x":948,"y":99,"wires":[]},{"id":"ea5da9d8.8b43c","type":"inject","z":"d0e58ee4.02def","name":"","topic":"","payload":"33","payloadType":"str","repeat":"","crontab":"","once":false,"onceDelay":0.1,"x":287,"y":33,"wires":[["3e414156.90076e"]]},{"id":"4777b6a6.d3e608","type":"function","z":"9009c2e0.ed13f","name":"Data Conversion","func":"msg.payload = msg.payload \nreturn msg;","outputs":1,"noerr":0,"x":420,"y":132,"wires":[["b472b4c9.3935d","fb3d41f4.33d7e8"]]},{"id":"91980fc3.2c2e2","type":"function","z":"9009c2e0.ed13f","name":"Create Payload","func":"\nreturn {\n payload: {\n \n temperature: msg.payload\n }\n};","outputs":1,"noerr":0,"x":245,"y":363,"wires":[[]]},{"id":"b7eeb037.1350f8","type":"json","z":"9009c2e0.ed13f","name":"","property":"payload","action":"","pretty":false,"x":413,"y":363,"wires":[[]]},{"id":"1b225aa6.73921d","type":"debug","z":"9009c2e0.ed13f","name":"","active":true,"console":"false","complete":"false","x":301,"y":297,"wires":[]},{"id":"1fb01d50.84ff5b","type":"grove lcdrgb output","z":"9009c2e0.ed13f","name":"","board":"4ff04edd.6724c8","pin":"3","x":882,"y":231,"wires":[]},{"id":"7690153c.77f68c","type":"inject","z":"9009c2e0.ed13f","name":"test","topic":"","payload":"","payloadType":"date","repeat":"","crontab":"","once":false,"onceDelay":0.1,"x":182,"y":99,"wires":[[]]},{"id":"a5e98ee6.91e1b8","type":"switch","z":"9009c2e0.ed13f","name":"Define the logic for when to turn on and off","property":"payload","propertyType":"msg","rules":[{"t":"gte","v":"50","vt":"str"},{"t":"lt","v":"50","vt":"str"}],"checkall":"true","repair":false,"outputs":2,"x":236,"y":561,"wires":[["ed734ed6.bacce8"],["9b930de4.3b1e28"]],"outputLabels":["Over","Under"]},{"id":"ed734ed6.bacce8","type":"change","z":"9009c2e0.ed13f","name":"TRUE","rules":[{"t":"set","p":"payload","pt":"msg","to":"true","tot":"bool"}],"action":"","property":"","from":"","to":"","reg":false,"x":491,"y":530,"wires":[["effcc38c.ae3f48"]]},{"id":"9b930de4.3b1e28","type":"change","z":"9009c2e0.ed13f","name":"FALSE","rules":[{"t":"set","p":"payload","pt":"msg","to":"false","tot":"bool"}],"action":"","property":"","from":"","to":"","reg":false,"x":499,"y":594,"wires":[["effcc38c.ae3f48"]]},{"id":"9bfc563d.00e4e","type":"grove digital sensor","z":"9009c2e0.ed13f","name":"Grab sensor values","board":"4ff04edd.6724c8","sensor":"ultrasonic","repeat":"10","pin":"7","x":90,"y":198,"wires":[["4777b6a6.d3e608"]]},{"id":"effcc38c.ae3f48","type":"grovepi-relay","z":"9009c2e0.ed13f","name":"Relay ","pin":"8","x":807,"y":624,"wires":[]},{"id":"15b69ed4.544359","type":"inject","z":"9009c2e0.ed13f","name":"Relay On","topic":"","payload":"true","payloadType":"bool","repeat":"","crontab":"","once":false,"onceDelay":0.1,"x":503,"y":669.5,"wires":[["effcc38c.ae3f48"]]},{"id":"98c8647c.f39a2","type":"inject","z":"9009c2e0.ed13f","name":"Relay Off","topic":"","payload":"false","payloadType":"bool","repeat":"","crontab":"","once":false,"onceDelay":0.1,"x":505,"y":712.5,"wires":[["effcc38c.ae3f48"]]},{"id":"eb5bb08f.03c598","type":"debug","z":"9009c2e0.ed13f","name":"","active":true,"console":"false","complete":"false","x":763,"y":297,"wires":[]},{"id":"76deda6f.06183c","type":"grovepi-lcd-rgb","z":"9009c2e0.ed13f","name":"","x":786,"y":33,"wires":[]},{"id":"7e36ac7b.09614c","type":"function","z":"9009c2e0.ed13f","name":"temperature","func":"var o = msg.payload\nmsg.payload = o.temperature;\nreturn msg;","outputs":1,"noerr":0,"x":499,"y":264,"wires":[[]]},{"id":"b472b4c9.3935d","type":"ui_gauge","z":"9009c2e0.ed13f","name":"temp","group":"33eec52b.dfc802","order":0,"width":0,"height":0,"gtype":"gage","title":"Gauge","label":"units","format":"{{value}}","min":0,"max":"100","colors":["#00b500","#e6e600","#ca3838"],"seg1":"","seg2":"","x":710,"y":132,"wires":[]},{"id":"fb3d41f4.33d7e8","type":"debug","z":"9009c2e0.ed13f","name":"","active":true,"tosidebar":true,"console":false,"tostatus":false,"complete":"false","x":631,"y":66,"wires":[]},{"id":"a8a78907.b36fd8","type":"function","z":"9009c2e0.ed13f","name":"random number","func":"msg.payload = Math.round(Math.random()*100);\nreturn msg;","outputs":1,"noerr":0,"x":492,"y":198,"wires":[[]]},{"id":"db6f3039.ed26b","type":"grove digital sensor","z":"48c29024.b749","name":"Grove temperature probe in middle compost pile","board":"4ff04edd.6724c8","sensor":"dht22","repeat":"600","pin":"2","x":213,"y":33,"wires":[["53922dff.269a34"]]},{"id":"53922dff.269a34","type":"switch","z":"48c29024.b749","name":"Define Temp(C) and time when to add air or change pile","property":"payload","propertyType":"msg","rules":[{"t":"lte","v":"75","vt":"str"},{"t":"gt","v":"75","vt":"str"}],"checkall":"true","repair":false,"outputs":2,"x":309,"y":132,"wires":[["99c49556.cbd098","ea7a71f1.7bffc8"],["97933140.250928"]],"outputLabels":["Over","Under"]},{"id":"99c49556.cbd098","type":"change","z":"48c29024.b749","name":"TRUE","rules":[{"t":"set","p":"payload","pt":"msg","to":"true","tot":"bool"}],"action":"","property":"","from":"","to":"","reg":false,"x":595,"y":112,"wires":[["f063223.3ec61e"]]},{"id":"45835883.003a7","type":"change","z":"48c29024.b749","name":"FALSE","rules":[{"t":"set","p":"payload","pt":"msg","to":"false","tot":"bool"}],"action":"","property":"","from":"","to":"","reg":false,"x":567,"y":1113,"wires":[["f848848c.b3113"]]},{"id":"97933140.250928","type":"change","z":"48c29024.b749","name":"FALSE","rules":[{"t":"set","p":"payload","pt":"msg","to":"false","tot":"bool"}],"action":"","property":"","from":"","to":"","reg":false,"x":605,"y":172,"wires":[["f063223.3ec61e"]]},{"id":"f063223.3ec61e","type":"grovepi-relay","z":"48c29024.b749","name":"Relay D8 compost fan","pin":"8","x":882,"y":195,"wires":[]},{"id":"d7bc3bc9.ae7ef","type":"switch","z":"48c29024.b749","name":"Define Temp(C) when to turn circulation pump on and off","property":"payload","propertyType":"msg","rules":[{"t":"lte","v":"75","vt":"str"},{"t":"gt","v":"75","vt":"str"}],"checkall":"true","repair":false,"outputs":2,"x":276,"y":1089,"wires":[["ecc4e479.bda088"],["45835883.003a7"]],"outputLabels":["Over","Under"]},{"id":"f848848c.b3113","type":"grovepi-relay","z":"48c29024.b749","name":"Relay D8 circulation pump ","pin":"8","x":864,"y":1136,"wires":[]},{"id":"3d2f2160.68ed3e","type":"inject","z":"48c29024.b749","name":"Relay On","topic":"","payload":"true","payloadType":"bool","repeat":"","crontab":"","once":false,"onceDelay":0.1,"x":528,"y":240.5,"wires":[["f063223.3ec61e"]]},{"id":"8761e431.30c16","type":"inject","z":"48c29024.b749","name":"Relay Off","topic":"","payload":"false","payloadType":"bool","repeat":"","crontab":"","once":false,"onceDelay":0.1,"x":530,"y":283.5,"wires":[["f063223.3ec61e"]]},{"id":"9c74411a.b41028","type":"switch","z":"48c29024.b749","name":"Create a path for each sensor","property":"topic","propertyType":"msg","rules":[{"t":"eq","v":"temperature","vt":"str"},{"t":"eq","v":"humidity","vt":"str"},{"t":"eq","v":"heatIndex","vt":"str"}],"checkall":"true","repair":false,"outputs":3,"x":363,"y":853,"wires":[["4591be87.e97b5","4c6c8960.1378f8","d7bc3bc9.ae7ef"],["705bfa66.e91ebc","525373b5.bde21c"],["591b0a06.5a36a4"]]},{"id":"ecc4e479.bda088","type":"change","z":"48c29024.b749","name":"TRUE","rules":[{"t":"set","p":"payload","pt":"msg","to":"true","tot":"bool"}],"action":"","property":"","from":"","to":"","reg":false,"x":557,"y":1053,"wires":[["f848848c.b3113"]]},{"id":"dcd9b43c.c4ec6","type":"inject","z":"48c29024.b749","name":"Relay On","topic":"","payload":"true","payloadType":"bool","repeat":"","crontab":"","once":false,"onceDelay":0.1,"x":490,"y":1181.5,"wires":[["f848848c.b3113"]]},{"id":"acb186c7.9a822","type":"inject","z":"48c29024.b749","name":"Relay Off","topic":"","payload":"false","payloadType":"bool","repeat":"","crontab":"","once":false,"onceDelay":0.1,"x":492,"y":1224.5,"wires":[["f848848c.b3113"]]},{"id":"ca8e6766.474c5","type":"split","z":"48c29024.b749","name":"Split into 3 separate readings","splt":"\\n","spltType":"str","arraySplt":1,"arraySpltType":"len","stream":false,"addname":"topic","x":317,"y":773,"wires":[["9c74411a.b41028"]]},{"id":"4591be87.e97b5","type":"debug","z":"48c29024.b749","name":"Debuging temp output","active":true,"tosidebar":true,"console":false,"tostatus":false,"complete":"payload","x":753,"y":773,"wires":[]},{"id":"4c6c8960.1378f8","type":"template","z":"48c29024.b749","name":"Make json","field":"payload","fieldType":"msg","format":"handlebars","syntax":"mustache","template":"{\"temperature\": {{payload}} }","x":678,"y":679,"wires":[["b34d9887.bb9fb8"]]},{"id":"705bfa66.e91ebc","type":"debug","z":"48c29024.b749","name":"Debug Humidity output","active":true,"tosidebar":true,"console":false,"tostatus":false,"complete":"payload","x":763,"y":853,"wires":[]},{"id":"525373b5.bde21c","type":"template","z":"48c29024.b749","name":"Make json","field":"payload","fieldType":"msg","format":"handlebars","syntax":"mustache","template":"{\"humidity\": {{payload}} }","x":678,"y":712,"wires":[["b34d9887.bb9fb8"]]},{"id":"d6ae1314.282f28","type":"switch","z":"48c29024.b749","name":"Define moisture for when to turn water on and off","property":"payload","propertyType":"msg","rules":[{"t":"lte","v":"70","vt":"str"},{"t":"gt","v":"70","vt":"str"}],"checkall":"true","repair":false,"outputs":2,"x":212,"y":389,"wires":[["4158ceb1.d7ca48"],["c870dd26.7e233"]],"outputLabels":["Over","Under"]},{"id":"591b0a06.5a36a4","type":"debug","z":"48c29024.b749","name":"Debug heatindex","active":true,"tosidebar":true,"console":false,"tostatus":false,"complete":"payload","x":763,"y":953,"wires":[]},{"id":"95971b2.03f4d68","type":"grove digital sensor","z":"48c29024.b749","name":"Temperature and Humidity sensor","board":"4ff04edd.6724c8","sensor":"dht22","repeat":"600","pin":"5","x":173,"y":693,"wires":[["ca8e6766.474c5"]]},{"id":"b34d9887.bb9fb8","type":"http request","z":"48c29024.b749","name":"Push to FarmOS","method":"POST","ret":"txt","url":"https://","tls":"","x":915,"y":99,"wires":[[]]},{"id":"d33704e8.512498","type":"inject","z":"48c29024.b749","name":"Test input","topic":"value","payload":"25","payloadType":"num","repeat":"","crontab":"","once":false,"onceDelay":"","x":113,"y":633,"wires":[["4c6c8960.1378f8"]]},{"id":"4158ceb1.d7ca48","type":"change","z":"48c29024.b749","name":"TRUE","rules":[{"t":"set","p":"payload","pt":"msg","to":"true","tot":"bool"}],"action":"","property":"","from":"","to":"","reg":false,"x":512,"y":369,"wires":[["8466a365.3b4e28"]]},{"id":"c870dd26.7e233","type":"change","z":"48c29024.b749","name":"FALSE","rules":[{"t":"set","p":"payload","pt":"msg","to":"false","tot":"bool"}],"action":"","property":"","from":"","to":"","reg":false,"x":522,"y":429,"wires":[["8466a365.3b4e28"]]},{"id":"8466a365.3b4e28","type":"grovepi-relay","z":"48c29024.b749","name":"Relay D3 water solanoid valve","pin":"3","x":856,"y":429,"wires":[]},{"id":"f6ccb10e.22d","type":"inject","z":"48c29024.b749","name":"Relay On","topic":"","payload":"true","payloadType":"bool","repeat":"","crontab":"","once":false,"onceDelay":0.1,"x":444,"y":508.5,"wires":[["8466a365.3b4e28"]]},{"id":"dba92a68.2f582","type":"inject","z":"48c29024.b749","name":"Relay Off","topic":"","payload":"false","payloadType":"bool","repeat":"","crontab":"","once":false,"onceDelay":0.1,"x":446,"y":551.5,"wires":[["8466a365.3b4e28"]]},{"id":"5a4c1b86.d2d494","type":"grove digital sensor","z":"48c29024.b749","name":"moisture & temp probe on edge of compost pile","board":"4ff04edd.6724c8","sensor":"dht22","repeat":"600","pin":"2","x":213,"y":198,"wires":[["d6ae1314.282f28"]]},{"id":"f5d9e2ed.dd9838","type":"comment","z":"48c29024.b749","name":"Circulation pump may go to bed warmers or to radiator with fan(relay turns on pump and fan)","info":"","x":386,"y":1023,"wires":[]},{"id":"5492d50d.dc03dc","type":"comment","z":"48c29024.b749","name":"Alterts for greenhouse temp and compost temperature","info":"","x":827,"y":33,"wires":[]},{"id":"ea7a71f1.7bffc8","type":"http request","z":"48c29024.b749","name":"Push to FarmOS","method":"POST","ret":"txt","url":"https://","tls":"","x":915,"y":66,"wires":[[]]}]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment