Kód: Vybrat vše
lambda: |-
const float STANDARD_SEA_LEVEL_PRESSURE = 1013.25; //in hPa, see note
return ((id(bme280_temperature).state + 273.15) / 0.0065) *
(powf((STANDARD_SEA_LEVEL_PRESSURE / id(bme280_pressure).state), 0.190234) - 1); // in meter
Hodnota ale nie je správna.
Je potrebné v tejto rovnici zmeniť STANDARD_SEA_LEVEL_PRESSURE ?