From 5d6a2bb32b7096ceb6e64fef5531018c43a7b380 Mon Sep 17 00:00:00 2001 From: maxime Date: Mon, 30 Mar 2026 21:46:43 +0200 Subject: [PATCH] api presque fonctionnel --- fastapi/main.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/fastapi/main.py b/fastapi/main.py index 0f7ad21..8bf2a27 100644 --- a/fastapi/main.py +++ b/fastapi/main.py @@ -33,9 +33,11 @@ async def read_temp(): temp = controleur_thermostat.lireTemperature() if temp is None: return {"success": False, "message": "Impossible de lire le capteur DHT11"} + afficherTemperatures() return {"success": True, "temperature": temp} + """ @app.get("/open_volet") async def open_volet():