mqtt2prometheus
mqtt2prometheus copied to clipboard
Add Qingping Air Monitor Lite example
trafficstars
The Qingping data format is quite hard to guess, because of an array in the middle:
{
"type": "17",
"id": 641,
"need_ack": 0,
"mac": "**REDACTED**",
"timestamp": 1748860948,
"sensorData": [
{
"timestamp": { "value": 1748860920 },
"temperature": { "value": 25.72 },
"humidity": { "value": 40.39 },
"co2": { "value": 570 },
"pm25": { "value": 168 },
"pm10": { "value": 170 },
"battery": { "value": 100 }
}
]
}
I spent several hours debugging until I notices that sensorData is an array.
The sensor is quite popular, and there's a verdor-supported MQTT integration, so I believe it should be present ad an example.