matthewwall / weewx-sdr

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

Bresser-5in1: deal with new rtl_433 output fields #85

Closed millallo closed 3 years ago

millallo commented 4 years ago

Bresser5in1 decoding has been fixed recently by this PR on rtl_433 project: https://github.com/merbanan/rtl_433/pull/1353 Here is the patch to make weewx-sdr deal with new json output: {"time" : "2020-05-18 13:58:52", "model" : "Bresser-5in1", "id" : 182, "battery_ok" : 1, "temperature_C" : 28.000, "humidity" : 52, "wind_max_m_s" : 0.000, "wind_avg_m_s" : 0.200, "wind_dir_deg" : 0.000, "rain_mm" : 10.800, "mic" : "CHECKSUM"}

_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
time      : 2020-05-18 16:00:04
model     : Bresser-5in1 id        : 182
Battery   : 1            Temperature: 28.2 C       Humidity  : 53            Wind Gust : 0.8 m/s       Wind Speed: 0.6 m/s       Direction : 315.0 °      Rain      : 10.8 mm
Integrity : CHECKSUM
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
time      : 2020-05-18 16:00:04
model     : BRESSER      count     : 1             num_rows  : 1             rows      :
len       : 282          data      : 0155555555545ba9ce92ffee3ff3defbfb59ef3dfe316d0011c00c210404a610c200000
codes     : {282}0155555555545ba9ce92ffee3ff3defbfb59ef3dfe316d0011c00c210404a610c200000
matthewwall commented 3 years ago

changes incorporated into pending releaes 26oct2021