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())