Perhaps not in the exact words of this issue, but the Customising units and unit group section <http://weewx.com/docs/customizing.htm#customizing_units> in the Customisation Guide covers pretty much everything in this thread.
Gary On Thursday, 30 March 2023 at 06:33:45 UTC+10:30 vince wrote: > Wow - I never put the pieces together in my brain before. Thanks for > replying with what you did rather than just "solved". > > Anybody willing to volunteer adding a brief wiki page for this one ? It > seems like a great example to use for mapping something to a particular > units group, as well as editing the string format. > > > On Wednesday, March 29, 2023 at 12:42:32 PM UTC-7 Wayne Rademacher wrote: > > Here are the required changes: > I added this to extensions.py as suggested by an oldman and Karen K > */usr/share/weewx/user extensions.py* > > *import weewx.units* > > *weewx.units.obs_group_dict['windBatteryStatus'] = > ''group_volt'weewx.units.obs_group_dict['luminosity'] = 'group_illuminance'* > > I changed the [[stringformats]] in the belchertown skin.conf to get the > right amount of digits. > * [[StringFormats]]* > * #volt = %.1f* > * volt = %.2f* > > -- 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 on the web visit https://groups.google.com/d/msgid/weewx-user/fa653d5a-08cd-473f-af91-161b296c8a2cn%40googlegroups.com.
