What's new

Notifications when receiving FTP files

  • SNBForums Code of Conduct

    SNBForums is a community for everyone, no matter what their level of experience.

    Please be tolerant and patient of others, especially newcomers. We are all here to share and learn!

    The rules are simple: Be patient, be nice, be helpful or be gone!

Alan van Wyk

New Around Here
Does anyone have some sort of solution for sending a notification whenever receiving a file via FTP?

I am using OPenHab for some home automation and would like to get my CCTV to push video to the AsusWrt / Merlin FTP whenever motion is detected. Now the next thing I want to do it notify OpenHab of this delivery.

OpenHab can accept any kind of communication (a rest request, MQTT, API and so on) - so all I need to know is how to generate an event whenever FTP date is received.
 
Use cru to run a script every minute and compare previous output of ‘ls’ on the directory you are FTP’ing to, to the new output. If it’s changed send an alert that a new file has appeared (or disappeared).

Happy to write it for you if you have no bash/sh scripting experience.


Sent from my iPhone using Tapatalk
 

Similar threads

Latest threads

Sign Up For SNBForums Daily Digest

Get an update of what's new every day delivered to your mailbox. Sign up here!
Top