gjr80 / weewx-gw1000

A WeeWX driver based on the Ecowitt LAN/Wi-Fi Gateway API
GNU General Public License v3.0
61 stars 9 forks source link

Help with non-GW1000 rain gauge #49

Closed lordratner closed 2 years ago

lordratner commented 2 years ago

Hello, thanks for all the work that went into this driver.

I have a WS-80 (no rain measuring). I'm using a simple two wire tipping bucket gauge for rain measurement, and I wrote a service to capture the tips and inject them into the loop. The service is correctly capturing the number of tips, converting it to rain amount (each tip is .01 inches), and adding it to the packet. The code for the service is here: https://github.com/lordratner/weewx_gpio_raingauge/blob/main/gpio_rain_service.py

With the simulator driver all I had to do was comment out the 'rain' : line and weewx would use my value.

With the GW1000 driver however there are many, many instances that deal with rain in the driver code, and I'm not sure which to disable to allow mine to work. Without changing anything, a .01 per tip value passed from my service is translated into 0.00039370078740157485 per tip. The number of tips is passing correctly (each tip adds 0.00039370078740157485 to the "rain" value in the loop), but I'm not sure what is changing it from .01 to 0.00039370078740157485.

Any suggestions? Thanks!

lordratner commented 2 years ago

Some more info using debug_rain:

Dec 3 12:36:09 raspberrypi weewx[1125] DEBUG user.gw1000: Next update in 20 seconds Dec 3 12:36:09 raspberrypi weewx[1125] INFO user.gw1000: Received GW1100 data: no rain data found Dec 3 12:36:09 raspberrypi weewx[1125] INFO user.gw1000: No suitable field found for rain total Dec 3 12:36:09 raspberrypi weewx[1125] INFO user.gw1000: Mapped GW1100 data: no rain data found Dec 3 12:36:09 raspberrypi weewx[1125] INFO user.gw1000: Packet 2021-12-03 12:36:09 CST (1638556569): no rain data found

So I think all this tells me is that the GW1100 isn't getting rain information from the WS-80, which makes sense.

But what is then taking my .01 from the service and turning it into 0.00039370078740157485?

lordratner commented 2 years ago

Sorry all, I figured it out. My service needed to use mm instead of inches.