marek 1 месяц назад
Родитель
Сommit
649304d739
1 измененных файлов с 3 добавлено и 3 удалено
  1. 3 3
      apps/getData.py

+ 3 - 3
apps/getData.py

@@ -79,9 +79,9 @@ async def sensor_task():
     while True:
         data = bme280.sample(bus, address, calibration_params)
 
-        indoorValues["Temperature"] = data.temperature * 100
-        indoorValues["Pressure"] = data.pressure * 100
-        indoorValues["Humidity"] = data.humidity * 100
+        indoorValues["Temperature"] = round(data.temperature * 100)
+        indoorValues["Pressure"] = round(data.pressure * 100)
+        indoorValues["Humidity"] = round(data.humidity * 100)
         indoorValues["Altitude"] = 0 # * 100
         
         await asyncio.sleep(1)