Skip to content

A live bird collage card for your Home Assistant dashboard.

added some RECORDING_LENGTH testing documentation in birdnet.conf

Patrick McGuireb4cc1c6c7c69
diff --git a/Birders_Guide_Installer.sh b/Birders_Guide_Installer.sh
index 4d74ec47..e3833934 100755
--- a/Birders_Guide_Installer.sh
+++ b/Birders_Guide_Installer.sh
@@ -411,6 +411,14 @@ VENV=${my_dir}/miniforge/envs/birdnet
#_____________These variables are for testing. Please don't touch______________#
#_______________them if you are not testing these features.____________________#
+# To test different values for RECORDING_LENGTH, first:
+# 1) stop the birdnet_recording.service:
+#### run: \`sudo systemctl stop birdnet_recording.service`
+# 2) remove any remaining audio files in the day's recording directory:
+#### Example: to remove recordings for Saturday, October 2nd, 2021, you would
+#### run: \`rm -rf /home/pi/BirdSongs/October-2021/02-Saturday/*`
+# 3) restart the birdnet_recording.service:
+#### run: \`sudo systemctl restart birdnet_recording.service`
RECORDING_LENGTH=
diff --git a/birdnet.conf-defaults b/birdnet.conf-defaults
index 8996af64..ea0e8eee 100644
--- a/birdnet.conf-defaults
+++ b/birdnet.conf-defaults
@@ -239,6 +239,14 @@ VENV=$(dirname ${my_dir})/miniforge/envs/birdnet
#_____________These variables are for testing. Please don't touch______________#
#_______________them if you are not testing these features.____________________#
+# To test different values for RECORDING_LENGTH, first:
+# 1) stop the birdnet_recording.service:
+#### run: `sudo systemctl stop birdnet_recording.service`
+# 2) remove any remaining audio files in the day's recording directory:
+#### Example: to remove recordings for Saturday, October 2nd, 2021, you would
+#### run: `rm -rf /home/pi/BirdSongs/October-2021/02-Saturday/*`
+# 3) restart the birdnet_recording.service:
+#### run: `sudo systemctl restart birdnet_recording.service`
RECORDING_LENGTH=
diff --git a/scripts/install_config.sh b/scripts/install_config.sh
index eb24fe74..adaa9c1d 100755
--- a/scripts/install_config.sh
+++ b/scripts/install_config.sh
@@ -432,6 +432,15 @@ VENV=$(dirname ${my_dir})/miniforge/envs/birdnet
#_____________These variables are for testing. Please don't touch______________#
#_______________them if you are not testing these features.____________________#
+# To test different values for RECORDING_LENGTH, first:
+# 1) stop the birdnet_recording.service:
+#### run: \`sudo systemctl stop birdnet_recording.service`
+# 2) remove any remaining audio files in the day's recording directory:
+#### Example: to remove recordings for Saturday, October 2nd, 2021, you would
+#### run: \`rm -rf /home/pi/BirdSongs/October-2021/02-Saturday/*`
+# 3) restart the birdnet_recording.service:
+#### run: \`sudo systemctl restart birdnet_recording.service`
+
RECORDING_LENGTH=