A live bird collage card for your Home Assistant dashboard.
now the birdnet_analysis waits for the socket
mcguirepr894724b1781fa5
diff --git a/scripts/birdnet_analysis.sh b/scripts/birdnet_analysis.shindex aa04b7b0..e77f8539 100755--- a/scripts/birdnet_analysis.sh+++ b/scripts/birdnet_analysis.sh@@ -124,6 +124,12 @@ run_analysis() {donefi+ if ! grep 5050 <(netstat -tulpn 2>&1) &> /dev/null 2>&1;then+ echo "Waiting for socket"+ until grep 5050 <(netstat -tulpn 2>&1) &> /dev/null 2>&1;do+ sleep 1+ done+ fiif [ -f ${1}/${i} ] && [ ! -f ${INCLUDE_LIST} ] && [ ! -f ${EXCLUDE_LIST} ] && [ -z $BIRDWEATHER_ID ];thenecho "python3 analyze.py \--i "${1}/${i}" \