On Sat, Jun 28, 2025 at 7:04 PM Graham Eddy <[email protected]> wrote: > as tom indicates, the actual data in the database is in some units we do > not need to care about, all we care about is how the data is presented. > rather than update weewx source code (units.py), just override it in your > ~weewx/$station/bin/user/extensions.py: > > weewx.units.MetricUnits['group_rain'] = 'mm' > > weewx.units.MetricUnits['group_rainrate'] = 'mm_per_hour' > > But in this case, we do care. Alan is trying to change the units in the database, not the display. Your approach would only affect the reports.
A bit of background. WeeWX stores data using a "unit system": a collection of observation types and the unit they are in. The choices are US, METRIC, and METRICWX. METRIC is cm and km/h, METRICWX is mm and m/s. One cannot pick and choose the unit used for individual observation types. See the section *The database <https://www.weewx.com/docs/5.1/custom/introduction/#the-database>* in the manual for details. If I understand you correctly, you want mm for rain, and km/h for wind. Unfortunately, none of the three systems does that. It would require an introduction of a fourth unit system --- a major project. Sorry. -- 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]. To view this discussion visit https://groups.google.com/d/msgid/weewx-user/CAPq0zECKjmZVR4gAZ5BwHh3wd2XyT61Wzg7M6MiJ82vvu68Xnw%40mail.gmail.com.
