From fc439646e1c6fe1aa5ed5cd2d6fc5d551c33851a Mon Sep 17 00:00:00 2001 From: Patrick McGuire <60325264+mcguirepr89@users.noreply.github.com> Date: Tue, 8 Nov 2022 05:37:18 -0500 Subject: [PATCH 1/2] Update README.md --- README.md | 1 + 1 file changed, 1 insertion(+) 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 From fbd5fe46511f73d05d3f6b53442d6df24220c6c6 Mon Sep 17 00:00:00 2001 From: ehpersonal38 <103586016+ehpersonal38@users.noreply.github.com> Date: Tue, 8 Nov 2022 12:04:39 -0500 Subject: [PATCH 2/2] Update notifications.py --- scripts/utils/notifications.py | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) 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,