From 99fa7b281a1c33533db26ce3879e660da2f63cc2 Mon Sep 17 00:00:00 2001 From: Alan Johnston Date: Wed, 5 Aug 2026 22:52:17 -0400 Subject: [PATCH] Update pushbutton.py add web terminal on wifi --- pushbutton.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/pushbutton.py b/pushbutton.py index 1ef7688e..80ae21e4 100644 --- a/pushbutton.py +++ b/pushbutton.py @@ -187,7 +187,9 @@ if not GPIO.input(push_button): # if pushbutton is held down during boot if web_term_hotspot == "yes": subprocess.Popen(['sudo', '-u', 'pi', 'ttyd', '-p', '8081', 'bash']) print("Starting web terminal on port 8081") - +elif web_term_wifi == "yes": + subprocess.Popen(['sudo', '-u', 'pi', 'ttyd', '-p', '8081', 'bash']) + print("Starting web terminal on port 8081") GPIO.setup(powerPin, GPIO.OUT) GPIO.output(powerPin, 1) while (True):