Skip to content

A live bird collage card for your Home Assistant dashboard.

working on new welcome wizard

Patrick McGuireb1f5b73b5c98
diff --git a/scripts/reconfigure_birdnet_gui.sh b/scripts/reconfigure_birdnet_gui.sh
index aaa6f1ca..ca2e8509 100755
--- a/scripts/reconfigure_birdnet_gui.sh
+++ b/scripts/reconfigure_birdnet_gui.sh
@@ -51,4 +51,4 @@ fi
${birdnetpi_dir}/scripts/update_birdnet.sh
xdg-open http://birdnetpi.local
-systemctl --user disable birdnet-pi-config-gui
+systemctl --user disable birdnet-pi-welcome-wizard.service
diff --git a/scripts/welcome_wizard.sh b/scripts/welcome_wizard.sh
index bfeef7ba..cc96502a 100755
--- a/scripts/welcome_wizard.sh
+++ b/scripts/welcome_wizard.sh
@@ -91,10 +91,19 @@ get_date_and_time() {
}
setup_wifi() {
- zenity --title="Connect to WiFi" --window-icon=/usr/share/pixmaps/red-cardinal32.png --info --text="Use the Networking Icon in the top right corner of
+ sudo systemctl start dhcpcd
+ wifi_list=""
+ until [[ "${wifi_list}" == "Continue" ]];do
+ wifi_list="$(zenity --title="Connect to WiFi" --extra-button="Refresh WiFi List" --window-icon=/usr/share/pixmaps/red-cardinal32.png --info --text="Use the Networking Icon in the top right corner of
the screen to select your WiFi network. Enter the credentials to connect when prompted.
-Press \"Continue\" after you have connected." --ok-label="Continue" --no-wrap
+Press \"Continue\" AFTER you have connected." --ok-label="Continue" --no-wrap)"
+ [ -z ${wifi_list} ] && break
+ if [[ "${wifi_list}" == "Refresh WiFi List" ]];then
+ sudo systemctl restart dhcpcd
+ fi
+done
+
get_latitude
}