Trigger script on event

(Sikksakk) #1

Hi, couldnt find anything regarding this - but could there be a feature to trigger a script on an event? F.ex. like when a new file is added to transfer queue, or when a file transfer is complete.

For my part, i would like to send, with some info regarding the file in a notification on f.ex. mqtt/mail/something when a new file is in the queue and when its complete.

/Chris

(Jakob Borg) #2

At the moment, you can use the event API: https://docs.syncthing.net/dev/events.html

There’s thinking now and then about a better hook system, but it’s not completely trivial…

(Sikksakk) #3

Thanks for the quick feedback - i’ll have a look and see if i can take advantage of it :slight_smile: