diff --git a/README.md b/README.md index 19e20e4..150e267 100644 --- a/README.md +++ b/README.md @@ -63,6 +63,7 @@ Currently listening in these countries . . . that I know of . . . - Costa Rica - The Philippines - Hungary +- South Sudan ## Features * 24/7 recording and BirdNET-Lite analysis diff --git a/scripts/utils/notifications.py b/scripts/utils/notifications.py index 1374964..83930d0 100644 --- a/scripts/utils/notifications.py +++ b/scripts/utils/notifications.py @@ -13,12 +13,12 @@ DB_PATH = userDir + '/BirdNET-Pi/scripts/birds.db' flickr_images = {} species_last_notified = {} +apobj = apprise.Apprise() +config = apprise.AppriseConfig() +config.add(APPRISE_CONFIG) +apobj.add(config) def notify(body, title, attached=""): - apobj = apprise.Apprise() - config = apprise.AppriseConfig() - config.add(APPRISE_CONFIG) - apobj.add(config) if attached != "": apobj.notify( body=body,