matthewwall / weewx-interceptor

weewx driver that intercepts web traffic from internet 'bridge' devices such as Acurite Access, ObserverIP, OS LW30x, LaCross GW1000U, FineOffset GW1000
GNU General Public License v3.0
105 stars 44 forks source link

LW301 reporting rain in inches rather than mm #31

Closed elandant closed 5 years ago

elandant commented 6 years ago

I have set up an Oregon LW301 attached to temp/humidity/barometer, wind and rain sensors and run weewx interceptor in listen mode. I am successfully reporting data to Wunderground but after rain yesterday and overnight, the figures seem drastically under-reported - 0.79mm for today when we've actually had just under 20mm since midnight according to the Oregon base station.

Looking at the logs in debug mode it looks like the rain rate being captured from the Oregon would correlate with inches rather than mm. A conversion of the 0.79 accumulated that has been reported to Wunderground from inches to mm is quite accurate.

Is the interceptor doing any conversion or is the problem likely to lie in weewx / my settings? Weewx is configured as metric from setup, but [StdConvert] target_unit = US. All other reported values to Wunderground outside of rainfall/rain rate are accurate.

lonnavale_-_blackwood_farm_weather___personal_weather_station__itasmani258_by_wunderground_com___weather_underground
matthewwall commented 6 years ago

do your wind values look ok? you'll have to look at wind speeds that are greater than 10 miles per hour to be able to tell. i would not be surprised if the sensors report values in different unit systems.

as of weewx-interceptor v0.41, the packets are treated as METRICWX, which means temperatures in C, wind speeds in m/s, and rainfall in mm.

run weewx directly (e.g., weewxd /etc/weewx/weewx.conf) so that you can see the LOOP data directly. then tip the bucket a single time. see what is reported in a single LOOP packet.

matthewwall commented 5 years ago

fixed at commit 8b4f3a9

apparently OS uses inches for rain, m/s for wind speeds, and C for temperatures. this seems to match the units reported by wmr300, wmr100, and wmr200 hardware.