From 5c3b2d5691af11b4fe8618b0a700524094979e9f Mon Sep 17 00:00:00 2001 From: frederik Date: Tue, 12 Mar 2024 10:56:51 +0100 Subject: [PATCH] fix: RTSP_STREAM_TO_LIVESTREAM was missing from config file --- scripts/install_config.sh | 3 +++ scripts/update_birdnet_snippets.sh | 4 ++++ 2 files changed, 7 insertions(+) diff --git a/scripts/install_config.sh b/scripts/install_config.sh index 7512d9e..ab538bc 100755 --- a/scripts/install_config.sh +++ b/scripts/install_config.sh @@ -94,6 +94,9 @@ BIRDNETPI_URL= RTSP_STREAM= +## RTSP_STREAM_TO_LIVESTREAM is the index, so 0 means the first stream +RTSP_STREAM_TO_LIVESTREAM="0" + #----------------------- Apprise Miscellanous Configuration -------------------# APPRISE_NOTIFICATION_TITLE="New BirdNET-Pi Detection" diff --git a/scripts/update_birdnet_snippets.sh b/scripts/update_birdnet_snippets.sh index 592cd90..afa5fb7 100755 --- a/scripts/update_birdnet_snippets.sh +++ b/scripts/update_birdnet_snippets.sh @@ -65,6 +65,10 @@ if ! grep -E '^DATA_MODEL_VERSION=' /etc/birdnet/birdnet.conf &>/dev/null;then echo "DATA_MODEL_VERSION=1" >> /etc/birdnet/birdnet.conf fi +if ! grep -E '^RTSP_STREAM_TO_LIVESTREAM=' /etc/birdnet/birdnet.conf &>/dev/null;then + echo "RTSP_STREAM_TO_LIVESTREAM=\"0\"" >> /etc/birdnet/birdnet.conf +fi + [ -d $RECS_DIR/StreamData ] || sudo_with_user mkdir -p $RECS_DIR/StreamData [ -L ${EXTRACTED}/spectrogram.png ] || sudo_with_user ln -sf ${RECS_DIR}/StreamData/spectrogram.png ${EXTRACTED}/spectrogram.png