Commit 2c1d9399 authored by Nelso Jost's avatar Nelso Jost

FIX workaround for using sensor nicknames

parent 13e998e8
......@@ -314,11 +314,15 @@ String Meteorologger::generate_json(void)
root_datetime["format"] = String(this->datetime_format);
root_datetime["source"] = "RTC";
}
else if (sensor_name == "T")
else if (sensor_name == "t")
{
root_sensors["DHT22_TEMP"] = value;
}
else if (sensor_name == "t")
else if (sensor_name == "ah")
{
root_sensors["DHT22_AH"] = value;
}
else if (sensor_name == "T")
{
root_sensors["BMP085_TEMP"] = value;
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment