diff --git a/zanzocam/web_ui/pages.py b/zanzocam/web_ui/pages.py index 2bd69b0..b54c321 100644 --- a/zanzocam/web_ui/pages.py +++ b/zanzocam/web_ui/pages.py @@ -6,7 +6,7 @@ from flask import render_template -from zanzocam.web_ui.utils import read_network_data, read_setup_data_file, read_flag_file, read_log_file, clear_logs +from zanzocam.web_ui.utils import read_network_data, read_setup_data_file, read_flag_file, read_log_file, clear_logs, get_available_wifis from zanzocam.webcam.system import get_wifi_data from zanzocam.constants import * @@ -26,10 +26,12 @@ def home_page(): def network_page(): """ The page with the network forms """ network_data = read_network_data() + wifi_list = get_available_wifis() return render_template("network.html", title="Setup Rete", version=VERSION, - network_data=network_data) + network_data=network_data, + wifi_list=wifi_list) def server_page(): """ The page with the server data forms """ diff --git a/zanzocam/web_ui/templates/network.html b/zanzocam/web_ui/templates/network.html index 1eda05b..c77eced 100644 --- a/zanzocam/web_ui/templates/network.html +++ b/zanzocam/web_ui/templates/network.html @@ -4,40 +4,15 @@