Continue Flask migration.

This commit is contained in:
yohan 2024-06-02 14:12:46 +02:00
parent 31dfdaf64d
commit c998e291f9

View File

@ -14,6 +14,7 @@ from datetime import datetime
import time
import requests
import subprocess
from threading import Thread
# This code has been written for
# python3 3.11.2-1+b1
@ -217,7 +218,8 @@ first_loop = True
# print(row)
#sys.stdout.flush()
#while True:
def thermostat_loop():
while True:
# # if stop.is_set():
# # httpd.shutdown()
# # httpd.server_close()
@ -322,8 +324,9 @@ first_loop = True
# set_relay(rooms_settings[room]["relays"], "off")
# else:
# logging.debug("Relay already off.")
# time.sleep(load_shedder_interval)
time.sleep(load_shedder_interval)
t1 = Thread(thermostat_loop)
logging.info("====== Ended successfully ======")
#import argparse