From 54f3f2448fe554ac76bcaed963e644a077c205d4 Mon Sep 17 00:00:00 2001 From: Andrew Neisch Date: Sat, 3 Feb 2024 11:59:11 -0600 Subject: [PATCH] Even more debug logging --- thermostat_api_server.py | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/thermostat_api_server.py b/thermostat_api_server.py index b2f7158..cf47806 100755 --- a/thermostat_api_server.py +++ b/thermostat_api_server.py @@ -320,15 +320,13 @@ def do_POST(self): html = "" match = False - monitored = ["rt","rh","mode","fan","coolicon","heaticon","fanicon","hold","filtrlvl","clsp","htsp","opstat","iducfm","oat","oducoiltmp"] paths = ["/status", "/odu_status","/equipment_events"] # we only need data from these paths received_message = {} - final_locator = f'/{self.path.split("/")[-1:][0]}' # eg /status + logging.debug(f"{final_locator} -- {data}") if len(data) >= 45 and final_locator in paths: - logging.debug(f"{final_locator} -- {data}") try: # Parse and create dict of received message root = ET.fromstring(data)