sensebox / openSenseMap

Platform for storing and exploring sensor data
https://opensensemap.org
MIT License
99 stars 51 forks source link

Sensors not updated when data is sent in multiple payloads #481

Open proffalken opened 6 months ago

proffalken commented 6 months ago

Expected Behavior

When I send a payload that has one set of sensor data in it, and another payload that has other data in it, I expect previous value to be retained

Actual Behavior

I have a ESP32 Pax Counter working via the TTN integration.

I have already logged https://github.com/sensebox/ttn-osem-integration/issues/54 for this against that repo, however I am not sure if this is an issue with the TTN integration or the main site.

The PAX Counter sends two payloads:

  1. WiFi/BLE Device counts, PM10, PM2.5
  2. Temperature, Humidity, Air Pressure, VOC (from a BME680)

Because the second payload is sent directly after the first, the sensor values for PM10, PM2.5, and BLE/WiFi are always zero

I would expect the sensor to not get updated unless there is a value passed for that sensor.

Environment