A live bird collage card for your Home Assistant dashboard.
fix sox spectrogram title on non ASCII names
ehpersonal38513d093523da
diff --git a/scripts/extract_new_birdsounds.sh b/scripts/extract_new_birdsounds.shindex 60b9bb34..0988f916 100755--- a/scripts/extract_new_birdsounds.sh+++ b/scripts/extract_new_birdsounds.sh@@ -130,7 +130,7 @@ for h in "${SCAN_DIRS[@]}";doelse# If it's not, run the SOX command without the "-r" argumentsox -V1 "${NEWSPECIES_BYDATE}/${NEWFILE}" -n remix 1 rate 24k spectrogram \- -t "${COMMON_NAME}" \+ -t "$(echo "${COMMON_NAME}" | iconv -f utf8 -t ascii//TRANSLIT)" \-c "${NEWSPECIES_BYDATE//$HOME\/}/${NEWFILE}" \-o "${NEWSPECIES_BYDATE}/${NEWFILE}.png"fi