diff --git a/main.py b/main.py index 1f8e085..664d597 100644 --- a/main.py +++ b/main.py @@ -4,15 +4,6 @@ from os import system 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): for app in apps: if 'check_cmd' in app: @@ -60,7 +51,7 @@ def index(): 'default': False, 'cmd_true': 'touch ~/testfile.tmp', 'cmd_false': 'rm ~/testfile.tmp', - 'check_cmd': 'test -f ~/testfile.tmp', + 'check_cmd': '~/check_if_file_exists.sh', 'cooldown': 1000, 'show_cooldown': False }