A live bird collage card for your Home Assistant dashboard.
dynamically create wttr.in link on install_services.sh
Patrick McGuire8cb9ad0a1c55
diff --git a/scripts/install_services.sh b/scripts/install_services.shindex 24dd3ede..373dea2e 100755--- a/scripts/install_services.sh+++ b/scripts/install_services.sh@@ -151,7 +151,7 @@ create_necessary_dirs() {sudo -u ${USER} cp -f $(dirname ${my_dir})/templates/index_bootstrap.html ${HOME}/phpsysinfo/templates/htmlecho "Setting Wttr.in URL to "${LATITUDE}", "${LONGITUDE}""- sudo -u${USER} sed -i "s/https:\/\/wttr.in/https:\/\/wttr.in\/"${LATITUDE},${LONGITUDE}"/g" $(dirname ${my_dir})/homepage/menu.html+ sudo -u${USER} sed -i "s/https:\/\/v2.wttr.in\//https:\/\/wttr.in\/"${LATITUDE},${LONGITUDE}"/g" $(dirname ${my_dir})/homepage/menu.html}