From fd1c93326b0b4f6b954206fa4299455239e8ebed Mon Sep 17 00:00:00 2001 From: grosj <56541936+grosj@users.noreply.github.com> Date: Thu, 17 Oct 2019 14:48:14 +0200 Subject: [PATCH] Update Pushover.py --- plugins/Pushover/Pushover.py | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/plugins/Pushover/Pushover.py b/plugins/Pushover/Pushover.py index 051445d..4d65785 100644 --- a/plugins/Pushover/Pushover.py +++ b/plugins/Pushover/Pushover.py @@ -128,6 +128,10 @@ def run(typ, freq, data): # replace the wildcards message = wildcardHandler.replaceWildcards(message, data) title = wildcardHandler.replaceWildcards(title, data) + sound = globalVars.config.get("Pushover", "sound") + # set Default-Sound + if not sound: + sound = "pushover" # start the connection conn = httplib.HTTPSConnection("api.pushover.net:443") @@ -138,6 +142,7 @@ def run(typ, freq, data): "message": message, "html": globalVars.config.get("Pushover", "html"), "title": title, + "sound": sound, "priority": priority, "retry": globalVars.config.get("Pushover", "retry"), "expire": globalVars.config.get("Pushover", "expire")