CSS and JS files timing

29 views
Skip to first unread message

Kevin Davis

unread,
Jan 31, 2020, 2:02:48 PM1/31/20
to weewx-user
I've been working on adding some features to my Seasons skin which involves some work in the CSS and JS files.  When I run a new report, the index.html is built with all my changes, but the /var/www/html/weewx/seasons.css/js are not updated.  This only seems to happen on the first report run after a restart?

gjr80

unread,
Jan 31, 2020, 2:08:58 PM1/31/20
to weewx-user
Hi,

Correct, .css, .js and .ico are set to ‘copy once’ (have a look at the [CopyGenerator] stanza in Seasons skin.conf). This is by design as the files do not change from report to report. You have two options, either restart WeeWX after each change or manually copy them too your web server after each change. Be wary of editing the files on your web server directly as you risk losing your changes if there is a WeeWX restart.

Gary

Thomas Keffer

unread,
Jan 31, 2020, 2:51:47 PM1/31/20
to weewx-user
... or put the CSS and JS files in "copy_always", instead of "copy_once".

--
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/096aaaed-e7a0-4a4c-a67b-d2432ea8b3d7%40googlegroups.com.

Kevin Davis

unread,
Jan 31, 2020, 2:55:28 PM1/31/20
to weewx...@googlegroups.com
Thanks guys.

Missed that setting in the conf. 

Reply all
Reply to author
Forward
0 new messages