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