From 31072baf97af6a69636d6547de9a13d70a34da0b Mon Sep 17 00:00:00 2001 From: Maximilian Giller Date: Sun, 3 Mar 2024 18:44:03 +0100 Subject: [PATCH] Fixed climate logger not starting --- src/main.py | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/src/main.py b/src/main.py index 623e458..1b7c9f4 100644 --- a/src/main.py +++ b/src/main.py @@ -18,9 +18,13 @@ from handler.history import get_recent_entries logging.getLogger().setLevel(logging.INFO) + +# Start services +asyncio.create_task(log_temperature()) queue = ActionQueue(matrix_display.show_current_time) app = FastAPI() + origins = [ "http://localhost", "http://localhost:8000", @@ -115,7 +119,3 @@ async def display_message(body: dict): message_text = body.get("message") await queue.add_action_to_queue(matrix_display.show_text, message_text) return {"message": "Message displayed"} - - -if __name__ == "__main__": - asyncio.create_task(log_temperature())