feat: StationMapper maps getstationsdata to outdoor/indoor/rain
Co-Authored-By: Claude Fable 5.1 <noreply@anthropic.com>
This commit is contained in:
Vendored
+116
@@ -0,0 +1,116 @@
|
||||
{
|
||||
"body": {
|
||||
"devices": [
|
||||
{
|
||||
"_id": "70:ee:50:00:00:01",
|
||||
"type": "NAMain",
|
||||
"station_name": "Thuis",
|
||||
"module_name": "Woonkamer",
|
||||
"reachable": true,
|
||||
"firmware": 204,
|
||||
"wifi_status": 50,
|
||||
"co2_calibrating": false,
|
||||
"place": {
|
||||
"altitude": 20,
|
||||
"city": "Voorbeeldstad",
|
||||
"country": "DE",
|
||||
"timezone": "Europe/Berlin",
|
||||
"location": [
|
||||
6.55,
|
||||
51.82
|
||||
]
|
||||
},
|
||||
"dashboard_data": {
|
||||
"time_utc": 1789129812,
|
||||
"Temperature": 21.3,
|
||||
"CO2": 612,
|
||||
"Humidity": 48,
|
||||
"Noise": 38,
|
||||
"Pressure": 1014.2,
|
||||
"AbsolutePressure": 1011.8,
|
||||
"min_temp": 20.4,
|
||||
"max_temp": 22.1,
|
||||
"date_max_temp": 1789126800,
|
||||
"date_min_temp": 1789098600,
|
||||
"temp_trend": "stable",
|
||||
"pressure_trend": "up"
|
||||
},
|
||||
"modules": [
|
||||
{
|
||||
"_id": "02:00:00:00:00:01",
|
||||
"type": "NAModule1",
|
||||
"module_name": "Buiten",
|
||||
"reachable": true,
|
||||
"battery_percent": 71,
|
||||
"rf_status": 70,
|
||||
"dashboard_data": {
|
||||
"time_utc": 1789129780,
|
||||
"Temperature": 16.4,
|
||||
"Humidity": 71,
|
||||
"min_temp": 9.2,
|
||||
"max_temp": 19.8,
|
||||
"date_min_temp": 1789099800,
|
||||
"date_max_temp": 1789124700,
|
||||
"temp_trend": "down"
|
||||
}
|
||||
},
|
||||
{
|
||||
"_id": "03:00:00:00:00:02",
|
||||
"type": "NAModule4",
|
||||
"module_name": "Slaapkamer",
|
||||
"reachable": true,
|
||||
"battery_percent": 64,
|
||||
"rf_status": 66,
|
||||
"dashboard_data": {
|
||||
"time_utc": 1789129680,
|
||||
"Temperature": 18.9,
|
||||
"CO2": 540,
|
||||
"Humidity": 52,
|
||||
"min_temp": 18.1,
|
||||
"max_temp": 19.6,
|
||||
"date_min_temp": 1789101000,
|
||||
"date_max_temp": 1789120800,
|
||||
"temp_trend": "up"
|
||||
}
|
||||
},
|
||||
{
|
||||
"_id": "03:00:00:00:00:03",
|
||||
"type": "NAModule4",
|
||||
"module_name": "Kantoor",
|
||||
"reachable": false,
|
||||
"battery_percent": 5,
|
||||
"rf_status": 90
|
||||
},
|
||||
{
|
||||
"_id": "05:00:00:00:00:04",
|
||||
"type": "NAModule3",
|
||||
"module_name": "Regenmeter",
|
||||
"reachable": true,
|
||||
"battery_percent": 80,
|
||||
"rf_status": 68,
|
||||
"dashboard_data": {
|
||||
"time_utc": 1789129780,
|
||||
"Rain": 0,
|
||||
"sum_rain_1": 0,
|
||||
"sum_rain_24": 2.4
|
||||
}
|
||||
}
|
||||
]
|
||||
}
|
||||
],
|
||||
"user": {
|
||||
"mail": "x@example.org",
|
||||
"administrative": {
|
||||
"lang": "nl-NL",
|
||||
"reg_locale": "nl-NL",
|
||||
"unit": 0,
|
||||
"windunit": 0,
|
||||
"pressureunit": 0,
|
||||
"feel_like_algo": 0
|
||||
}
|
||||
}
|
||||
},
|
||||
"status": "ok",
|
||||
"time_exec": 0.05,
|
||||
"time_server": 1789129925
|
||||
}
|
||||
Reference in New Issue
Block a user