What format is tempest’s historical data in API?
Question:
If I visit the tempest API (historical) at say
https://swd.weatherflow.com/swd/rest/stats/device/291045?api_key=...&build=...&token=...etc...
I get a response like this:
{
"device_id": XXXXXX,
"type": "device_stats_st",
"first_ob_day_local": "YYYY-MM-DD",
"last_ob_day_local": "YYYY-MM-DD",
"stats_day": [
[
"YYYY-MM-DD",
977.4,
978.4,
976.5,
27.8,
33.5,
23,
58,
72,
41,
22746,
119657,
0,
2,
10.79,
0,
190,
997,
0,
1.2,
4.91,
0,
2,
3,
0,
null,
751,
2.7,
6.19345,
0.130062,
12,
12,
2,
1
],
[
"YYYY-MM-DD",
985.7,
988.2,
978.3,
27.2,
33.6,
21,
70,
82,
54,
35558,
115046,
0,
3.3,
10.57,
0,
296,
959,
0,
1.6,
4.85,
0,
63,
3,
0,
null,
1433,
2.7,
0,
0,
0,
0,
0,
0
]
]
}
But my question is, what is each number? I see for UDP docs that the data for it is formatted like
Index | Field | Units |
---|---|---|
0 | Time Epoch | Seconds |
1 | Wind Lull (minimum 3 second sample) | m/s |
2 | Wind Avg (average over report interval) | m/s |
3 | Wind Gust (maximum 3 second sample) | m/s |
4 | Wind Direction | Degrees |
5 | Wind Sample Interval | seconds |
6 | Station Pressure | MB |
7 | Air Temperature | C |
8 | Relative Humidity | % |
9 | Illuminance | Lux |
10 | UV | Index |
11 | Solar Radiation | W/m^2 |
12 | Rain amount over previous minute | mm |
13 | Precipitation Type | 0 = none, 1 = rain, 2 = hail, 3 = rain + hail (experimental) |
14 | Lightning Strike Avg Distance | km |
15 | Lightning Strike Count | |
16 | Battery | Volts |
17 | Report Interval | Minutes |
https://weatherflow.github.io/Tempest/api/udp/v171/
So what is each number in the historical version? Is it each one’s high and low, is it in the same order, etc. See below:
Thanks in advance!