A live bird collage card for your Home Assistant dashboard.
Update extract_new_birdsounds.sh
Patrick McGuireb382d465a326
diff --git a/scripts/extract_new_birdsounds.sh b/scripts/extract_new_birdsounds.shindex 8b7abc8b..ca91a8a6 100755--- a/scripts/extract_new_birdsounds.sh+++ b/scripts/extract_new_birdsounds.sh@@ -68,7 +68,7 @@ for h in "${SCAN_DIRS[@]}";doif [[ $locale_decimal == "." ]]; thenCONFIDENCE_SCORE="$(printf %.0f "$(echo "scale=2; ${CONFIDENCE} * 100" | bc)")"else- CONFIDENCE_SCORE="$(printf %.0f "$(echo "scale=2; "${CONFIDENCE//./,}" * 100" | bc)")"+ CONFIDENCE_SCORE="$(printf %.0f "$(echo "scale=2; "${CONFIDENCE}" * 100" | bc | tr '.' ',')")"fiNEWFILE="${COMMON_NAME// /_}-${CONFIDENCE_SCORE}-${OLDFILE//.wav/.${AUDIOFMT}}"echo "NEWFILE=$NEWFILE"