Update pushbutton.py add web terminal on wifi

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

@ -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):

Loading…
Cancel
Save

Powered by TurnKey Linux.