At risk of being over pedantic it is also possible that the bucket size is actually .01 inch and the .3 mm 'quoted' in the device's manual is in itself a metric approximation to one decimal place. Have you actually checked/verified the size of the bucket - not that I can work out how to do that myself?? It seems to me that most buckets appear to natively measure in imperial units after googling for a while.
On Wednesday, 3 January 2018 15:50:45 UTC+2, Tom Keffer wrote: > Right now, WeeWX reports rain in inches (as required by the WU PWS > protocol) to two decimal places. That is, in increments of 0.01 inches. > They cannot accept rain in metric units. > > Try temporarily increasingly the formatting to three decimal places and > see if that helps. Find the file weewx/restx.py. It appears that you used > the Debian install method, so it most likely is located at > /usr/share/weewx/weewx/restx.py. Then change this (around line 804): > > 'dewpoint' : 'dewptf=%.1f', > > 'hourRain' : 'rainin=%.2f', > > 'dayRain' : 'dailyrainin=%.2f', > > 'radiation' : 'solarradiation=%.2f', > to this > > 'dewpoint' : 'dewptf=%.1f', > > 'hourRain' : 'rainin=%.3f', > > 'dayRain' : 'dailyrainin=%.3f', > > 'radiation' : 'solarradiation=%.2f', > > -tk > > On Wed, Jan 3, 2018 at 2:32 AM, David Gardner <[email protected] > <javascript:>> wrote: > >> Hi, >> I'm running 3.8.0-1, with a WH-3080 (rain in 0.3mm increments) outside >> unit. (inside the console died..). My database is in metric and has good >> data. >> I've just noticed that the rain data on wunderground (in metric) looks >> like someone can't do maths: >> >> one bucket-tip -> 0.3mm (correct) >> two buckets-tip -> 0.5mm (eh?) >> >> I was about to moan at wunderground for inaccurate conversions and >> rounding, but investigating further I've seen that weewx is reporting the >> rain in 0.01 inch increments, so it's not >> their fault at all. Does wunderground accept metric rain data, and if so >> what do I need to change to send that? Alternatively, where do I tweak the >> format strings to upload >> more precise data? >> >> At the moment it looks like weewx is reporting 0.254mm per bucket-tip >> instead of 0.3mm, and so under-reporting the rain by 16%. >> I guess a similar problem is happening to the pressure too, that is >> strangely quantized. >> >> David >> >> >> >> >> >> >> >> -- >> You received this message because you are subscribed to the Google Groups >> "weewx-user" group. >> To unsubscribe from this group and stop receiving emails from it, send an >> email to [email protected] <javascript:>. >> For more options, visit https://groups.google.com/d/optout. >> > > -- You received this message because you are subscribed to the Google Groups "weewx-user" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. For more options, visit https://groups.google.com/d/optout.
