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]
Rain Start Event [type = evt_precip]
Lightning Strike Event [type = evt_strike]
Index | Field | Units |
---|---|---|
0 | Time Epoch | Seconds |
1 | Distance | km |
2 | Energy |
Device Online Event [type = evt_device_online]
Device Offline Event [type = evt_device_offline]
Station Online Event [type = evt_station_online]
Station Offline Event [type = evt_station_offline]
Rapid Wind [type = rapid_wind] (3 second interval)
Index | Field | Units |
---|---|---|
0 | Time Epoch | Seconds |
1 | Wind Speed | m/s |
2 | Wind Direction | Degrees |
Observation (Air) [type = obs_air]
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]
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.