Ignore that question - I worked it out from the advice you gave and added 
it to the main belchertown.py script as below.

Many thanks for your help and swift response.

#Extend dictionary for battery percent observations
weewx.units.obs_group_dict['rainBatteryStatus'] = 'group_percent'
weewx.units.obs_group_dict['windBatteryStatus'] = 'group_percent'
weewx.units.obs_group_dict['outTempBatteryStatus'] = 'group_percent'
#end

Gav
On Tuesday 9 July 2024 at 15:13:05 UTC+1 Wiggytoo wrote:

> Many thanks - will take a look in more detail, for observation types that 
> come directly from the Netatmo driver (i.e. I don't have an equivalent  
> user/electricity.py would I just assign the main skin.py file?
>
> Regards,
> Gav
>
> On Tuesday 9 July 2024 at 15:00:18 UTC+1 Tom Keffer wrote:
>
>> See the section *Assigning a unit group 
>> <https://www.weewx.com/docs/5.1/custom/units/#assigning-a-unit-group>* in 
>> the Customization Guide. 
>>
>> You will want to assign your new observation types to group 
>> "group_percent".
>>
>> On Tue, Jul 9, 2024 at 3:58 AM Wiggytoo <[email protected]> wrote:
>>
>>> Hi - I've had a good look for this but not found how to do it, I have 
>>> added the following observations from the Netatmo driver to my site (skin 
>>> is Belchertown).
>>>
>>> "rainBatteryStatus", "windBatteryStatus", "outTempBatteryStatus"
>>>
>>> I'd like to format them as % but can't work out how to do it, any help 
>>> apprecaited.
>>>
>>> Site is here
>>>
>>> https://www.wiggytoo.co.uk/
>>>
>>> Items are here:
>>>
>>> [image: Screenshot 2024-07-09 115746.png]
>>>
>>> Thanks in advance.
>>> Gav
>>>
>>> -- 
>>> 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/0f555f15-094b-4ca7-b1ad-b7ea688ebec8n%40googlegroups.com
>>>  
>>> <https://groups.google.com/d/msgid/weewx-user/0f555f15-094b-4ca7-b1ad-b7ea688ebec8n%40googlegroups.com?utm_medium=email&utm_source=footer>
>>> .
>>>
>>

-- 
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/a996ef64-ceb9-4364-b91a-94f56f9ceb38n%40googlegroups.com.

Reply via email to