Improve birdnet.conf source

This commit is contained in:
Alexandre
2024-10-12 08:49:04 +02:00
parent dfaf1c109e
commit b583406776
6 changed files with 14 additions and 6 deletions

View File

@@ -3,17 +3,17 @@
# Adapted from https://github.com/mcguirepr89/BirdNET-Pi/issues/393#issuecomment-1166445710
# 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" }
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 /config/birdnet.conf 2>/dev/null
source /etc/birdnet/birdnet.conf
set +u
# Set constants