Watch file node

35 views
Skip to first unread message

Chris Dobson

unread,
Oct 20, 2016, 5:36:33 PM10/20/16
to Node-RED
i have tried several times to get the Watch node to work. i even tried wfwatch node. i think it is down to how i am entering the file path's. i have tried everything i can think of in both nodes but never got either to work. I have a watch node connected to a debug node. if i want to check the my documents folder on this laptop i tried :-  \\CHRIS-PC\\Users\\Chris\\Documents (using double slashes as it is a windows pc) , tried \\VORTEXBOX\Files (linux) but nothing! I have e-mailed the auther of wfwatch a few times but never had reply.
can anyone please help
Thanks Chris

Dave C-J

unread,
Oct 20, 2016, 6:14:35 PM10/20/16
to node...@googlegroups.com
Hi
did you put the c: in front ?
this works for me

[{"id":"f244f4c2.95f268","type":"debug","z":"95024fff.25c6a8","name":"","active":true,"console":"false","complete":"false","x":382,"y":120,"wires":[]},{"id":"89a08d0b.a0b148","type":"inject","z":"95024fff.25c6a8","name":"","topic":"","payload":"","payloadType":"date","repeat":"","crontab":"","once":false,"x":141,"y":170,"wires":[["f244f4c2.95f268","c275fdbb.a8fba"]]},{"id":"c275fdbb.a8fba","type":"file","z":"95024fff.25c6a8","name":"","filename":"c:\\\\temp\\\\foobar.txt","appendNewline":true,"createDir":false,"overwriteFile":"false","x":378.64501190185547,"y":199.52566528320312,"wires":[]},{"id":"554bc11c.bc734","type":"inject","z":"95024fff.25c6a8","name":"","topic":"","payload":"","payloadType":"date","repeat":"","crontab":"","once":false,"x":139,"y":274,"wires":[["9ed0cac9.061268"]]},{"id":"9e3aae04.d9195","type":"debug","z":"95024fff.25c6a8","name":"","active":true,"console":"false","complete":"false","x":344,"y":383,"wires":[]},{"id":"9ed0cac9.061268","type":"file in","z":"95024fff.25c6a8","name":"","filename":"c:\\\\temp\\\\foobar.txt","format":"utf8","x":263.6652236652236,"y":332.92104720676133,"wires":[["9e3aae04.d9195"]]},{"id":"cee0e3da.0eb7f","type":"watch","z":"95024fff.25c6a8","name":"","files":"c:\\\\temp","x":156.36157493300345,"y":475.1597608740464,"wires":[["f74f3c0.6257fc8"]]},{"id":"f74f3c0.6257fc8","type":"debug","z":"95024fff.25c6a8","name":"","active":true,"console":"false","complete":"false","x":328.79818594104296,"y":500.9276437847864,"wires":[]}]
Reply all
Reply to author
Forward
0 new messages