Update pushbutton.py add ttyd -W

pull/444/head
Alan Johnston 2 months ago committed by GitHub
parent 99214c5e24
commit bdec980ba3
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

@ -188,10 +188,10 @@ if not GPIO.input(push_button) or hotspot_default == "yes": # if pushbutton is h
print(result, flush=True) print(result, flush=True)
sleep(2) sleep(2)
if web_term_hotspot == "yes": 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") print("Starting web terminal on port 8081")
elif web_term_wifi == "yes": 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") print("Starting web terminal on port 8081")
GPIO.setup(powerPin, GPIO.OUT) GPIO.setup(powerPin, GPIO.OUT)
GPIO.output(powerPin, 1) GPIO.output(powerPin, 1)

Loading…
Cancel
Save

Powered by TurnKey Linux.