From bdec980ba388defa6cab74748151ff2a220c963e Mon Sep 17 00:00:00 2001 From: Alan Johnston Date: Mon, 10 Aug 2026 15:25:24 -0400 Subject: [PATCH] Update pushbutton.py add ttyd -W --- pushbutton.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/pushbutton.py b/pushbutton.py index e8e2de57..bad883e5 100644 --- a/pushbutton.py +++ b/pushbutton.py @@ -188,10 +188,10 @@ if not GPIO.input(push_button) or hotspot_default == "yes": # if pushbutton is h print(result, flush=True) sleep(2) if web_term_hotspot == "yes": - subprocess.Popen(['sudo', '-u', 'pi', 'ttyd', '-p', '8081', 'bash']) + subprocess.Popen(['sudo', '-u', 'pi', 'ttyd', '-W', '-p', '8081', 'bash']) print("Starting web terminal on port 8081") elif web_term_wifi == "yes": - subprocess.Popen(['sudo', '-u', 'pi', 'ttyd', '-p', '8081', 'bash']) + subprocess.Popen(['sudo', '-u', 'pi', 'ttyd', '-W', '-p', '8081', 'bash']) print("Starting web terminal on port 8081") GPIO.setup(powerPin, GPIO.OUT) GPIO.output(powerPin, 1)