A live bird collage card for your Home Assistant dashboard.
fix default sf_thresh
ehpersonal388be2a33dfe43
diff --git a/birdnet.conf-defaults b/birdnet.conf-defaultsindex f7a9d150..2780dd2d 100644--- a/birdnet.conf-defaults+++ b/birdnet.conf-defaults@@ -11,7 +11,7 @@ SITE_NAME=""#______________________used for detecting bird audio.__________________________#MODEL=BirdNET_6K_GLOBAL_MODEL-SF_THRESH=0.5+SF_THRESH=0.03#--------------------- Required: Latitude, and Longitude ----------------------#diff --git a/scripts/config.php b/scripts/config.phpindex d3215582..0f6b6807 100644--- a/scripts/config.php+++ b/scripts/config.php@@ -358,7 +358,7 @@ function sendTestNotification(e) {<span <?php if($config['MODEL'] == "BirdNET_6K_GLOBAL_MODEL") { ?>style="display: none"<?php } ?> id="soft"><label for="sf_thresh">Species Occurence Frequency Threshold [0.0005, 0.99]: </label><input name="sf_thresh" type="number" max="0.99" min="0.0005" step="0.01" value="<?php print($config['SF_THRESH']);?>"/> <span onclick="document.getElementById('sfhelp').style.display='unset'" style="text-decoration:underline;cursor:pointer">[?]</span><br>- <p id="sfhelp" style='display:none'>This value is used by the model to constrain the list of possible species that it will try to detect, given the minimum occurence frequency. A 0.05 threshold means that for a species to be included in this list, it needs to, on average, be seen on at least 5% of historically submitted eBird checklists for your given lat/lon/current week of year. So, the lower the threshold, the rarer the species it will include.<br>If you'd like to tinker with this threshold value and see which species make it onto the list, you can run the following command <?php if($config['MODEL'] == "BirdNET_6K_GLOBAL_MODEL"){ ?>AFTER clicking 'Update Settings' at the very bottom of this page to install the appropriate labels file<?php } ?>: <b>~/BirdNET-Pi/birdnet/bin/python3 ~/BirdNET-Pi/scripts/species.py --threshold 0.05</b></p>+ <p id="sfhelp" style='display:none'>This value is used by the model to constrain the list of possible species that it will try to detect, given the minimum occurence frequency. A 0.03 threshold means that for a species to be included in this list, it needs to, on average, be seen on at least 3% of historically submitted eBird checklists for your given lat/lon/current week of year. So, the lower the threshold, the rarer the species it will include.<br>If you'd like to tinker with this threshold value and see which species make it onto the list, you can run the following command <?php if($config['MODEL'] == "BirdNET_6K_GLOBAL_MODEL"){ ?>AFTER clicking 'Update Settings' at the very bottom of this page to install the appropriate labels file<?php } ?>: <b>~/BirdNET-Pi/birdnet/bin/python3 ~/BirdNET-Pi/scripts/species.py --threshold 0.03</b></p></span><dl>diff --git a/scripts/install_config.sh b/scripts/install_config.shindex a592407e..d3343a52 100755--- a/scripts/install_config.sh+++ b/scripts/install_config.sh@@ -32,7 +32,7 @@ LONGITUDE=$(curl -s4 ifconfig.co/json | jq .longitude)#______________________used for detecting bird audio.__________________________#MODEL=BirdNET_6K_GLOBAL_MODEL-SF_THRESH=0.5+SF_THRESH=0.03#--------------------- BirdWeather Station Information -----------------------##_____________The variable below can be set to have your BirdNET-Pi____________#diff --git a/scripts/update_birdnet_snippets.sh b/scripts/update_birdnet_snippets.shindex a3079d1c..be307e70 100755--- a/scripts/update_birdnet_snippets.sh+++ b/scripts/update_birdnet_snippets.sh@@ -148,7 +148,7 @@ if ! grep MODEL /etc/birdnet/birdnet.conf &>/dev/null;thensudo -u$USER echo "MODEL=BirdNET_6K_GLOBAL_MODEL" >> /etc/birdnet/birdnet.conffiif ! grep SF_THRESH /etc/birdnet/birdnet.conf &>/dev/null;then- sudo -u$USER echo "SF_THRESH=0.5" >> /etc/birdnet/birdnet.conf+ sudo -u$USER echo "SF_THRESH=0.03" >> /etc/birdnet/birdnet.conffisudo chmod +x ~/BirdNET-Pi/scripts/install_language_label_nm.sh