matthewwall / weewx-sdr

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

parser for "Fineoffset-WHx080"? #97

Closed W11T closed 3 years ago

W11T commented 3 years ago

Could somebody kindly write a parser for "Fineoffset-WHx080"?

Example: {"time" : "2020-10-13 17:29:10", "model" : "Fineoffset-WHx080", "subtype" : 0, "id" : 228, "battery_ok" : 1, "temperature_C" : 9.600, "humidity" : 82, "wind_dir_deg" : 0, "wind_avg_km_h" : 0.000, "wind_max_km_h" : 0.000, "rain_mm" : 1011.000, "mic" : "CRC"}

This is a WS1080 but the format is different from "Fine Offset WH1080 weather station" and "Fine Offset Electronics WH1080".

andylittle commented 3 years ago

I can take a look at this one.

andylittle commented 3 years ago

new and old messages

{"time" : "2020-10-13 14:04:48", "model" : "Fine Offset Electronics WH1080/WH3080 Weather Station", "msg_type" : 0, "id" : 14, "battery" : "OK", "temperature_C" : 24.400, "humidity" : 35, "direction_deg" : 225, "speed" : 0.000, "gust" : 0.000, "rain" : 41.400, "mic" : "CRC"}

{"time" : "2020-10-13 14:04:48", "model" : "Fineoffset-WHx080", "subtype" : 0, "id" : 14, "battery_ok" : 1, "temperature_C" : 24.400, "humidity" : 35, "wind_dir_deg" : 225, "wind_avg_km_h" : 0.000, "wind_max_km_h" : 0.000, "rain_mm" : 41.400, "mic" : "CRC"}

andylittle commented 3 years ago

@W11T replace your sdr.py file in bin/user/ of your weewx install dir with this one. Then restart weewx.

out:['{"time" : "2020-10-13 21:51:12", "model" : "Fineoffset-WHx080", "subtype" : 0, "id" : 14, "battery_ok" : 1, "temperature_C" : 25.000, "humidity" : 35, "wind_dir_deg" : 225, "wind_avg_km_h" : 0.000, "wind_max_km_h" : 0.000, "rain_mm" : 41.400, "mic" : "CRC"}\n']
parsed: {'dateTime': 1602625872, 'usUnits': 16, 'msg_type.14.FOWHx080Packet': 0, 'temperature.14.FOWHx080Packet': 25.0, 'humidity.14.FOWHx080Packet': 35.0, 'wind_dir.14.FOWHx080Packet': None, 'wind_speed.14.FOWHx080Packet': 0.0, 'wind_gust.14.FOWHx080Packet': 0.0, 'rain_total.14.FOWHx080Packet': 4.14, 'battery.14.FOWHx080Packet': 1, 'signal_type.14.FOWHx080Packet': 0, 'hours.14.FOWHx080Packet': None, 'minutes.14.FOWHx080Packet': None, 'seconds.14.FOWHx080Packet': None, 'year.14.FOWHx080Packet': None, 'month.14.FOWHx080Packet': None, 'day.14.FOWHx080Packet': None}

Andy

W11T commented 3 years ago

@andylittle Thanks for your immediate support!

W11T commented 3 years ago

@andylittle Thanks for your help