Merge branch 'mcguirepr89:main' into main
This commit is contained in:
@@ -63,6 +63,7 @@ Currently listening in these countries . . . that I know of . . .
|
|||||||
- Costa Rica
|
- Costa Rica
|
||||||
- The Philippines
|
- The Philippines
|
||||||
- Hungary
|
- Hungary
|
||||||
|
- South Sudan
|
||||||
|
|
||||||
## Features
|
## Features
|
||||||
* 24/7 recording and BirdNET-Lite analysis
|
* 24/7 recording and BirdNET-Lite analysis
|
||||||
|
|||||||
@@ -13,12 +13,12 @@ DB_PATH = userDir + '/BirdNET-Pi/scripts/birds.db'
|
|||||||
flickr_images = {}
|
flickr_images = {}
|
||||||
species_last_notified = {}
|
species_last_notified = {}
|
||||||
|
|
||||||
|
apobj = apprise.Apprise()
|
||||||
|
config = apprise.AppriseConfig()
|
||||||
|
config.add(APPRISE_CONFIG)
|
||||||
|
apobj.add(config)
|
||||||
|
|
||||||
def notify(body, title, attached=""):
|
def notify(body, title, attached=""):
|
||||||
apobj = apprise.Apprise()
|
|
||||||
config = apprise.AppriseConfig()
|
|
||||||
config.add(APPRISE_CONFIG)
|
|
||||||
apobj.add(config)
|
|
||||||
if attached != "":
|
if attached != "":
|
||||||
apobj.notify(
|
apobj.notify(
|
||||||
body=body,
|
body=body,
|
||||||
|
|||||||
Reference in New Issue
Block a user