Noob question

86 views
Skip to first unread message

Robin Hunt

unread,
Dec 4, 2020, 9:02:57 AM12/4/20
to weewx-user
Hey everyone

This is, I am sure, a noob question but I can't figure it out having RTFMd as best I can

I have Davis Vantage Pro 2 station via USB on a raspberry pi and am trying to add some battery info to index.html.tmpl on Standard skin.

If I run weewx from the command line this appears among the output: consBatteryVoltage: 4.83

So there does appear to be a value available

but

If I insert 
[...]
      Console battery: $current.consBatteryVoltage<br/>
[...]

into index.html.templ 

The output is literally that rather than the battery voltage. There is no substitution.  I have tried this with $station.consBatteryVoltage, no different

What prefix should I use? Is this possible?

Kind regards
Robin



Tom Keffer

unread,
Dec 4, 2020, 7:47:48 PM12/4/20
to weewx-user
Definitely possible. In fact, the Seasons skin uses the tag $current.consBatteryVoltage.

All I can say is to double, triple check your spelling. Do other things, such as $current.txBatteryStatus work properly?



--
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+...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/weewx-user/c13c3ece-a82a-4efe-a77e-c74fdd3f46b2n%40googlegroups.com.

Robin Hunt

unread,
Dec 5, 2020, 2:45:00 AM12/5/20
to weewx...@googlegroups.com
Thank you so much for your reply Tom, I will try that and the season's skin too

I have used WeeWx for like 3 or more years now, what an awesome application. Thank you and everyone else who contributed.


You received this message because you are subscribed to a topic in the Google Groups "weewx-user" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/weewx-user/5PBaU6_uTMQ/unsubscribe.
To unsubscribe from this group and all its topics, send an email to weewx-user+...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/weewx-user/CAPq0zEB4p4zD6wcrp6BchO-WnUJ10FUPTP%3DQrc%3DCJ3gX0%3DrMVA%40mail.gmail.com.
Reply all
Reply to author
Forward
0 new messages