Help with customization template changes

63 views
Skip to first unread message

galfert

unread,
Aug 3, 2020, 10:46:23 AM8/3/20
to weewx-user
If I edit the following file:
/etc/weewx/skins/Standard/index.html.tmpl

What do I have to do to make my changes take effect? I've restarted WeeWX and the following file never gets my updates:

/var/www/html/weewx/index.html

galfert

unread,
Aug 3, 2020, 12:19:35 PM8/3/20
to weewx-user
Okay I've read through some documentation and it seems like the Cheetah Generator may be a clue. I just don't know how to force the Cheetah Generator to run and apply my changes.

John Kline

unread,
Aug 3, 2020, 12:35:33 PM8/3/20
to weewx...@googlegroups.com
You can wait for a report cycle to happen (prob on the 5 minute boundary) or run wee_reports:

/etc/weewx/bin/wee_reports

Having said that, another reason for the change not to “take effect” is an error in the template.  If that happens, you’ll still see the old report (i.e., html file).  Have you checked the log?

On Aug 3, 2020, at 9:19 AM, galfert <gal...@gmail.com> wrote:

Okay I've read through some documentation and it seems like the Cheetah Generator may be a clue. I just don't know how to force the Cheetah Generator to run and apply my changes.
--
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/1902ef16-7c0f-43ea-99ef-aabb18c5e87bn%40googlegroups.com.

galfert

unread,
Aug 3, 2020, 12:58:26 PM8/3/20
to weewx-user
Okay thank you for tip on running wee_reports. However it still didn't fix the problem. I discovered that I was editing the wrong template. I needed to instead edit the following:
/etc/weewx/skins/Seasons/index.html.tmpl

Hans Cilker

unread,
Aug 3, 2020, 1:27:29 PM8/3/20
to weewx-user
for normal you can see inside the weewx.conf file which skin is taken, at me its line 143 and further on to see.
...
[[SeasonsReport]]
        # The SeasonsReport uses the 'Seasons' skin, which contains the
        # images, templates and plots for the report.
        skin = Seasons
        enable = true

Tom Keffer

unread,
Aug 3, 2020, 5:15:00 PM8/3/20
to weewx-user
Templates get re-read with every reporting cycle (no need to restart weewxd). If you're not, it's because you're either editing the wrong file, or your browser is caching the page.

Plots get regenerated as often as their aggregation interval. But, you're reporting problems in the .html file, so I assume that's not the problem here.

-tk

Reply all
Reply to author
Forward
0 new messages