Need help adding EcoWitt WH40 rain gauge sensor to weewx

45 views
Skip to first unread message

Helmut Bachmann

unread,
Feb 5, 2020, 10:09:40 AM2/5/20
to weewx-user


As per merbanan/rtl_433#1275 we just finished the process of adding this new Ecowitt WH40 rain gauge sensor to rtl_433 driver.


It now runs fine after updating the driver to the newest version, but I still cannot see the data in weewx.

Here are the details:

  1. Running the driver apart from weewx.
    rtl_433 -M utc -F json
    {"time" : "2020-02-05 12:37:05", "model" : "EcoWitt-WH40", "id" : 52591, "rain_mm" : 0.800, "data" : "0002ed0000", "mic" : "CRC"}

        rtl_433 -M utc
        time : 2020-02-05 12:35:27
        model : EcoWitt-WH40 id : 52591
        Total Rain: 0.8 mm Extra Data: 00027b0000 Integrity : CRC

     

(The 0.8mm just represents some manual tips of the rain bucket)

  1. Then I added a line to the sensor map (where I have already other sensors reporting)

"rain_total = rain_total.52591.EcoWittWH40Packet"

Running weewx in debug mode and reporting unmapped and unrecognized sensors, I get this message:
Feb 5 10:13:05 raspberrypi weewx[14245]: sdr: MainThread: parse_json: unknown model EcoWitt-WH40
Feb 5 10:13:05 raspberrypi weewx[14245]: sdr: MainThread: punt unrecognized line '{"time" : "2020-02-05 13:13:01", "model" : "EcoWitt-WH40", "id" : 52591, "rain_mm" : 0.800, "data" : "0002de0000", "mic" : "CRC"}#12'


I'd appreciate your help in understanding what else needs to be done for Weewx to recognize this new sensor (how to overcome the "unrecognized model..." and "unrecognized line..." messages), and/or any modification to the sensor map line, but surely once we see an "unparsed..." message we will be able to use the right naming for the sensor map definition.


Thanks in advance!
Best regards,
Helmut

mwall

unread,
Feb 6, 2020, 10:16:17 AM2/6/20
to weewx-user
support for the fine offset (ecowitt) rain gauge was added in weewx-sdr 0.77

Reply all
Reply to author
Forward
0 new messages