mirror of
https://github.com/weewx/weewx.git
synced 2026-06-10 10:05:20 -04:00
fix wind speed conversion
This commit is contained in:
@@ -1281,9 +1281,9 @@ class Station(object):
|
||||
pkt = dict()
|
||||
pkt['ts'] = Station._extract_ts(buf[2:7])
|
||||
pkt['channel'] = buf[7]
|
||||
pkt['wind_gust'] = Station._extract_value(buf[8:10], 0.36) # km/hr
|
||||
pkt['wind_gust'] = Station._extract_value(buf[8:10], 0.1) # m/s
|
||||
pkt['wind_gust_dir'] = Station._extract_value(buf[10:12], 1.0) # degree
|
||||
pkt['wind_avg'] = Station._extract_value(buf[12:14], 0.36) # km/hr
|
||||
pkt['wind_avg'] = Station._extract_value(buf[12:14], 0.1) # m/s
|
||||
pkt['wind_avg_dir'] = Station._extract_value(buf[14:16], 1.0) # degree
|
||||
pkt['wind_dir'] = Station._extract_heading(buf[16:18])
|
||||
return pkt
|
||||
|
||||
Reference in New Issue
Block a user