Simple app to hit a webhook on directory change

Hi all,

I recently had a problem getting some of my Foscams to reliably trigger a webhook (for motion detection) in Scrypted / HA and ended up coding up a super-simple solution. Since the cameras push their snapshots to an FTP server nearly instantly, I’m using that as a trigger a webhook to Scrypted that starts HKSV recording. The code is available here, in case it’s of use to others:

Although the example that I use triggers a Scrypted webhook, it can just as easily trigger a webhook to HA by updating the config file.

Hope someone else finds this useful!

1 Like