I had previously looked through the customization guide but failed to 
realize the usefulness of the information.    After working through this 
practical exercise, I revisited the customization guide and a light bulb 
came on!    I now have a much better understanding of the weewx 
customization innerworkings.

Perhaps this exercise will help others that are struggling with system 
customization.

Wayne
On Wednesday, March 29, 2023 at 6:51:25 PM UTC-5 gjr80 wrote:

> 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/92fc84ad-b91a-481f-b684-8a2983f12041n%40googlegroups.com.

Reply via email to