mirror of
https://github.com/Schrolli91/BOSWatch.git
synced 2026-01-15 21:10:03 +01:00
Update Pushover.py
This commit is contained in:
parent
c00022d834
commit
fd1c93326b
|
|
@ -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")
|
||||
|
|
|
|||
Loading…
Reference in a new issue