d
This commit is contained in:
@@ -66,6 +66,8 @@ def update():
|
||||
time = to_seconds(datetime.strptime(DEFAULT_SHUTDOWN, "%H:%M").time())
|
||||
else:
|
||||
time = to_seconds(datetime.strptime(data["time"], "%H:%M").time())
|
||||
print("Got :" + data)
|
||||
print(time)
|
||||
now = to_seconds(datetime.now().time())
|
||||
|
||||
if (time - now) < 0:
|
||||
@@ -78,7 +80,6 @@ def update():
|
||||
remove_shutdown()
|
||||
print("[BS Shutdown] New value")
|
||||
set_shutdown(time, now)
|
||||
LAST_VALUE = time
|
||||
|
||||
if __name__ == '__main__':
|
||||
while True:
|
||||
|
||||
Reference in New Issue
Block a user