Generate temp gauge image

91 views
Skip to first unread message

awe

unread,
Apr 11, 2024, 1:34:16 PM4/11/24
to weewx-user
Hello
Does anybody know an easy way to make WeeWX generate a gauge image (that updates every X minute) of current temperature and wind that can be used in another .html page?
Like this?
Capture.JPG
For the trends I see that WeeWX generate images like this:
https://hpi3.hemmestad.com/weewx/Bootstrap/daytemp-Bootstrap.png
But I cannot seem to get any gauges generated..
Live data not required...

p q

unread,
Apr 11, 2024, 3:58:45 PM4/11/24
to weewx...@googlegroups.com

--
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/3e8892b0-663d-4736-93ea-0a66c8097ab3n%40googlegroups.com.


--
Peter Quinn
(415)794-2264

Jimi Lawson

unread,
Apr 11, 2024, 4:13:32 PM4/11/24
to weewx-user
I have the Steel Series gauges on my website if you want to see how they look https://jlawson.co.uk/index.php/weather
Jimi

michael.k...@gmx.at

unread,
Apr 12, 2024, 3:44:55 AM4/12/24
to weewx-user
Hi awe, the image you have pasted above is rendered in the browser by the Bootstrap skin, using apache eCharts. Home of the skin: https://github.com/brewster76/fuzzy-archer
The skin does not provide image generation for gauges and live charts in a way, that a static image is produced. The static image you linked above is produced in a completeley different way by weewx in the backend.
As far as I know, the eCharts library provides this, but the skin doesn't provide this functionality and it will not provide it in the future. The reason is that the gauges are only rendered in the browser, but not in the weewx backend.

You still can use the JSON data https://hpi3.hemmestad.com/weewx/Bootstrap/weewxData.json and use apache eCharts in "the other html page" to render whatever gauges and charts you want. But this is something I wouldn't call "an easy way".

Reply all
Reply to author
Forward
0 new messages