commit b31f05a5cd19c7ed177b5cd763d2cb1ca2493dff
parent a7d6150a29d00018646f4298a9b6e628613424e4
Author: rob <rob@tarina.org>
Date: Wed, 26 Jul 2023 12:32:21 +0300
jee
Diffstat:
1 file changed, 6 insertions(+), 1 deletion(-)
diff --git a/waterlife.py b/waterlife.py
@@ -156,15 +156,20 @@ start_time = time.time()
get_code_time = time.time()
waterschedule = load_passcodes()
watering=False
+if is_webz_on():
+ keylogger('system up running')
+else:
+ print('offline')
while 1:
run_time = time.time() - start_time
update = time.time() - get_code_time
time.sleep(0.1)
- if update > 15:
+ if update > 60:
get_code_time = time.time()
if is_webz_on():
waterschedule = getcodes()
+ keylogger('system running')
else:
waterschedule = load_passcodes()
if watering==False: