Recent download and install of the RTL_433 driver added "_mph" to
"wind_speed" and "_inch" to the unused "rainfall_accumulation".
Do you try to add multiple if statements to the SDR driver to catch this or
do you just update the SDR driver on Git. Pull Request created
.
packet
"model" : "Acurite 5n1 sensor", "sensor_id" : 2662, "channel" : "A",
"sequence_num" : 2, "battery" : "OK", "message_type" : 49, "wind_speed_mph"
: 0.000, "wind_dir_deg" : 135.000, "wind_dir" : "SE",
"rainfall_accumulation_inch" : 0.000, "raincounter_raw" : 421}\n'
"model" : "Acurite 5n1 sensor", "sensor_id" : 2662, "channel" : "A",
"sequence_num" : 2, "battery" : "OK", "message_type" : 49, "wind_speed" :
0.000, "wind_dir_deg" : 135.000, "wind_dir" : "SE", "rainfall_accumulation"
: 0.090, "raincounter_raw" : 421}\n'
"model" : "Acurite 5n1 sensor", "sensor_id" : 2662, "channel" : "A",
"sequence_num" : 1, "battery" : "OK", "message_type" : 56, "wind_speed_mph"
: 0.000, "temperature_F" : 46.600, "humidity" : 76}\n'
"model" : "Acurite 5n1 sensor", "sensor_id" : 2662, "channel" : "A",
"sequence_num" : 1, "battery" : "OK", "message_type" : 56, "wind_speed" :
2.164, "temperature_F" : 78.800, "humidity" : 20}\n
diff of fix
if msg_type == 49: # 0x31
- pkt['wind_speed'] = Packet.get_float(obj, 'wind_speed') # mph?
+ pkt['wind_speed'] = Packet.get_float(obj, 'wind_speed_mph') #
mph?
pkt['wind_dir'] = Packet.get_float(obj, 'wind_dir_deg')
pkt['rain_counter'] = Packet.get_int(obj, 'raincounter_raw')
elif msg_type == 56: # 0x38
- pkt['wind_speed'] = Packet.get_float(obj, 'wind_speed') # mph?
+ pkt['wind_speed'] = Packet.get_float(obj, 'wind_speed_mph') #
mph?
--
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].
For more options, visit https://groups.google.com/d/optout.