micrograms -> grams (#198)

This commit is contained in:
Boris Hajduk 2019-03-15 22:22:27 +08:00 committed by Otto Winter
parent a7d0f130df
commit 1397bdcfdf
1 changed files with 1 additions and 1 deletions

View File

@ -47,7 +47,7 @@ After validating the sensor is working, we can proceed and add some formulas.
const float r = 8.31447215; // Universal gas constant J/mol/K
return (6.112 * powf(2.718281828, (17.67 * id(bme280_temperature).state) /
(id(bme280_temperature).state + 243.5)) * id(bme280_humidity).state * mw) /
((273.15 + id(bme280_temperature).state) * r); // in micrograms/m^3
((273.15 + id(bme280_temperature).state) * r); // in grams/m^3
accuracy_decimals: 2
update_interval: 15s

Before

Width:  |  Height:  |  Size: 4.8 KiB

After

Width:  |  Height:  |  Size: 4.8 KiB