Implement audio_card configuration check

Add check for audio_card configuration in 99-run.sh
This commit is contained in:
Alexandre
2025-09-17 10:26:13 +02:00
committed by GitHub
parent 03be81e886
commit 32657d0436

View File

@@ -10,6 +10,11 @@ echo " "
# Check if alsa_card is provided
CONFIG_LOCATION="/config/config.yaml"
if bashio::config.has_value "audio_card"; then
audio_card=$(bashio::config 'audio_card')
bashio::log.info "Audio card set to ${audio_card}. Please only Please ensure it is the correct card"
yq -iy ".realtime.audio.source = \"${audio_card}\"" "$CONFIG_LOCATION"
fi
########################
# CONFIGURE birdnet-go #