From 6adb2519eac24864edea9287f8714f2a338e387c Mon Sep 17 00:00:00 2001 From: Alexandre <44178713+alexbelgium@users.noreply.github.com> Date: Sat, 12 Oct 2024 23:28:45 +0200 Subject: [PATCH] Update 30-monitoring.sh --- birdnet-pi/rootfs/custom-services.d/30-monitoring.sh | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/birdnet-pi/rootfs/custom-services.d/30-monitoring.sh b/birdnet-pi/rootfs/custom-services.d/30-monitoring.sh index 62d9f9991..58f53c423 100755 --- a/birdnet-pi/rootfs/custom-services.d/30-monitoring.sh +++ b/birdnet-pi/rootfs/custom-services.d/30-monitoring.sh @@ -2,19 +2,21 @@ # shellcheck shell=bash # Adapted from https://github.com/mcguirepr89/BirdNET-Pi/issues/393#issuecomment-1166445710 +HOME="/home/pi" + # Define logging functions log_green() { echo -e "\033[32m$1\033[0m"; } log_red() { echo -e "\033[31m$1\033[0m"; } log_yellow() { echo -e "\033[33m$1\033[0m"; } log_info() { echo -e "\033[34m$1\033[0m"; } -echo "$(log_green "Starting service: throttlerecording")" -touch "$HOME/BirdSongs/StreamData/analyzing_now.txt" - # Read configuration set +u source /etc/birdnet/birdnet.conf +echo "$(log_green "Starting service: throttlerecording")" +touch "$HOME/BirdSongs/StreamData/analyzing_now.txt" + # Set constants srv="birdnet_recording" srv2="birdnet_analysis"