adding status file

This commit is contained in:
Tanaes 2022-07-23 11:15:03 -04:00
parent 5862e4caf1
commit cf69e36ef3

View File

@ -32,8 +32,9 @@ class OvenWatcher(threading.Thread):
while True:
oven_state = self.oven.get_state()
with open(config.status_file, 'w') as f:
f.write(oven_state)
f.write(str(oven_state))
# record state for any new clients that join
if oven_state.get("state") == "RUNNING":