Im using Hassio on a RPI3B+. I want to get a message in my HA front end when a file is copied from /backup to a Windows 10 PC with an USB disk named “G:”. Im planning to use
folder_watcher:
- folder: <address to the G: USB disk on the Windows 10 machine>
but dont understand how to write the address correctly to the USB disk from inside the config.yaml file as specified above.
I now I need to specify the directory in the Whitelist too.
Anyone?
I will try that googling for sure. The PC is already sharing the USB disk so that part is solved. Its the actual format with its eventual http://… and so on I need to understand from someone already doing this. Thanks
I don’t want to rain on your parade, but I tried this a while ago and found that Linux couldn’t watch files on the Windows File System because they work differently. Maybe things have changed, and you get lucky.
However, what I did was mapped a drive from Windows to Linux, and have Windows write to that location rather than it’s local drive. Then watching for changes worked without problems.
According to the documentation of the underlaying Python module of the folder_watcher there is Windows support. There are no details about SMB but it could be that it falls back to periodically comparing snapshots of the directory tree.