Can't we just modify the class Acurite5n1PacketV2(Packet) in the sdr.py to 
reflect the correct units? Adding the conversion of 1 kph is equal to 
0.6214 mph. So the following should work:

if 'wind_avg_km_h' in obj:
            pkt['wind_speed'] = Packet.get_float(obj, 'wind_avg_km_h') 
* 0.6214
elif 'wind_avg_mi_h' in obj:
            pkt['wind_speed'] = Packet.get_float(obj, 'wind_avg_mi_h')



If this isn't the right approach let me know. I've had to modify quite a 
bit in the sdr.py already. Namely the rain packet. I had to change it from 
"rain_mm" to "rain_in".

On Friday, July 3, 2020 at 1:21:34 AM UTC-4, Gazza wrote:
>
>
> As mentioned in a couple of threads there have been a lot of recent 
> changes to naming in rtl_433 which has broken sdr.py. These changes are 
> listed in a couple of places on the rtl_433 github and were first 
> introduced over a year ago and now seem to be the default withe current 
> version of rtl_433.
>
> https://github.com/merbanan/rtl_433/pull/1019
> https://github.com/merbanan/rtl_433/pull/986
>
> There is a -M switch to use the old style naming conventions but now that 
> new names are default that may not remain for long and probably best to 
> wait till Matt updates sdr.py. 
>
>
> The other Gary
>

-- 
You received this message because you are subscribed to the Google Groups 
"weewx-user" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To view this discussion on the web visit 
https://groups.google.com/d/msgid/weewx-user/64a82fb9-8c51-40a5-b565-1be409d1e224o%40googlegroups.com.

Reply via email to