webhooks

Discuss new features and functions
User avatar
Posts: 2
Joined: 8 Jun 2018

sumbaudy

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.
User avatar
Site Admin
Posts: 7058
Joined: 9 Dec 2007

Zenju

What do you mean with "webhook"?
User avatar
Posts: 2
Joined: 8 Jun 2018

sumbaudy

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
User avatar
Posts: 2292
Joined: 22 Aug 2012

Plerry

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.