A live bird collage card for your Home Assistant dashboard.
php writes these with special characters escaped, so unescape before using
frederik5379b24a7dcd
diff --git a/scripts/utils/notifications.py b/scripts/utils/notifications.pyindex be48dba0..bd87972a 100644--- a/scripts/utils/notifications.py+++ b/scripts/utils/notifications.py@@ -4,6 +4,7 @@ import socketimport sqlite3from datetime import datetimeimport requests+import htmlimport time as timeimuserDir = os.path.expanduser('~')@@ -46,8 +47,8 @@ def sendAppriseNotifications(species, confidence, confidencepct, path,# print(settings_dict)if os.path.exists(APPRISE_CONFIG) and os.path.getsize(APPRISE_CONFIG) > 0:- title = settings_dict.get('APPRISE_NOTIFICATION_TITLE')- body = settings_dict.get('APPRISE_NOTIFICATION_BODY')+ title = html.unescape(settings_dict.get('APPRISE_NOTIFICATION_TITLE'))+ body = html.unescape(settings_dict.get('APPRISE_NOTIFICATION_BODY'))sciName, comName = species.split("_")APPRISE_ONLY_NOTIFY_SPECIES_NAMES = settings_dict.get('APPRISE_ONLY_NOTIFY_SPECIES_NAMES')