matthewwall / weewx-sdr

weewx driver for software-defined radio
GNU General Public License v3.0
114 stars 74 forks source link

Wind speed issue with latest rtl #90

Closed n7qnm closed 2 years ago

n7qnm commented 4 years ago

Just downloaded the latest rtl_433 and sdr, I also had to append :"V2" to the Accurite5n1 identifier in weewx.conf

It appears that the wind speed is being reported in KPH, even though I have US Units set

pefribeiro commented 4 years ago

@n7qnm this seems to be a problem with rtl_433 indeed. This is, however, an easy fix, on line 468:

https://github.com/matthewwall/weewx-sdr/blob/fb3f9fe56ad441b30c34dbd75bbd8b5f993814ca/bin/user/sdr.py#L467-L468

Change Packet.get_float(obj, 'wind_avg_km_h') to weewx.units.kph_to_mph(Packet.get_float(obj, 'wind_avg_km_h')).

matthewwall commented 2 years ago

changes have been incorporated into master