Removed leftover GPIO stuff

This commit is contained in:
Thord Johansson 2022-11-29 21:29:56 +01:00
parent b57151cca5
commit 931221d74b

11
main.py
View File

@ -4,15 +4,6 @@ from os import system
app = Flask(__name__) app = Flask(__name__)
#define actuators GPIOs
ledRed = 13
ledYlw = 19
ledGrn = 26
#initialize GPIO status variables
ledRedSts = 0
ledYlwSts = 0
ledGrnSts = 0
def check_app_states(apps): def check_app_states(apps):
for app in apps: for app in apps:
if 'check_cmd' in app: if 'check_cmd' in app:
@ -60,7 +51,7 @@ def index():
'default': False, 'default': False,
'cmd_true': 'touch ~/testfile.tmp', 'cmd_true': 'touch ~/testfile.tmp',
'cmd_false': 'rm ~/testfile.tmp', 'cmd_false': 'rm ~/testfile.tmp',
'check_cmd': 'test -f ~/testfile.tmp', 'check_cmd': '~/check_if_file_exists.sh',
'cooldown': 1000, 'cooldown': 1000,
'show_cooldown': False 'show_cooldown': False
} }