Test shutdown.

This commit is contained in:
yohan 2024-06-07 01:26:04 +02:00
parent 1a5570cd3c
commit 42d04cc15b

View File

@ -383,8 +383,10 @@ def thermostat_loop():
time.sleep(load_shedder_interval)
logging.info("====== Ended successfully ======")
if __name__ == '__main__':
#t1 = Thread(target=thermostat_loop)
#if __name__ == '__main__':
t1 = Thread(target=thermostat_loop)
#t1.daemon = True
#t1.start()
app.run(host='0.0.0.0', port=3002)
t1.start()
t1.join()
exit(0)
# app.run(host='0.0.0.0', port=3002)