From c5efafbdf21c782f586995e9159dcc7c950cc43d Mon Sep 17 00:00:00 2001 From: Alexandre <44178713+alexbelgium@users.noreply.github.com> Date: Wed, 12 Feb 2025 13:28:10 +0100 Subject: [PATCH] Remove bats --- .../rootfs/etc/cont-init.d/71-newfeatures.sh | 21 ------------------- 1 file changed, 21 deletions(-) diff --git a/birdnet-pi/rootfs/etc/cont-init.d/71-newfeatures.sh b/birdnet-pi/rootfs/etc/cont-init.d/71-newfeatures.sh index cdf11d05e..ef4013c2b 100755 --- a/birdnet-pi/rootfs/etc/cont-init.d/71-newfeatures.sh +++ b/birdnet-pi/rootfs/etc/cont-init.d/71-newfeatures.sh @@ -8,27 +8,6 @@ set -e bashio::log.info "Adding optional features" -if bashio::config.true "BAT_MODEL_ENABLED"; then - bashio::log.warning "... system will be modified to analyse bats!" - sed -i '/thread_queue_size/a\ if [[ "$MODEL" == *"Bat"* ]]; then FFMPEG_PARAMS+="-vn -thread_queue_size 512 -i ${i} -map ${MAP_ID}:a:0 -t ${RECORDING_LENGTH} -acodec pcm_s16le -ac 2 file:${RECS_DIR}/StreamData/$(date "+%F")-birdnet-RTSP_${RTSP_STREAMS_STARTED_COUNT}-$(date "+%H:%M:%S").wav && python3 $HOME/BirdNET-Pi/scripts/bat_wav_translate.py ${RECS_DIR}/StreamData/$(date "+%F")-birdnet-RTSP_${RTSP_STREAMS_STARTED_COUNT}-$(date "+%H:%M:%S").wav"; fi' $HOME/*Pi/scripts/birdnet_recording.sh - echo "... installing wav translator" - cp /helpers/Bat_Model_BE_v1.py "$HOME"/BirdNET-Pi/scripts/bat_wav/translate.py - chmod +x "$HOME"/BirdNET-Pi/scripts/bat_wav_translate.py - echo "... moving model" - cp /helpers/Bat_Model_BE_v1.tflite "$HOME"/BirdNET-Pi/model/ - chown pi:pi "$HOME"/BirdNET-Pi/model/* - echo "... installing labels" - mv /helpers/Bat_Model_BE_v1.txt "$HOME"/BirdNET-Pi/scripts/labels.txt - echo "... changing model to bats" - sed -i "/MODEL/c\MODEL=\"Bat_Model_BE_v1\"" /config/birdnet.conf -fi - -# Denoiser -#if bashio::config.true "DENOISER_ANALYSIS_ENABLED"; then -# sed -i "s|ar 48000|ar 48000 -af \"arnndn=m=sample.rnnn\"|g" "$HOME"/BirdNET-Pi/scripts/birdnet_recording.sh -# sed -i "s|ar 48000|ar 48000 -af afftdn=nr=30:nt=w:om=o|g" "$HOME"/BirdNET-Pi/scripts/birdnet_recording.sh -#fi - # Enable the Processed folder #############################