Add additional apprise notification option (#88)
* Update config.php Added $maskedlistenurl as an option for apprise notifications. * Update notifications.py Make sure $maskedlistenurl also works with default detections, and not only when testing. * Update config.php Changed maskedlistenurl to friendlyurl * Update notifications.py Changed maskedlistenurl to friendlyurl
This commit is contained in:
@@ -49,6 +49,7 @@ def sendAppriseNotifications(species, confidence, confidencepct, path,
|
||||
.replace("$confidencepct", confidencepct) \
|
||||
.replace("$confidence", confidence) \
|
||||
.replace("$listenurl", listenurl) \
|
||||
.replace("$friendlyurl", friendlyurl) \
|
||||
.replace("$date", date) \
|
||||
.replace("$time", time) \
|
||||
.replace("$week", week) \
|
||||
@@ -97,6 +98,7 @@ def sendAppriseNotifications(species, confidence, confidencepct, path,
|
||||
websiteurl = "http://"+socket.gethostname()+".local"
|
||||
|
||||
listenurl = websiteurl+"?filename="+path
|
||||
friendlyurl = "[Listen here]("+listenurl+")"
|
||||
image_url = ""
|
||||
|
||||
if len(settings_dict.get('FLICKR_API_KEY')) > 0 and "$flickrimage" in body:
|
||||
|
||||
Reference in New Issue
Block a user