Counter every 60 second and save pulse number

Count pulse every 60 seconds; Saving it in text files.

[{"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"]]}]

Flow Info

Created 7 years, 9 months ago
Updated 7 years, 8 months ago
Rating: not yet rated

Owner

Actions

Rate:

Node Types

Core
  • debug (x1)
  • delay (x1)
  • file (x1)
  • function (x1)
  • inject (x2)
Other
  • counter (x1)
  • tab (x1)

Tags

Copy this flow JSON to your clipboard and then import into Node-RED using the Import From > Clipboard (Ctrl-I) menu option