Update notifications.py
This commit is contained in:
@@ -47,9 +47,11 @@ def sendAppriseNotifications(species, confidence, path, date, time, week, latitu
|
|||||||
try:
|
try:
|
||||||
if int(timeim.time()) - species_last_notified[comName] < int(APPRISE_MINIMUM_SECONDS_BETWEEN_NOTIFICATIONS_PER_SPECIES):
|
if int(timeim.time()) - species_last_notified[comName] < int(APPRISE_MINIMUM_SECONDS_BETWEEN_NOTIFICATIONS_PER_SPECIES):
|
||||||
return
|
return
|
||||||
except:
|
except Exception as e:
|
||||||
|
print("APPRISE NOTIFICATION EXCEPTION: "+str(e))
|
||||||
return
|
return
|
||||||
|
|
||||||
|
#TODO: this all needs to be changed, we changed the caddy default to allow direct IP access, so birdnetpi.local shouldn't be relied on anymore
|
||||||
try:
|
try:
|
||||||
websiteurl = settings_dict.get('BIRDNETPI_URL')
|
websiteurl = settings_dict.get('BIRDNETPI_URL')
|
||||||
if len(websiteurl) == 0:
|
if len(websiteurl) == 0:
|
||||||
|
|||||||
Reference in New Issue
Block a user