From c00022d834f62cbff1c30b6c23977c3333651545 Mon Sep 17 00:00:00 2001 From: grosj <56541936+grosj@users.noreply.github.com> Date: Thu, 17 Oct 2019 14:47:51 +0200 Subject: [PATCH 1/4] =?UTF-8?q?Sound-Settings=20f=C3=BCr=20Pushover?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- CHANGELOG.md | 1 + 1 file changed, 1 insertion(+) diff --git a/CHANGELOG.md b/CHANGELOG.md index 659e00b..27c0972 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -5,6 +5,7 @@ ##### Changed - MySQL-Plugin: Index für die RIC Adresse hinzugefügt [#411](https://github.com/Schrolli91/BOSWatch/issues/411) - MySQL-Plugin: INSERT Befehl für MySQL 8.x angepasst, Spaltennamen escaped [#410](https://github.com/Schrolli91/BOSWatch/issues/410) +- Pushover-Plugin: Konfigurationsmöglichkeit für den Sound. ##### Deprecated ##### Removed ##### Fixed 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 2/4] 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") From 6ded6578992970f6137240f22bb02977dc5890d3 Mon Sep 17 00:00:00 2001 From: Bastian Schroll Date: Thu, 17 Oct 2019 14:56:56 +0200 Subject: [PATCH 3/4] add link in changelog --- CHANGELOG.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 27c0972..ea95756 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -5,7 +5,7 @@ ##### Changed - MySQL-Plugin: Index für die RIC Adresse hinzugefügt [#411](https://github.com/Schrolli91/BOSWatch/issues/411) - MySQL-Plugin: INSERT Befehl für MySQL 8.x angepasst, Spaltennamen escaped [#410](https://github.com/Schrolli91/BOSWatch/issues/410) -- Pushover-Plugin: Konfigurationsmöglichkeit für den Sound. +- Pushover-Plugin: Konfigurationsmöglichkeit für den Sound [#418](https://github.com/Schrolli91/BOSWatch/issues/418) ##### Deprecated ##### Removed ##### Fixed From d432a423fb1ea39d44caa23adbc54796e4cee445 Mon Sep 17 00:00:00 2001 From: grosj <56541936+grosj@users.noreply.github.com> Date: Thu, 17 Oct 2019 15:23:18 +0200 Subject: [PATCH 4/4] =?UTF-8?q?Config=20erg=C3=A4nzt?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- config/config.template.ini | 3 +++ 1 file changed, 3 insertions(+) diff --git a/config/config.template.ini b/config/config.template.ini index 9e05679..d42fd6f 100644 --- a/config/config.template.ini +++ b/config/config.template.ini @@ -351,6 +351,9 @@ api_key = # Pushover Userkey or Groupkey to receive message user_key = +# Pushover Sound +sound = + # Section for POCSAG # Adapt Pocsag Subric (a,b,c,d) to Pushover Priorities (see https://pushover.net/api#priority) SubA = 1