--
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 weewx-user+...@googlegroups.com.
To view this discussion visit https://groups.google.com/d/msgid/weewx-user/5ea87391-6ea4-45c7-be7c-53ef2049c5f4n%40googlegroups.com.
weewx.units.MetricUnits['group_rain'] = 'mm'
weewx.units.MetricUnits['group_rainrate'] = 'mm_per_hour'
To view this discussion visit https://groups.google.com/d/msgid/weewx-user/CAPq0zECxQERh25vU7CtN%2B4Pfvj_Z2-dmYBZY9RQfLj8yVRngCw%40mail.gmail.com.
import weewx.units
To view this discussion visit https://groups.google.com/d/msgid/weewx-user/ac0512ba-ac24-42d0-8db5-df7db289661an%40googlegroups.com.
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'