The Standard skin was rather limited in what could be controlled via config
file options; you could control formatting and labelling of data as well as
generation of plots via config options, but display (or not) of content
(obs and plots) required changes to the .tmpl template file. The Seasons
skin was initially fairly similar though there were a few smarts in the
template file to avoid Seasons trying to display data that does not exist;
however, the user still needed to edit the template file to display/not
display obs/plots. A parameterised version of the Seasons skin was included
in WeeWX 4.6.0. The parametrised version of the Seasons skin supports the
full wview_exteneded schema and (largely) automatically display obs/plots
for which data is available. This version also introduced the
[DisplayOptions] stanza in the Seasons skin config file (skin.conf)
allowing the user to control what is/is not displayed via config options.
The [DisplayOptions] stanza can be set/modified in the Seasons skin config
file or in the [StdReport] stanza in weewx.conf. As the OP points out, if
you modify the skin config file then your changes are at risk of being
overwritten should the skin be upgraded in future. Changes made in
weewx.conf (referred to as overrides) are upgrade safe ie they will not be
lost during an upgrade. Bear in mind that included skins seldom change and
even when they do a WeeWX upgrade will not change the installed included
skins; installed included skins need to be upgraded separately by the user.
So if you were using WeeWX v4.5.1 or earlier with the Seasons skin and
subsequently upgraded to v4.6.0 or later you will still be using a
pre-v4.6.0 Seasons skin unless you manually upgraded the Seasons skin, ie
you will not have the new parameterised Seasons skin.
Modifying the Seasons skin config file is fairly straightforward, you just
edit skins/Seasons/skin.conf and simply make the necessary changes to the
various [DisplayOptions] settings that already exist (eg remove inTemp to
not display inside temperature obs/plots). Adding overrides to the Seasons
skin in weewx.conf is not so obvious, you need to add settings rather than
edit existing settings. To override Seasons skin options you need to find
the Seasons skin stanza under [StdReport], it will likely look something
like:
[StdReport]
....
[[SeasonsReport]]
# The SeasonsReport uses the 'Seasons' skin, which contains the
# images, templates and plots for the report.
skin = Seasons
enable = true
You then need to add entries to this stanza. The Seasons skin
[DisplayOptions] is accessed just as it is in the skin config file, but you
need to add some additional square brackets to keep the config hierarchy.
So to override the observations_current option you would do something like:
[StdReport]
....
[[SeasonsReport]]
# The SeasonsReport uses the 'Seasons' skin, which contains the
# images, templates and plots for the report.
skin = Seasons
enable = true
[[[DisplayOptions]]]
observations_current = ....
If you want to not display inTemp then just copy and paste the
observations_current setting from the skin config file but remove inTemp.
Likewise for any other obs, likewise for any other settings.
The change log <http://weewx.com/docs/changes.txt> for each release will
highlight any changes to included skins in a release, the relevant section
of the Upgrade Guide
<http://weewx.com/docs/upgrading.htm#Upgrading_to_V4.10> will highlight any
changes/actions that maybe required of the user when upgrading. It is
always worthwhile looking at the relevant sections of these two documents
before upgrading.
And of course making regular backups of skins and weewx.conf (as well as
data) is invaluable if the worst happens.
Gary
On Friday, 10 February 2023 at 06:07:56 UTC+10 Greg Troxel wrote:
vince <[email protected]> writes:
> Look at the commentary in the Seasons skin.conf file, which seems to say
> that you can turn it off in weewx.conf, which should make you upgrade
proof.
>
> # The following section contains variables that determine which
observations
> # and plots will be shown in the template files, and their order. Like
> other
> # configuration options, these can be overridden in the weewx config
file.
>
> [DisplayOptions]
For Standard, I edited index.tmpl (and also week/month/year) to remove
showing the values and I think referencing the plots. And then
skin.conf to not generate the plots. If you want to avoid anyone seeing
the data, you have to not install the graphs even if they are
referenced.
It's great if it's now possible to turn off inTemp by config. I would
suggest looking over what is in the html/web dir carefully after you
think you have it set up.
--
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 [email protected].
To view this discussion on the web visit
https://groups.google.com/d/msgid/weewx-user/f5803803-1100-4b64-b15b-d47a29592466n%40googlegroups.com.