Add IFTTT notification service
Add the ability to trigger a custom event on the Maker channel provided
by IFTTT service. With this trigger one can program actions on another
channels. Examples:
-Log backup notification to a google spreadsheet;
-Receive notification on devices with IFTTT application installed;
-Send e-mails
-Log to evernote
-Turn a Philips Hue light green for good backup or red on errors
IFTTT Maker channel accepts three values (named value1, value2, value3)
as part of the trigger. This implementation sends the content of
NOTIFICATION_CONTENT as "value1" parameter and let "value2" be defined
at
configuration file. At this time "value3" is not used.
Signed-off-by: Josenivaldo Benito Jr <jrbenito@benito.qsl.br>
Diff
1diff --git a/duplicity-backup.conf.example b/duplicity-backup.conf.example
2index 6911eec7fc1f98a7b4f285baca02741e92bf6375..c2bfaa21ea3629d85f200e2b860ddea2e71be9b4 100644
3--- a/duplicity-backup.conf.example
4+++ b/duplicity-backup.conf.example
5@@ -408,7 +408,7 @@ MAIL="mailx" # default command for Linux mail
6 # Third-party notification services. If NOTIFICATION_SERVICE is not provided, no
7 # notifications will be sent.
8 9-# Possible values for NOTIFICATION_SERVICE are: slack, pushover
10+# Possible values for NOTIFICATION_SERVICE are: slack, pushover, ifttt
11 NOTIFICATION_SERVICE=""
12 NOTIFICATION_FAILURE_ONLY="yes" # send notifications only if there was an error while creating backup
1314@@ -422,6 +422,11 @@ SLACK_EMOJI="package"
15 PUSHOVER_TOKEN="" # App token generated at pushover.net
16 PUSHOVER_USER="" # User key from pushover.net
1718+# Provider: IFTTT
19+IFTTT_KEY="" # Key for MAKER channel at IFTTT
20+IFTTT_MAKER_EVENT="duplicity" # name the event to trigger at IFTTT Maker Channel
21+IFTTT_HOOK_URL="https://maker.ifttt.com/trigger/$IFTTT_MAKER_EVENT/with/key/$IFTTT_KEY" # ONLY change this if IFTTT changes it
22+IFTTT_VALUE2="" # general purpose value to pass to your maker channel (optional)
2324 # ------------------------------------------------------------------------------
25 # TROUBLESHOOTING