Dashboard API
Получить сводные данные для дашборда
{
"statistics": {
"total_devices": 5,
"active_devices": 4,
"readings_last_24h": 17280,
"recent_dos_ip": "192.168.1.105"
},
"system_average_temperature_chart": {
"labels": [
"2023-10-27T09:00:00Z",
"2023-10-27T10:00:00Z"
],
"data": [
36.15,
36.32
]
},
"devices": [
{
"ip_address": "192.168.1.101",
"last_seen": "2023-10-27T10:05:00Z",
"status": "active",
"latest_reading": {
"timestamp": "2023-10-27T10:05:00Z",
"contact_temp": 36.5,
"non_contact_temp": 35.8
}
},
{
"ip_address": "192.168.1.102",
"last_seen": "2023-10-27T08:30:00Z",
"status": "inactive",
"latest_reading": {
"timestamp": "2023-10-27T08:30:00Z",
"contact_temp": 37.1,
"non_contact_temp": 36.4
}
}
]
}Описание структуры ответа
Last updated