mirror of
https://github.com/alexbelgium/hassio-addons.git
synced 2026-01-10 09:51:02 +01:00
Update 99-run.sh
This commit is contained in:
@@ -9,6 +9,15 @@ set -e
|
||||
bashio::log.info "ALSA_CARD option is set to $(bashio::config "ALSA_CARD"). If the microphone doesn't work, please adapt it"
|
||||
echo " "
|
||||
|
||||
# Adjust microphone volume if needed
|
||||
if command -v amixer >/dev/null 2>/dev/null; then
|
||||
current_volume="$(amixer sget Capture | grep -oP '\[\d+%\]' | tr -d '[]%' | head -1 2>/dev/null || echo "100")" || true
|
||||
if [[ "$current_volume" -eq 0 ]]; then
|
||||
amixer sset Capture 70%
|
||||
bashio::log.warning "Microphone was off, volume set to 70%."
|
||||
fi || true
|
||||
fi
|
||||
|
||||
########################
|
||||
# CONFIGURE birdnet-go #
|
||||
########################
|
||||
|
||||
Reference in New Issue
Block a user