Skip to content

Instantly share code, notes, and snippets.

@PaulGoldschmidt
Created May 25, 2024 18:24
Show Gist options
  • Save PaulGoldschmidt/f509a1cf58de5d620af60309faf1d11f to your computer and use it in GitHub Desktop.
Save PaulGoldschmidt/f509a1cf58de5d620af60309faf1d11f to your computer and use it in GitHub Desktop.
Demo JSON Awnser (prettified) of Qingping API.
{
"total": 1,
"devices": [
{
"info": {
"mac": "YOUR_MAC_ADRESS",
"product": {
"id": 1203,
"code": "CGDN1",
"name": "青萍空气检测仪 Lite",
"en_name": "Qingping Air Monitor Lite",
"noBleSetting": false
},
"name": "Bedroom Air Monitor",
"version": "4.8.5",
"created_at": 1716656370,
"group_id": 0,
"group_name": "",
"status": {
"offline": false
},
"connection_type": "WiFi",
"setting": {
"report_interval": 900,
"collect_interval": 900
}
},
"data": {
"timestamp": {
"value": 1716657300
},
"battery": {
"value": 82
},
"temperature": {
"value": 27.1
},
"humidity": {
"value": 53.8
},
"co2": {
"value": 504
},
"pm25": {
"value": 7
},
"pm10": {
"value": 7
}
}
}
]
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment