Open RossiLorenzo opened 1 year ago
The problem seems to be that your APPRISE_NOTIFICATION_BODY
variable in birdnet.conf
has weird special characters and symbols in it, which is rejected by the script that copies each line of birdnet.conf
to scripts/thisrun.txt
. Thus, APPRISE_NOTIFICATION_BODY
is missing from scripts/thisrun.txt
and makes a NoneType error when the non-existent variable is accessed.
A quick fix will be to edit this line of server.py
and change /BirdNET-Pi/scripts/thisrun.txt
to /BirdNET-Pi/birdnet.conf
. Then just add scripts/server.py
to ~/BirdNET-Pi/.gitignore
so your server.py
doesn't get overwritten when you update.
Hi,
First of all, amazing work! Love this project and all you are doing!
In terms of my issue, I consistently (even after reboots - pulls for new commits) get the following error from the notification system every time a new detection happens. This stops the system and creates long queues of files. I can only restart the analysis by restarting services (and by not receiving the mqtt notification).
I ran
cat ~/BirdNET-Pi/birdnet.conf | grep APPRISE
and this is my configuration:and I do have a flickr api key set in there too (
FLICKR_API_KEY=....
).Testing MQTT notifications straight from the interface works without any issue, the notification get sent (and received) correctly, it's only during "normal" running that it returns the above error.
I also went on line 523 of
handle_client
and seen thethisrun.txt
file is where settings are loaded from. This is what I got in that file:Let me know if there is any other debugging info I could provide