WeatherFlow Smart Weather UDP Reference - v119

No UDP changes since 114

UDP Basics

The WeatherFlow Smart Weather Station's hub broadcasts UDP messages over port 50222 on the local network.

Messages

Rain Start Event [type = evt_precip]

	
	{
	  "serial_number": "SK-00008453",
	  "type":"evt_precip",
	  "hub_sn": "HB-00000001",
	  "evt":[1493322445]
	}

	

Evt Value Layout

IndexFieldUnits
0Time EpochSeconds

Lightning Strike Event [type = evt_strike]

	
	{
	  "serial_number": "AR-00004049",
	  "type":"evt_strike",
	  "hub_sn": "HB-00000001",
	  "evt":[1493322445,27,3848]
	}


	

Evt Value Layout

IndexFieldUnits
0Time EpochSeconds
1Distancekm
2Energy

Rapid Wind [type = rapid_wind]

	
	{
	  "serial_number": "SK-00008453",
	  "type":"rapid_wind",
	  "hub_sn": "HB-00000001",
	  "ob":[1493322445,2.3,128]
	}


	

Ob Value Layout

IndexFieldUnits
0Time EpochSeconds
1Wind Speedmps
2Wind DirectionDegrees

Observation (AIR) [type = obs_air]

	
	{
	  "serial_number": "AR-00004049",
	  "type":"obs_air",
	  "hub_sn": "HB-00000001",
	  "obs":[[1493164835,835.0,10.0,45,0,0,3.46,1]],
	  "firmware_revision": 17
	}


	

Observation Value Layout

IndexFieldUnits
0Time EpochSeconds
1Station PressureMB
2Air TemperatureC
3Relative Humidity%
4Lightning Strike Count
5Lightning Strike Avg Distancekm
6Battery
7Report IntervalMinutes

Observation (Sky) [type = obs_sky]

	
	{
	  "serial_number": "SK-00008453",
	  "type":"obs_sky",
	  "hub_sn": "HB-00000001",
	  "obs":[[1493321340,9000,10,0.0,2.6,4.6,7.4,187,3.12,1,130,null,0,3]],
	  "firmware_revision": 29
	}


	

Observation Value Layout

IndexFieldUnits
0Time EpochSeconds
1IlluminanceLux
2UVIndex
3Rain Accumulatedmm
4Wind Lull (minimum 3 second sample)m/s
5Wind Avg (average over report interval)m/s
6Wind Gust (maximum 3 second sample)m/s
7Wind DirectionDegrees
8BatteryVolts
9Report IntervalMinutes
10Solar RadiationW/m^2
11Local Day Rain Accumulationmm
12Precipitation Type0 = none, 1 = rain, 2 = hail
13Wind Sample Intervalseconds

Observation (Tempest) [type = obs_st]

	
    {
        "serial_number": "ST-00000512",
        "type": "obs_st",
        "hub_sn": "HB-00013030",
        "obs": [
            [1588948614,0.18,0.22,0.27,144,6,1017.57,22.37,50.26,328,0.03,3,0.000000,0,0,0,2.410,1]
        ],
        "firmware_revision": 129
    }

	

Observation Value Layout

IndexFieldUnits
0Time EpochSeconds
1Wind Lull (minimum 3 second sample)m/s
2Wind Avg (average over report interval)m/s
3Wind Gust (maximum 3 second sample)m/s
4Wind DirectionDegrees
5Wind Sample Intervalseconds
6Station PressureMB
7Air TemperatureC
8Relative Humidity%
9IlluminanceLux
10UVIndex
11Solar RadiationW/m^2
12Precip Accumulatedmm
13Precipitation Type0 = none, 1 = rain, 2 = hail
14Lightning Strike Avg Distancekm
15Lightning Strike Count
16BatteryVolts
17Report IntervalMinutes

Status (device) [type = device_status]

	{
	  "serial_number": "AR-00004049",
	  "type": "device_status",
	  "hub_sn": "HB-00000001",
	  "timestamp": 1510855923,
	  "uptime": 2189,
	  "voltage": 3.50,
	  "firmware_revision": 17,
	  "rssi": -17,
	  "hub_rssi": -87
	  "sensor_status": 0,
	  "debug": 0
	}

Sensor Status (sensor_status) is a set of bit flags, encoded in a single decimal value, each bit represents the following

Binary ValueApplies to deviceStatus description
0b000000000AllSensors OK
0b000000001AIR, Tempestlightning failed
0b000000010AIR, Tempestlightning noise
0b000000100AIR, Tempestlightning disturber
0b000001000AIR, Tempestpressure failed
0b000010000AIR, Tempesttemperature failed
0b000100000AIR, Tempestrh failed
0b001000000SKY, Tempestwind failed
0b010000000SKY, Tempestprecip failed
0b100000000SKY, Tempestlight/uv failed

debug

ValueDescription
0Debugging is disabled
1Debugging is enabled

Status (hub) [type = hub_status]

	{
	  "serial_number":"HB-00000001",
	  "type":"hub_status",
	  "firmware_revision":"35",
	  "uptime":1670133,
	  "rssi":-62,
	  "timestamp":1495724691,
	  "reset_flags": "BOR,PIN,POR",
	  "seq": 48,
	  "fs": [1, 0, 15675411, 524288],
          "radio_stats": [2, 1, 0, 3],
          "mqtt_stats": [1, 0]
	}

Reset Flag Values

ValueDescription
BORBrownout reset
PINPIN reset
PORPower reset
SFTSoftware reset
WDGWatchdog reset
WWDWindow watchdog reset
LPWLow-power reset

fs

For internal use.

radio_stats

IndexField
0Version
1Reboot Count
2I2C Bus Error Count
3Radio Status (0 = Radio Off, 1 = Radio On, 3 = Radio Active)

mqtt_stats

For internal use.