mirror of
https://github.com/alexbelgium/hassio-addons.git
synced 2026-06-11 18:11:29 +02:00
Correct code
This commit is contained in:
@@ -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)
|
||||||
|
|||||||
@@ -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"
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -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}"
|
||||||
|
|||||||
Reference in New Issue
Block a user