From 931221d74bc8d06b7187b9c7666504566ed33a5e Mon Sep 17 00:00:00 2001 From: thoralmighty Date: Tue, 29 Nov 2022 21:29:56 +0100 Subject: [PATCH] Removed leftover GPIO stuff --- main.py | 11 +---------- 1 file changed, 1 insertion(+), 10 deletions(-) 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 }