Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Wish: TX Battery Status in Header or Footer #24

Open
vk2kmi opened this issue Feb 16, 2021 · 7 comments
Open

Wish: TX Battery Status in Header or Footer #24

vk2kmi opened this issue Feb 16, 2021 · 7 comments

Comments

@vk2kmi
Copy link

vk2kmi commented Feb 16, 2021

I'd love to see a TX Battery status in Volts with battery icon in the header or at worst in the footer

@neoground
Copy link
Owner

If your weather station provides this value you can access the current value by using the variable $current.txBatteryStatus in a template.
You could e.g. simply add this value in a new line in the header of the index page. Just add a new line with <h5>$current.txBatteryStatus</h5> here: https://github.com/neoground/neowx/blob/master/src/index.html#L43

Didn't try it but should work. You may need to add it to all other .html.tmpl files if you want to see it on every page.

See this label section of the weewx docs for more available variables and their meanings: https://www.weewx.com/docs/customizing.htm#Translate_labels_and_modify_local_options

@neoground
Copy link
Owner

And thank you for this idea. Will add it in a future release, might be useful for others too 👍

@vk2kmi
Copy link
Author

vk2kmi commented Feb 16, 2021 via email

@vk2kmi
Copy link
Author

vk2kmi commented Feb 16, 2021 via email

@neoground
Copy link
Owner

I guess the variable just has a different name. Found this file in the seasons skin: https://github.com/weewx/weewx/blob/master/skins/Seasons/sensors.inc

The variables are defined as $day.txBatteryStatus, maybe something like this will work?

@vk2kmi
Copy link
Author

vk2kmi commented Feb 16, 2021 via email

@neoground
Copy link
Owner

Recently I created a better, more modern skin, called neowx-material. I also included a telemetry page there. Works fine on my vantage vue, I get battery voltage + signal quality.
According to the weewx docs it will display the latest values (if available) and I also added daily max + min.
I added all available sensor status indicators.
Maybe this will work for you too? More information on the project page: https://neoground.com/projects/neowx-material

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants