From a14af09adf5a384e9dee9d5f654412bdbdea5545 Mon Sep 17 00:00:00 2001 From: rav4s Date: Fri, 18 Dec 2020 13:04:47 -0600 Subject: [PATCH] Centered the text --- garage_door_script.py | 2 +- templates/index.html | 13 +++++-------- 2 files changed, 6 insertions(+), 9 deletions(-) diff --git a/garage_door_script.py b/garage_door_script.py index ea520b2..72c54b7 100644 --- a/garage_door_script.py +++ b/garage_door_script.py @@ -86,7 +86,7 @@ def open_garage(): GPIO.output(7, False) time.sleep(.8) GPIO.output(7, True) - time.sleep(6) + time.sleep(8) #Sleep for 8 seconds to ensure the garage opens before page redirect return redirect(url_for('index')) else: return 'You are not logged in.' diff --git a/templates/index.html b/templates/index.html index 1ab1441..d407ac0 100644 --- a/templates/index.html +++ b/templates/index.html @@ -14,19 +14,16 @@
-

{{ message }}

-

The current sensor distance is {{ distance }} centimeters.

+

{{ message }}

+

The current sensor distance is {{ distance }} centimeters.

-

Trigger the garage door opener.

- {{ OpenOrClose }} +

Trigger the garage door opener.

+ {{ OpenOrClose }}
- Pi Garage Door Opener -
- Logout -
+

Made with