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