Monitoring a file or directory for changes using a watch node
You can monitor files or directories for changes. Whenever a monitored file or directory changes, a message indicating the change is injected into the flow.
When using u-control automation controllers, please also observe the manual u-control automation controller.
- You must insert a memory card into the controller.
- Open Node-RED.
- Add a watch node from the advanced category to the workspace.
- Double-click the watch node to open the Edit watch node dialogue.
NOTICE


All files are stored on a memory card. The memory card is accessible at the file path /run/media/mmcblk0p1/.
- In the text box File(s), specify the path to the file or directory you want to monitor.
NOTICE


You can monitor multiple files or directories by entering a comma-separated list of file paths.
- If you are monitoring a directory and want to monitor all its sub-directories, select the check box Watch sub-directories recursively.
- Click Done to apply your changes.
- Add more nodes to the workspace and connect them to a flow with the watch node being the first node.