Endpoints
ws://ws.weatherflow.com/swd/data
wss://ws.weatherflow.com/swd/data
Request Messages
Request Message | Response Message Types | Description |
---|---|---|
| ack obs_air obs_sky evt_strike evt_precip |
Start listening for all new observations and events for a device_id. Each new observation sent by the Device will be pushed to the client as soon as possible. All Device events will be immediatly pushed. |
| ack | Stop listening for all messages for a Device. |
| ack evt_station_online evt_station_offline |
Start listening for all Station online and offline events. All Station events will be immediatly pushed. |
| ack | Stop listening for all event messages for a Station. |
| ack rapid_wind |
Start listening for rapid 3 second wind data for a Sky Device. |
| ack | Stop listening for rapid data messages for a Device. |
Response Messages
Acknowledgement [type = ack]
{
"type":"ack",
"id":"2098388936"
}
Rain Start Event [type = evt_precip]
{
"type":"evt_precip",
"device_id":1110
}
Lightning Strike Event [type = evt_strike]
{
"type":"evt_strike",
"device_id":1110,
"evt":[1493322445,27,3848]
}
Index | Field | Units |
---|---|---|
0 | Time Epoch | Seconds |
1 | Distance | km |
2 | Energy |
Device Online Event [type = evt_device_online]
{
"type":"evt_device_online",
"device_id":1110
}
Device Offline Event [type = evt_device_offline]
{
"type":"evt_device_offline",
"device_id":1110
}
Station Online Event [type = evt_station_online]
{
"type":"evt_station_online",
"station_id":4582
}
Station Offline Event [type = evt_station_offline]
{
"type":"evt_station_offline",
"station_id":4582
}
Rapid Wind [type = rapid_wind] (3 second interval)
{
"type":"rapid_wind",
"device_id":1110,
"ob":[1493322445,2.3,128]
}
Index | Field | Units |
---|---|---|
0 | Time Epoch | Seconds |
1 | Wind Speed | m/s |
2 | Wind Direction | Degrees |
Observation (Air) [type = obs_air]
{
"type":"obs_air",
"device_id":1110,
"obs":[[1493164835,835.0,10.0,45,0,0,3.46,1]]
}
Index | Field | Units |
---|---|---|
0 | Time Epoch | Seconds |
1 | Station Pressure | MB |
2 | Air Temperature | C |
3 | Relative Humidity | % |
4 | Lightning Strike Count | |
5 | Lightning Strike Avg Distance | km |
6 | Battery | Volts |
7 | Report Interval | Minutes |
Observation (Sky) [type = obs_sky]
{
"type":"obs_sky",
"device_id":1110,
"obs":[[1493321340,9000,10,0.0,2.6,4.6,7.4,187,3.12,1,130,1.034,0,3,0.0,1.011,1]]
}
Index | Field | Units |
---|---|---|
0 | Time Epoch | Seconds |
1 | Illuminance | Lux |
2 | UV | Index |
3 | Rain Accumulated | mm |
4 | Wind Lull (minimum 3 second sample) | m/s |
5 | Wind Avg (average over report interval) | m/s |
6 | Wind Gust (maximum 3 second sample) | m/s |
7 | Wind Direction | Degrees |
8 | Battery | Volts |
9 | Report Interval | Minutes |
10 | Solar Radiation | W/m^2 |
11 | Local Daily Rain Accumulation | mm |
12 | Precipitation Type | 0 = none, 1 = rain, 2 = hail |
13 | Wind Sample Interval | seconds |
14 | Rain Accumulated Final (Rain Check) | mm |
15 | Local Daily Rain Accumulation Final (Rain Check) | mm |
16 | Precipitation Analysis Type | 0 = none 1 = Rain Check with user display on 2 = Rain Check with user display off |
Other Useful Information
- A client should only open one websocket connection.
- A client will be disconnected after 10 minutes of idle time.
- All messages are JSON strings.