Count pulse every 60 seconds; Saving it in text files.
-
-
Save cman2016/dde719545995b15a0c25876cd728fa80 to your computer and use it in GitHub Desktop.
Counter every 60 second and save pulse number
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
[{"id":"2f7650bd.508488","type":"tab","label":"Flow 1"},{"id":"69c25474.3dccc4","type":"counter","z":"2f7650bd.508488","name":"counter","init":"0","step":"1","mode":"increment","outputs":"2","x":283.5,"y":124,"wires":[["9590590d.d2af5","42cc5941.24a9e"],[]]},{"id":"d9f863e7.cbe8b","type":"inject","z":"2f7650bd.508488","name":"increment","topic":"","payload":"","payloadType":"date","repeat":"","crontab":"","once":false,"x":108.5,"y":119,"wires":[["69c25474.3dccc4"]]},{"id":"a59dfd10.83ad98","type":"inject","z":"2f7650bd.508488","name":"reset","topic":"","payload":"","payloadType":"date","repeat":"60","crontab":"","once":false,"x":119,"y":301,"wires":[["c19ff92a.b37b1"]]},{"id":"c19ff92a.b37b1","type":"function","z":"2f7650bd.508488","name":"reset","func":"msg.reset=true\nreturn msg;","outputs":1,"noerr":0,"x":148,"y":199,"wires":[["69c25474.3dccc4"]]},{"id":"9590590d.d2af5","type":"debug","z":"2f7650bd.508488","name":"","active":true,"console":"false","complete":"payload","x":629,"y":275,"wires":[]},{"id":"57e0af7d.3f7af8","type":"file","z":"2f7650bd.508488","name":"","filename":"/home/carmine/file_data.txt","appendNewline":true,"createDir":false,"overwriteFile":"false","x":755.5,"y":41,"wires":[]},{"id":"42cc5941.24a9e","type":"delay","z":"2f7650bd.508488","name":"","pauseType":"queue","timeout":"5","timeoutUnits":"seconds","rate":"1","nbRateUnits":"59","rateUnits":"second","randomFirst":"1","randomLast":"5","randomUnits":"seconds","drop":false,"x":418.5,"y":37,"wires":[["57e0af7d.3f7af8"]]}] |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment