Skip to content

Instantly share code, notes, and snippets.

@luiey

luiey/README.md Secret

Created October 12, 2017 01:06
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 luiey/c2f8b69e48e120659ecf2223946aa0bc to your computer and use it in GitHub Desktop.
Save luiey/c2f8b69e48e120659ecf2223946aa0bc to your computer and use it in GitHub Desktop.
Windows file checker

A node for Node-RED to check if file exist.

Run the following command in your Node-RED user directory - typically '~/.node-red'

npm install node-red-contrib-file-checker
[{"id":"a81bdad2.e849d8","type":"debug","z":"fcf6cbb5.d944e8","name":"","active":true,"console":"false","complete":"true","x":670,"y":1090,"wires":[]},{"id":"878e2c7c.a1849","type":"inject","z":"fcf6cbb5.d944e8","name":"","topic":"","payload":"","payloadType":"date","repeat":"","crontab":"","once":false,"x":150,"y":1090,"wires":[["188e4dd0.de8372"]]},{"id":"188e4dd0.de8372","type":"function","z":"fcf6cbb5.d944e8","name":"","func":"msg.filename = \"C:\\\\filename.csv\";\nreturn msg;","outputs":1,"noerr":0,"x":300,"y":1090,"wires":[["12908d0b.751543"]]},{"id":"12908d0b.751543","type":"filechecker","z":"fcf6cbb5.d944e8","filename":"","name":"","x":480,"y":1090,"wires":[["a81bdad2.e849d8"]]}]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment