You're going to have to tell us which skin(s) you are seeing 'low' on and 
which one(s) you want to add images to.

You only need to map the obs_st battery status to one weewx element.  The 
example you copied I think probably assume the old Air+Sky two-sensor 
Weatherflow station.  The Tempest has only one battery to report on.

Re: adding images, you want to see the Customization Guide 
<http://www.weewx.com/docs/customizing.htm#image_generator> which 
admittedly is a bit of a tough read for new users.  Short answer is that 
you define your images in skin.conf for the skin you want the image to be 
in, and you hook it into the web by editing the .tmpl template file(s) for 
that skin.

Re: battery voltage showing ok/low, the default skins assume a Davis 
Vantage scenario where a battery status of  0 = ok and 1 = not_ok, so if 
you're mapping voltages to the default elements you would see the 'not ok' 
thing rather than the voltage in volts.  You'd have to edit sensors.inc in 
the Seasons skin to display voltages as you seem to want.   The check for 
zero/non-zero is at the top of the file.

At the top of sensors.inc there it says:

#def get_battery_status($x)
#if $x == 0
<span class="status_ok">OK</span>
#else
<span class="status_low">LOW</span>
#end if
#end def

You would change it to just display the voltage in volts.
Something like the following (totally untested):

#def get_battery_status($x)
#if $x >= 0
<span class="data">$x</span>
#end def

Alternately you could change the calls down below that look like:

#if $day.outTempBatteryStatus.has_data
    <tr>
      <td class="label">$obs.label.outTempBatteryStatus</td>
      <td 
class="data">$get_battery_status($current.outTempBatteryStatus.raw)</td>
    </tr>
#end if

to....

#if $day.outTempBatteryStatus.has_data
    <tr>
      <td class="label">$obs.label.outTempBatteryStatus</td>
      <td class="data">$current.outTempBatteryStatus.raw</td>
    </tr>
#end if

The .raw will show the number.  If you omit the .raw you'll see the units 
too.

-- 
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/bee98149-2bc5-4ed3-bbf2-e7a89cd910f8n%40googlegroups.com.

Reply via email to