A live bird collage card for your Home Assistant dashboard.
Update update_birdnet_snippets.sh
Patrick McGuire6ee9a7cc6872
diff --git a/scripts/update_birdnet_snippets.sh b/scripts/update_birdnet_snippets.shindex a97e477b..008c9e16 100755--- a/scripts/update_birdnet_snippets.sh+++ b/scripts/update_birdnet_snippets.sh@@ -28,14 +28,15 @@ fiif ! grep APPRISE_NOTIFY_EACH_DETECTION /etc/birdnet/birdnet.conf &>/dev/null;thensudo -u$USER echo "APPRISE_NOTIFY_EACH_DETECTION=false" >> /etc/birdnet/birdnet.conffi-if ! which lsof &>/dev/null;then- sudo apt update && sudo apt -y install lsof-fiapprise_installation_status=$(~/BirdNET-Pi/birdnet/bin/python3 -c 'import pkgutil; print("installed" if pkgutil.find_loader("apprise") else "not installed")')if [[ "$apprise_installation_status" = "not installed" ]];then~/BirdNET-Pi/birdnet/bin/pip3 install -U pip~/BirdNET-Pi/birdnet/bin/pip3 install apprisefi+[ -f $HOME/BirdNET-Pi/apprise.txt ] || sudo -E -u$USER touch $HOME/BirdNET-Pi/apprise.txt+if ! which lsof &>/dev/null;then+ sudo apt update && sudo apt -y install lsof+fiif ! grep RTSP_STREAM /etc/birdnet/birdnet.conf &>/dev/null;thensudo -u$USER echo "RTSP_STREAM=" >> /etc/birdnet/birdnet.conffi