index mod1

This commit is contained in:
richonguzman 2024-05-13 14:40:30 -04:00
parent 67c2a61f09
commit 5c0fba60b5
2 changed files with 9 additions and 3 deletions

View File

@ -847,7 +847,7 @@
>Heigh Correction</label
>
<input
type="text"
type="number"
name="bme.heightCorrection"
id="bme.heightCorrection"
value="0"
@ -859,7 +859,7 @@
>Temperature Correction</label
>
<input
type="text"
type="number"
name="bme.temperatureCorrection"
id="bme.temperatureCorrection"
value="0.0"

View File

@ -216,12 +216,18 @@ namespace BME_Utils {
fifthLine = "";
return wx;
} else {
tempStr = generateTempString((newTemp * 1.8) + 32);
//
Serial.print("correccion temperatura: "); Serial.println(Config.bme.temperatureCorrection);
//
tempStr = generateTempString(((newTemp + Config.bme.temperatureCorrection) * 1.8) + 32);
if (wxModuleType == 1 || wxModuleType == 3) {
humStr = generateHumString(newHum);
} else if (wxModuleType == 2) {
humStr = "..";
}
//
Serial.print("correccion altura: "); Serial.println(Config.bme.heightCorrection);
//
presStr = generatePresString(newPress + (Config.bme.heightCorrection/CORRECTION_FACTOR));
fifthLine = "BME-> " + String(int(newTemp))+"C " + humStr + "% " + presStr.substring(0,4) + "hPa";
wx = ".../...g...t" + tempStr + "r...p...P...h" + humStr + "b" + presStr;