Correct code

This commit is contained in:
Alexandre
2024-07-02 19:41:27 +02:00
parent 23e18a2829
commit 314f9a9571
3 changed files with 6 additions and 6 deletions

View File

@@ -1,4 +1,3 @@
## 0.5.5-3 (02-07-2024)
- New option : set the audio clip directory from addon options - New option : set the audio clip directory from addon options
## 0.5.5-2 (25-06-2024) ## 0.5.5-2 (25-06-2024)

View File

@@ -110,5 +110,5 @@
"slug": "birdnet-go", "slug": "birdnet-go",
"udev": true, "udev": true,
"url": "https://github.com/alexbelgium/hassio-addons/tree/master/birdnet-go", "url": "https://github.com/alexbelgium/hassio-addons/tree/master/birdnet-go",
"version": "0.5.5-4" "version": "0.5.5-5"
} }

View File

@@ -43,6 +43,7 @@ for configloc in /config/config.yaml /internal/conf/config.yaml; do
sed -i "/audio clip export directory/c\ path: $birdsongsloc/ # path to audio clip export directory" "$configloc" sed -i "/audio clip export directory/c\ path: $birdsongsloc/ # path to audio clip export directory" "$configloc"
fi fi
done done
# If default capture is set at 0%, increase it to 50% # If default capture is set at 0%, increase it to 50%
current_volume="$(amixer sget Capture | grep -oP '\[\d+%]' | tr -d '[]%' | head -1)" 2>/dev/null || true current_volume="$(amixer sget Capture | grep -oP '\[\d+%]' | tr -d '[]%' | head -1)" 2>/dev/null || true
current_volume="${current_volume:-100}" current_volume="${current_volume:-100}"