A live bird collage card for your Home Assistant dashboard.
Add RARE_SPECIES_THRESHOLD
Alexandreaede3cc8b7e2
diff --git a/scripts/update_birdnet_snippets.sh b/scripts/update_birdnet_snippets.shindex a6fef3bf..c0cf82c2 100755--- a/scripts/update_birdnet_snippets.sh+++ b/scripts/update_birdnet_snippets.sh@@ -98,6 +98,11 @@ if ! grep -E '^MAX_FILES_SPECIES=' /etc/birdnet/birdnet.conf &>/dev/null;thenecho "MAX_FILES_SPECIES=\"0\"" >> /etc/birdnet/birdnet.conffi+if ! grep -E '^RARE_SPECIES_THRESHOLD=' /etc/birdnet/birdnet.conf &>/dev/null;then+ echo '## RARE_SPECIES_THRESHOLD defines after how many days a species is considered as rare and highlighted on overview page' >> /etc/birdnet/birdnet.conf+ echo "RARE_SPECIES_THRESHOLD=\"30\"" >> /etc/birdnet/birdnet.conf+fi+[ -d $RECS_DIR/StreamData ] || sudo_with_user mkdir -p $RECS_DIR/StreamData[ -L ${EXTRACTED}/spectrogram.png ] || sudo_with_user ln -sf ${RECS_DIR}/StreamData/spectrogram.png ${EXTRACTED}/spectrogram.png