Update pushbutton.py remove dashboard port

pull/441/head
Alan Johnston 2 months ago committed by GitHub
parent eba37f68a5
commit 05f491483a
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

@ -14,7 +14,7 @@ def read_config_ini():
global hotspot_password
global web_term_hotspot
global web_term_wifi
global dashboard_port
# global dashboard_port
try:
# Initialize the parser
config = configparser.ConfigParser()
@ -27,9 +27,9 @@ def read_config_ini():
hotspot_password = config['Hotspot']['hotspot_password']
web_term_hotspot = config['Hotspot']['web_term_hotspot']
web_term_wifi = config['Hotspot']['web_term_wifi']
dashboard_port = config.getint('Hotspot', 'dashboard_port')
# dashboard_port = config.getint('Hotspot', 'dashboard_port')
print(f"SSID: {hotspot_ssid} Password: {hotspot_password} Term Hotspot: {web_term_hotspot} Term WiFi {web_term_wifi} Port: {dashboard_port}")
print(f"SSID: {hotspot_ssid} Password: {hotspot_password} Term Hotspot: {web_term_hotspot} Term WiFi {web_term_wifi}") # : {dashboard_}")
except Exception as e:
print(f"An error occurred: {e}")
@ -38,7 +38,7 @@ def read_config_ini():
hotspot_password = "amsat"
web_term_hotspot = "yes"
web_term_wifi = "no"
dashboard_port = 80
# dashboard_port = 80
def blink(times):
blink_time = 0.1

Loading…
Cancel
Save

Powered by TurnKey Linux.