[{"id":"7acf1751.1f6238","type":"i2c in","z":"fd207b02.a3f528","name":"Read BH1750","address":"35","command":"16","count":"2","x":320,"y":120,"wires":[["e8099ea3.8412d"]]},{"id":"e8099ea3.8412d","type":"change","z":"fd207b02.a3f528","name":"Lux","rules":[{"t":"set","p":"lux","pt":"msg","to":"$round((payload.\"1\" + (256 * payload.\"0\"))/1.2,2)","tot":"jsonata"}],"action":"","property":"","from":"","to":"","reg":false,"x":470,"y":120,"wires":[["34e74f4d.0e387"]]},{"id":"34e74f4d.0e387","type":"rpi-dht22","z":"fd207b02.a3f528","name":"","topic":"rpi-dht11","dht":"11","pintype":"0","pin":4,"x":620,"y":120,"wires":[["df051a46.2e8d48"]]},{"id":"a6ba32f5.02609","type":"inject","z":"fd207b02.a3f528","name":"","topic":"","payload":"","payloadType":"date","repeat":"300","crontab":"","once":false,"onceDelay":"","x":110,"y":120,"wires":[["7acf1751.1f6238"]]},{"id":"5ab99f92.6e9cb","type":"debug","z":"fd207b02.a3f528","name":"","active":true,"tosidebar":true,"console":true,"tostatus":false,"complete":"true","x":964,"y":280,"wires":[]},{"id":"df051a46.2e8d48","type":"function","z":"fd207b02.a3f528","name":"Set LocationID !","func":"msg.payload = new Date().toString()+\";RBG;\"+msg.lux+\";\"+msg.payload+\";\"+msg.humidity+\";\"+msg.isValid;\nreturn msg;","outputs":1,"noerr":0,"x":780,"y":120,"wires":[["5ab99f92.6e9cb","dd574237.29e8c","7e854e8b.88a2c"]]},{"id":"dd574237.29e8c","type":"file","z":"fd207b02.a3f528","name":"","filename":"/home/pi/LeopoltTS.log","appendNewline":true,"createDir":false,"overwriteFile":"false","x":1010,"y":120,"wires":[[]]},{"id":"7e854e8b.88a2c","type":"file","z":"fd207b02.a3f528","name":"","filename":"/home/pi/Leopolt.log","appendNewline":false,"createDir":false,"overwriteFile":"true","x":1010,"y":200,"wires":[[]]},{"id":"b93e5236.1ee0a","type":"comment","z":"fd207b02.a3f528","name":"time series log file for all data","info":"","x":1040,"y":160,"wires":[]},{"id":"5c257d37.dfdf74","type":"comment","z":"fd207b02.a3f528","name":"recent record","info":"","x":990,"y":240,"wires":[]},{"id":"753bc9a5.188118","type":"comment","z":"fd207b02.a3f528","name":"run every 5 minutes","info":"","x":103,"y":160,"wires":[]},{"id":"16ed1ee.2fd68e1","type":"comment","z":"fd207b02.a3f528","name":"read i2c BH1750","info":"","x":314,"y":160,"wires":[]},{"id":"adc361e1.f586c","type":"comment","z":"fd207b02.a3f528","name":"calculate brightness [lux]","info":"","x":501,"y":80,"wires":[]},{"id":"88a44bd1.b86ef8","type":"comment","z":"fd207b02.a3f528","name":"read DHT11","info":"","x":610,"y":160,"wires":[]},{"id":"ea4ab4d5.7f2938","type":"comment","z":"fd207b02.a3f528","name":"add location tag e.g. HGR","info":"","x":810,"y":80,"wires":[]},{"id":"1c70be91.dae171","type":"comment","z":"fd207b02.a3f528","name":"measure log files","info":"","x":1040,"y":80,"wires":[]}]
Comments