mirror of
https://github.com/alexbelgium/hassio-addons.git
synced 2026-07-24 15:00:31 +02:00
Update 72-newfeatures.sh
This commit is contained in:
@@ -54,7 +54,8 @@ if [ ! -f /home/pi/BirdNET-Pi/scripts/birdnet_changeidentification.sh ]; then
|
||||
fi
|
||||
|
||||
# Add species conversion system
|
||||
echo "... adding feature of convert_species_list"
|
||||
if bashio::config.true "SPECIES_CONVERTER"; then
|
||||
bashio::log.yellow "... adding feature of SPECIES_CONVERTER, please see README to use"
|
||||
touch /config/convert_species_list.txt
|
||||
chown pi:pi /config/convert_species_list.txt
|
||||
sudo -u pi ln -fs /config/convert_species_list.txt "$HOME"/BirdNET-Pi/
|
||||
@@ -77,5 +78,6 @@ sed -i "/for entry in entries/a\ if entry[1] >= conf.getfloat('CONFID
|
||||
sed -i "/converted_entry in INCLUDE_LIST or len(INCLUDE_LIST)/c\ if ((converted_entry in INCLUDE_LIST or len(INCLUDE_LIST) == 0)" "$HOME"/BirdNET-Pi/scripts/server.py
|
||||
sed -i "s| d = Detection| d = Detection|g" "$HOME"/BirdNET-Pi/scripts/server.py
|
||||
sed -i "s| confident_detections| confident_detections|g" "$HOME"/BirdNET-Pi/scripts/server.py
|
||||
fi
|
||||
|
||||
echo " "
|
||||
|
||||
Reference in New Issue
Block a user