You need to actually call the get_battery_status() routine too...

Take a look at what the Seasons skin does...

On Saturday, March 25, 2023 at 5:06:29 PM UTC-7 Dan Roman wrote:

> I've been running stock Weewx for about a year and finally got around to 
> trying other skins.  First one I tried is Belchertown and I like it a lot.  
> I have most things working but when I tried to update about.inc to display 
> the Tempest battery voltage the same way I added it to the Seasons skin, it 
> does not seem to work.  Do I need to do something differently?  Below is 
> what I added to sensors.inc in the Seasons skin.  I copied and pasted it 
> into about.inc and it does not display anything.
>
> I did a little digging around in the Seasons skin to see if anything in 
> the configuration was different and needed to be added to the configuration 
> of Belchertown but did not see anything obvious.
>
> Thanks!
>
> ## Modified battery code for Tempest
> #def get_battery_status($x) 
>   #set $y = "{:.2f}".format($x)
>   #if $x >= 2.455
>     <span class="status_ok">OK - $y</span>
>   #else
>     #if $x >= 2.41
>       <span class="status_low">LOW - mode 1 - $y</span>
>     #else
>       #if $x >= 2.39
>         <span class="status_low">LOW - mode 2 - $y</span>
>       #else
>         <span class="status_low">LOW - mode 3 - $y</span>
>       #end if
>     #end if
>   #end if
> #end def
>
>

-- 
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/80a364a5-8728-4ba4-8746-41933de3f75dn%40googlegroups.com.

Reply via email to