add DATA_MODEL_VERSION to config
This commit is contained in:
@@ -45,6 +45,7 @@ LONGITUDE=$LONGITUDE
|
||||
|
||||
MODEL=BirdNET_GLOBAL_6K_V2.4_Model_FP16
|
||||
SF_THRESH=0.03
|
||||
DATA_MODEL_VERSION=2
|
||||
|
||||
#--------------------- BirdWeather Station Information -----------------------#
|
||||
#_____________The variable below can be set to have your BirdNET-Pi____________#
|
||||
|
||||
@@ -61,6 +61,10 @@ SRC="APPRISE_NOTIFICATION_BODY='(.*)'$"
|
||||
DST='APPRISE_NOTIFICATION_BODY="\1"'
|
||||
sed -i -E "s/$SRC/$DST/" /etc/birdnet/birdnet.conf
|
||||
|
||||
if ! grep -E '^DATA_MODEL_VERSION=' /etc/birdnet/birdnet.conf &>/dev/null;then
|
||||
echo "DATA_MODEL_VERSION=1" >> /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
|
||||
|
||||
|
||||
Reference in New Issue
Block a user