mirror of
https://github.com/alexbelgium/hassio-addons.git
synced 2026-06-02 13:54:05 +02:00
Update 30-monitoring.sh
This commit is contained in:
@@ -2,19 +2,21 @@
|
|||||||
# shellcheck shell=bash
|
# shellcheck shell=bash
|
||||||
# Adapted from https://github.com/mcguirepr89/BirdNET-Pi/issues/393#issuecomment-1166445710
|
# Adapted from https://github.com/mcguirepr89/BirdNET-Pi/issues/393#issuecomment-1166445710
|
||||||
|
|
||||||
|
HOME="/home/pi"
|
||||||
|
|
||||||
# Define logging functions
|
# Define logging functions
|
||||||
log_green() { echo -e "\033[32m$1\033[0m"; }
|
log_green() { echo -e "\033[32m$1\033[0m"; }
|
||||||
log_red() { echo -e "\033[31m$1\033[0m"; }
|
log_red() { echo -e "\033[31m$1\033[0m"; }
|
||||||
log_yellow() { echo -e "\033[33m$1\033[0m"; }
|
log_yellow() { echo -e "\033[33m$1\033[0m"; }
|
||||||
log_info() { echo -e "\033[34m$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
|
# Read configuration
|
||||||
set +u
|
set +u
|
||||||
source /etc/birdnet/birdnet.conf
|
source /etc/birdnet/birdnet.conf
|
||||||
|
|
||||||
|
echo "$(log_green "Starting service: throttlerecording")"
|
||||||
|
touch "$HOME/BirdSongs/StreamData/analyzing_now.txt"
|
||||||
|
|
||||||
# Set constants
|
# Set constants
|
||||||
srv="birdnet_recording"
|
srv="birdnet_recording"
|
||||||
srv2="birdnet_analysis"
|
srv2="birdnet_analysis"
|
||||||
|
|||||||
Reference in New Issue
Block a user