Dan,
I have a Tempest and the Belchertown skin.
All I did to get to display battery voltage was place the "windBatteryStatus"
variable in the station observations string. I also added "luminosity" to
the string. To use luminosity (Brightness) you will need to change the
sensor map title from luxXX to luminosity. I included both the Station
Observation string and my sensor map for your reference. Btw, you can also
change the sensor titles in the weewx.conf file.
Wayne
station_observations = "barometer","dewpoint","outHumidity","rain",
"luminosity", "UV", "cloud_cover", "windBatteryStatus"
[[sensor_map]]
outTemp = air_temperature.ST-00105xxx.obs_st
outHumidity = relative_humidity.ST-00105xxx.obs_st
pressure = station_pressure.ST-00105xxx.obs_st
lightning_strikes = lightning_strike_count.ST-00105xxx.obs_st
avg_distance = lightning_strike_avg_distance.ST-00105xxx.obs_st
outTempBatteryStatus = battery.ST-00105xxx.obs_st
windSpeed = wind_speed.ST-00105xxx.rapid_wind
windDir = wind_direction.ST-00105xxx.rapid_wind
luminosity = illuminance.ST-00105xxx.obs_st
UV = uv.ST-00105xxx.obs_st
rain = rain_accumulated.ST-00105xxx.obs_st
windBatteryStatus = battery.ST-00105xxx.obs_st
radiation = solar_radiation.ST-00105xxx.obs_st
lightningXXX = distance.ST-00105xxx.evt_strike
lightningYYY = energy.ST-00105xxx.evt_strike
radiation = solar_radiation.ST-00105xxx.obs_st
lightningXXX = distance.ST-00105xxx.evt_strike
lightningYYY = energy.ST-001056xxx.evt_strike
On Saturday, March 25, 2023 at 8:51:25 PM UTC-5 vince wrote:
> 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/693d4ce5-5196-47f9-ac10-0b2c8525ebcbn%40googlegroups.com.