Hi all
Im fairly new to the likes of programming and tinkering with raspberryPi. My first project that I am trying to implement is a counter which uses 4 inductive sensors to count from four separate machines. To begin with, I am having trouble with the output of the counter node synchronising with my database, and I have tried several different approaches. I would like to capture all the data on the output of the counter node, and save it as its various fields and tags. Im sure it is something silly that I am yet to learn. TIA
[{"id":"186fb0d9.3deeaf","type":"tab","label":"Flow 5","disabled":false,"info":""},{"id":"ed41bdba.865a5","type":"inject","z":"186fb0d9.3deeaf","name":"decrement","topic":"","payload":"","payloadType":"date","repeat":"","crontab":"","once":false,"x":158,"y":263,"wires":[["377f2c1.b2bd3d4"]]},{"id":"4ad10e1a.2204b","type":"inject","z":"186fb0d9.3deeaf","name":"increment","topic":"Woodmizer 1","payload":"","payloadType":"date","repeat":"","crontab":"","once":false,"onceDelay":"","x":158,"y":223,"wires":[["dbe16548.367da8"]]},{"id":"35397b26.1dfd34","type":"inject","z":"186fb0d9.3deeaf","name":"reset","topic":"","payload":"","payloadType":"date","repeat":"","crontab":"","once":false,"x":148,"y":303,"wires":[["b8cdbcac.72dd7"]]},{"id":"dbe16548.367da8","type":"function","z":"186fb0d9.3deeaf","name":"msg object","func":"msg.increment = 3;\nreturn msg;","outputs":1,"noerr":0,"x":328,"y":223,"wires":[["cef3f450.5502c8"]]},{"id":"b8cdbcac.72dd7","type":"function","z":"186fb0d9.3deeaf","name":"msg object","func":"msg.reset = 10;\nreturn msg;","outputs":1,"noerr":0,"x":328,"y":303,"wires":[["cef3f450.5502c8"]]},{"id":"377f2c1.b2bd3d4","type":"function","z":"186fb0d9.3deeaf","name":"msg object","func":"msg.decrement = 1;\nreturn msg;","outputs":1,"noerr":0,"x":328,"y":263,"wires":[["cef3f450.5502c8"]]},{"id":"e5958ebc.79a48","type":"debug","z":"186fb0d9.3deeaf","name":"count","active":false,"console":"false","complete":"payload","x":1154.7142333984375,"y":168.42855834960938,"wires":},{"id":"cef3f450.5502c8","type":"counter","z":"186fb0d9.3deeaf","name":"","init":"100","step":"1","lower":"","upper":"","mode":"increment","outputs":1,"x":518,"y":243,"wires":[["a3e78899.9f3848","b4b5c114.935f9","8329fd29.74544"]]},{"id":"72302cb3.3a5784","type":"inject","z":"186fb0d9.3deeaf","name":"normal msg without control parameter","topic":"","payload":"","payloadType":"date","repeat":"","crontab":"","once":false,"x":248,"y":183,"wires":[["cef3f450.5502c8"]]},{"id":"9d765c43.ce3f5","type":"debug","z":"186fb0d9.3deeaf","name":"message","active":true,"console":"false","complete":"true","x":1156.5713844299316,"y":303.00000381469727,"wires":},{"id":"a3e78899.9f3848","type":"change","z":"186fb0d9.3deeaf","name":"","rules":[{"t":"set","p":"payload","pt":"msg","to":"","tot":"date"}],"action":"","property":"","from":"","to":"","reg":false,"x":874.1428571428571,"y":220.57142857142856,"wires":[["e5958ebc.79a48"]]},{"id":"b4b5c114.935f9","type":"change","z":"186fb0d9.3deeaf","name":"","rules":[{"t":"set","p":"count","pt":"msg","to":"count","tot":"jsonata"}],"action":"","property":"","from":"","to":"","reg":false,"x":871.2857142857142,"y":291.99999999999994,"wires":[["9d765c43.ce3f5"]]},{"id":"8329fd29.74544","type":"influxdb out","z":"186fb0d9.3deeaf","influxdb":"52f04081.7ea1","name":"testdb","measurement":"tester","precision":"","retentionPolicy":"","x":839,"y":137,"wires":},{"id":"52f04081.7ea1","type":"influxdb","z":"","hostname":"127.0.0.1","port":"8086","protocol":"http","database":"TEST","name":"","usetls":false,"tls":""}]
SELECT * FROM tester
name: tester
time value
1558434331161983700 1558434331150
1558434331313012495 1558434331295
1558434331496185719 1558434331485
1558434331668754081 1558434331626
1558434331867333945 1558434331851
1558434331933431087 1558434331920
1558434332048892791 1558434332036
1558434332297181488 1558434332276
1558434332370425881 1558434332356