WeatherFlow Smart Weather UDP Reference - v105

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 amount over previous minutemm
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

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

any bits above 0b100000000 are reserved for internal use and should be ignored

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": "0,0",
          "radio_stats": [1, 1, 0],
          "mqtt_stats": [1]
	}

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

mqtt_stats

For internal use.