Skip to content

A live bird collage card for your Home Assistant dashboard.

use helper

frederik0d28d5e8d000
diff --git a/scripts/install_language_label.sh b/scripts/install_language_label.sh
index b7d77491..94da6a92 100755
--- a/scripts/install_language_label.sh
+++ b/scripts/install_language_label.sh
@@ -1,12 +1,8 @@
#!/usr/bin/env bash
source /etc/birdnet/birdnet.conf
-if [ "$MODEL" == "BirdNET_GLOBAL_6K_V2.4_Model_FP16" ]; then
- BASEDIR=labels_nm
-else
- BASEDIR=labels_l18n
-fi
+cd /home/$BIRDNET_USER/BirdNET-Pi/scripts
-label_file_name="labels_${DATABASE_LANG}.txt"
+python3 -c 'from utils.helpers import set_label_file; set_label_file()'
-[ -f "$HOME/BirdNET-Pi/model/${BASEDIR}/${label_file_name}" ] && ln -sf ${BASEDIR}/${label_file_name} $HOME/BirdNET-Pi/model/labels.txt
+cd -