trekawek / air-quality-info

An attractive way to display air quality in your neighbourhood.
Other
49 stars 16 forks source link

Temperature and humidity stoped showing up after replacing sensor #104

Closed piotrmocko closed 1 year ago

piotrmocko commented 1 year ago

I had BME280 temperature, humidity, and pressure sensor. Lately, it started reporting a negative temperature of -143. I have replaced it with DHT22 sensor. Now, valid data are sent by the device. But they don't show up on the page

Data received by aqi.eco

image

{
  "esp8266id": "4011675",
  "software_version": "NRZ-2020-133",
  "sensordatavalues": [
    {
      "value_type": "SDS_P1",
      "value": "44.88"
    },
    {
      "value_type": "SDS_P2",
      "value": "25.17"
    },
    {
      "value_type": "temperature",
      "value": "3.20"
    },
    {
      "value_type": "humidity",
      "value": "99.90"
    },
    {
      "value_type": "samples",
      "value": "4964080"
    },
    {
      "value_type": "min_micro",
      "value": "28"
    },
    {
      "value_type": "max_micro",
      "value": "20070"
    },
    {
      "value_type": "interval",
      "value": "145000"
    },
    {
      "value_type": "signal",
      "value": "-70"
    }
  ]
}

image

trekawek commented 1 year ago

DHT22 is normally used in the Nettigo Air Monitor to measure the temperature of the heater. That's why it's visible under heater_temperature in the visible data.

You can change the device configuration to use this field as the main temperature, by adding a custom field mapping:

Screenshot 2023-01-19 at 09 35 40
piotrmocko commented 1 year ago

Thanks, it works