This commit is contained in:
Alexandre
2025-03-04 23:02:22 +01:00
parent cc6458b132
commit 9af6c5d7c8
2 changed files with 3 additions and 0 deletions

View File

@@ -116,6 +116,8 @@ if [[ -f /helpers/timedatectl ]]; then
fi
# Correct timezone showing in config.php
# shellcheck disable=SC2016
echo "... updating timezone in config.php"
sed -i -e '/<option disabled selected>/s/selected//' \
-e '/\$current_timezone = trim(shell_exec("timedatectl show --value --property=Timezone"));/d' \
-e "/\$date = new DateTime('now');/i \$current_timezone = trim(shell_exec(\"timedatectl show --value --property=Timezone\"));" \

View File

@@ -26,6 +26,7 @@ if [[ "$(uname -m)" = "x86_64" ]]; then
bashio::log.warning "Trying to install tensorflow instead of tflite_runtime instead"
mkdir -p /home/pi/.cache/pip
chmod 777 /home/pi/.cache/pip
# shellcheck disable=SC1091
source /home/pi/BirdNET-Pi/birdnet/bin/activate
pip3 uninstall -y tflite_runtime
pip3 install tensorflow