mirror of
https://github.com/alexbelgium/hassio-addons.git
synced 2026-05-29 11:54:04 +02:00
Improve birdnet.conf source
This commit is contained in:
@@ -13,7 +13,7 @@ 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
|
||||
|
||||
@@ -2,7 +2,9 @@
|
||||
# shellcheck shell=bash
|
||||
|
||||
# Get values
|
||||
set -u
|
||||
source /etc/birdnet/birdnet.conf
|
||||
set +u
|
||||
|
||||
# Create ingress configuration for Caddyfile
|
||||
cat << EOF >> /etc/caddy/Caddyfile
|
||||
|
||||
@@ -1,6 +1,8 @@
|
||||
#!/usr/bin/env bash
|
||||
# Performs the recording from the specified RTSP stream or soundcard
|
||||
set -u
|
||||
source /etc/birdnet/birdnet.conf
|
||||
set +u
|
||||
|
||||
# Read the logging level from the configuration option
|
||||
LOGGING_LEVEL="${LogLevel_BirdnetRecordingService}"
|
||||
|
||||
Reference in New Issue
Block a user