Skip to content

Commit

Permalink
Even more debug logging
Browse files Browse the repository at this point in the history
  • Loading branch information
aneisch committed Feb 3, 2024
1 parent 77ba81d commit 54f3f24
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions thermostat_api_server.py
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down

0 comments on commit 54f3f24

Please sign in to comment.