A live bird collage card for your Home Assistant dashboard.
Adding a snippet to ensure python systemd services use the python virtual-env
Jake Herbst02bf7ffe077b
diff --git a/scripts/update_birdnet_snippets.sh b/scripts/update_birdnet_snippets.shindex 2f0a618d..11d38232 100755--- a/scripts/update_birdnet_snippets.sh+++ b/scripts/update_birdnet_snippets.sh@@ -14,6 +14,11 @@ if [ -f $my_dir/privacy_server ] || [ -L /usr/local/bin/privacy_server.py ];thenrm -f $my_dir/privacy_server.pyrm -f /usr/local/bin/privacy_server.pyfi++# Adds python virtual-env to the python systemd services+sudo -E sed -i "s|ExecStart=.*|ExecStart=$HOME/BirdNET-Pi/birdnet/bin/python3 /usr/local/bin/server.py|" ~/BirdNET-Pi/templates/birdnet_server.service+sudo -E sed -i "s|ExecStart=.*|ExecStart=$HOME/BirdNET-Pi/birdnet/bin/python3 /usr/local/bin/daily_plot.py|" ~/BirdNET-Pi/templates/chart_viewer.service+if grep privacy ~/BirdNET-Pi/templates/birdnet_server.service &>/dev/null;thensudo -E sed -i 's/privacy_server.py/server.py/g' \~/BirdNET-Pi/templates/birdnet_server.service