WeatherFlow Smart Weather UDP Reference - v43

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

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,
	  "freq": 906000000
	}

Sensor Status (sensor_status) is an encoded enumeration as follows

Hex ValueApplies to deviceStatus description
0x00000000AllSensors OK
0x00000001AIRlightning failed
0x00000002AIRlightning noise
0x00000004AIRlightning disturber
0x00000008AIRpressure failed
0x00000010AIRtemperature failed
0x00000020AIRrh failed
0x00000040SKYwind failed
0x00000080SKYprecip failed
0x00000100SKYlight/uv failed

debug

ValueDescription
0Debugging is disabled
1Debugging is enabled

freq

Device frequency.

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",
	  "stack": "1616,1608",
	  "seq": 48,
	  "fs": "0,0"
	}

Reset Flag Values

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

stack

For internal use.

fs

For internal use.