Update notifications.py
This commit is contained in:
@@ -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