A live bird collage card for your Home Assistant dashboard.
fixed defaults for RECORDING_LENGTH removed unneeded quotation marks
Patrick McGuire41d46446064b
diff --git a/Birders_Guide_Installer.sh b/Birders_Guide_Installer.shindex c73bb768..4d74ec47 100755--- a/Birders_Guide_Installer.sh+++ b/Birders_Guide_Installer.sh@@ -196,8 +196,8 @@ RECS_DIR=${HOME}/BirdSongs## LATITUDE=48.858## LONGITUDE=2.294-LATITUDE="${LATITUDE}"-LONGITUDE="${LONGITUDE}"+LATITUDE=${LATITUDE}+LONGITUDE=${LONGITUDE}#################################################################################------------------------------ Extraction Service ---------------------------#@@ -372,17 +372,17 @@ IDFILE=${HOME}/BirdNET-Lite/IdentifiedSoFar.txt## OVERLAP is the value in seconds which BirdNET should use when analyzing## the data. The values must be between 0.0-2.9.-OVERLAP="0.0"+OVERLAP=0.0## CONFIDENCE is the minimum confidence level from 0.0-1.0 BirdNET's analysis## should reach before creating an entry in the BirdNET.selection.txt file.## Don't set this to 1.0 or you won't have any results.-CONFIDENCE="0.7"+CONFIDENCE=0.7## SENSITIVITY is the detection sensitivity from 0.5-1.5.-SENSITIVITY="1.25"+SENSITIVITY=1.25#################################################################################------------------------------ Auto-Generated ------------------------------#diff --git a/birdnet.conf-defaults b/birdnet.conf-defaultsindex 3b63ddce..8996af64 100644--- a/birdnet.conf-defaults+++ b/birdnet.conf-defaults@@ -200,17 +200,17 @@ IDFILE=${HOME}/BirdNET-Lite/IdentifiedSoFar.txt## OVERLAP is the value in seconds which BirdNET should use when analyzing## the data. The values must be between 0.0-2.9.-OVERLAP="0.0"+OVERLAP=0.0## CONFIDENCE is the minimum confidence level from 0.0-1.0 BirdNET's analysis## should reach before creating an entry in the BirdNET.selection.txt file.## Don't set this to 1.0 or you won't have any results.-CONFIDENCE="0.7"+CONFIDENCE=0.7## SENSITIVITY is the detection sensitivity from 0.5-1.5.-SENSITIVITY="1.25"+SENSITIVITY=1.25#################################################################################------------------------------ Auto-Generated ------------------------------#@@ -220,7 +220,7 @@ SENSITIVITY="1.25"## CHANNELS holds the variabel that corresponds to the number of channels the## sound card supports.-CHANNELS=${CHANNELS}+CHANNELS=# Don't touch the variables belowdiff --git a/scripts/birdnet_analysis.sh b/scripts/birdnet_analysis.shindex 3a2c0739..74cf39d4 100755--- a/scripts/birdnet_analysis.sh+++ b/scripts/birdnet_analysis.sh@@ -10,7 +10,7 @@ CUSTOM_LIST="/home/pi/BirdNET-Lite/custom_species_list.txt"get_files() {echo "get_files() for ${1:19}"files=($( find ${1} -maxdepth 1 -name '*wav' \- | sort -r \+ | sort \| awk -F "/" '{print $NF}' ))[ -n "${files[1]}" ] && echo "Files loaded"}diff --git a/scripts/birdnet_recording.sh b/scripts/birdnet_recording.shindex 45f6d811..1e24eacf 100755--- a/scripts/birdnet_recording.sh+++ b/scripts/birdnet_recording.sh@@ -8,7 +8,7 @@ elseSTAMP="%H:%M:%S"fi-[ -z RECORDING_LENGTH ] || RECORDING_LENGTH=12+[ -z $RECORDING_LENGTH ] && RECORDING_LENGTH=12if pgrep arecord &> /dev/null ;thenecho "Recording"diff --git a/scripts/extract_new_birdsounds.sh b/scripts/extract_new_birdsounds.shindex e1a155b0..f0b133b2 100755--- a/scripts/extract_new_birdsounds.sh+++ b/scripts/extract_new_birdsounds.sh@@ -130,7 +130,7 @@ for h in "${SCAN_DIRS[@]}";do### TESTING longer extraction contextset -x- [ -z ${EXTRACTION_LENGTH} ] || EXTRACTION_LENGTH=6+ [ -z ${EXTRACTION_LENGTH} ] && EXTRACTION_LENGTH=6SPACER=$(echo "(${EXTRACTION_LENGTH} - 3 )/2" |bc -l)START=$(echo "${START} - ${SPACER}"|bc -l)END=$(echo "${END} + ${SPACER}"|bc -l)diff --git a/scripts/install_config.sh b/scripts/install_config.shindex fc49a77c..eb24fe74 100755--- a/scripts/install_config.sh+++ b/scripts/install_config.sh@@ -217,8 +217,8 @@ RECS_DIR=${RECS_DIR}## LATITUDE=48.858## LONGITUDE=2.294-LATITUDE="${LATITUDE}"-LONGITUDE="${LONGITUDE}"+LATITUDE=${LATITUDE}+LONGITUDE=${LONGITUDE}#################################################################################------------------------------ Extraction Service ---------------------------#@@ -393,17 +393,17 @@ IDFILE=${HOME}/BirdNET-Lite/IdentifiedSoFar.txt## OVERLAP is the value in seconds which BirdNET should use when analyzing## the data. The values must be between 0.0-2.9.-OVERLAP="0.0"+OVERLAP=0.0## CONFIDENCE is the minimum confidence level from 0.0-1.0 BirdNET's analysis## should reach before creating an entry in the BirdNET.selection.txt file.## Don't set this to 1.0 or you won't have any results.-CONFIDENCE="0.7"+CONFIDENCE=0.7## SENSITIVITY is the detection sensitivity from 0.5-1.5.-SENSITIVITY="1.25"+SENSITIVITY=1.25#################################################################################------------------------------ Auto-Generated ------------------------------#