-
Hi - I added the battery percent to my home page, I like to lose the trailing digits after the decimal point and add % - can anyne point me in the right direction to do this please? So the attached would read 100% and 63% for example. Thanks |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment
-
Answer was to add this to belchertown.py just after the imports at the top. #Extend dictionary for battery percent observations Regards, |
Beta Was this translation helpful? Give feedback.
Answer was to add this to belchertown.py just after the imports at the top.
#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
Regards,
Gav