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 weewx-user+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/weewx-user/650b834e-c4d7-43c1-bc58-7ba7056696c6n%40googlegroups.com.

Reply via email to