webhooks
- Posts: 2
- Joined: 8 Jun 2018
Has there been any thoughts of adding webhooks to freefilesync? Increasingly, my media grab/organize/consume efforts are aided by webhooks. For FFS, I could get a lot of use from a webhook on 'sync completion'. Extra credit for a webhook on 'sync start' and 'sync error'. I would suggest a general notifications ability, but webhooks seem generic enough to work wonders these days.
- Site Admin
- Posts: 7212
- Joined: 9 Dec 2007
What do you mean with "webhook"?
- Posts: 2
- Joined: 8 Jun 2018
hitting a URL at the end of an action. Receiver (webserver) gets the status update (FFS completed X Y Z) and then notifies the user (through 101 different possible modes). Personally, I use webhooks to input status updates into a discord server. Here's the stupidly simple definition - https://en.wikipedia.org/wiki/Webhook
- Posts: 2451
- Joined: 22 Aug 2012
The 'sync completion' option is already there.
You can enter any command you like in the 'On completion' field; see here.
If a single-line command, e.g. making a http Post (webhook) call, does not satisfy your needs, you might instead call a script that, in whatever scripting language, makes the http Post-calls you require.
There are presently no 'sync start' or 'sync error' command fields,
although for batch- sync-jobs you have limited choice how to act in case of errors.
You can enter any command you like in the 'On completion' field; see here.
If a single-line command, e.g. making a http Post (webhook) call, does not satisfy your needs, you might instead call a script that, in whatever scripting language, makes the http Post-calls you require.
There are presently no 'sync start' or 'sync error' command fields,
although for batch- sync-jobs you have limited choice how to act in case of errors.