-
-
Notifications
You must be signed in to change notification settings - Fork 14
WeeWX related
If you want to change the unit of an observation not only for the charts, but also for the stat tiles and tables, you need to make an adjustment like this to your weewx.conf.
The example will change the unit of rain
from cm to mm.
[StdReport]
....
[[WdcReport]]
skin = weewx-wdc
enable = true
unit_system = metric
[[[Units]]]
[[[[Groups]]]]
group_rain = mm
Other widespread changes are (from https://github.com/weewx/weewx/blob/master/weewx.conf#L258):
group_altitude = meter # Options are 'foot' or 'meter'
group_pressure = mbar # Options are 'inHg', 'mmHg', 'mbar', or 'hPa'
group_rain = mm # Options are 'inch', 'cm', or 'mm'
group_rainrate = mm_per_hour # Options are 'inch_per_hour', 'cm_per_hour', or 'mm_per_hour'
group_temperature = degree_C # Options are 'degree_C', 'degree_F', or 'degree_K'
In order to change the label of an observation, lets say outTemp
to My Outside Temp 1
, you need to make some adjustments to yout weewx.conf.
The relevant section of the weewx.conf file is this Config:
[StdReport]
...
[[Defaults]]
lang = en
...
[[[Labels]]]
# Users frequently change the labels for these observation types
[[[[Generic]]]]
# inHumidity = Inside Humidity
# inTemp = Inside Temperature
Just add an entry like this to [[[[Generic]]]]
:
[StdReport]
...
[[Defaults]]
lang = en
...
[[[Labels]]]
# Users frequently change the labels for these observation types
[[[[Generic]]]]
# inHumidity = Inside Humidity
# inTemp = Inside Temperature
outTemp = My Outside Temp 1
Attention: This will only work if you do not have a value for lang
in your [[WdcReport]]
configuration. If you have something like lang = de
, WeeWX will use the labels from the skins translation files. To override this, copy the [[[Labels]]]
config directly to your [[WdcReport]]
configuration, like this:
[[WdcReport]]
skin = weewx-wdc
enable = true
lang = de
[[[Labels]]]
[[[[Generic]]]]
outTemp = My Outside Temp 1
The HTML_ROOT
setting in weewx.conf sets the path for the generated files and images (where the files should be generated on the machine). The default is /var/www/html/weewx/
. You can override the setting for the wdc skin by setting the following:
[StdReport]
[[WdcReport]]
skin = weewx-wdc
enable = true
HTML_ROOT = /var/www/html/weewx/wdc
This will generate all files to /var/www/html/weewx/wdc
.
The base_path
setting in weewx-wdc/skin.conf
is only relevant if you are accessing the wdc skin in a subdirectory of your web-server.
- if you are accessing the skin via https://your-web.server/ there is nothing to change for the
base_path
. - if you are accessing the skin via https://your-web.server/wdc, you need to set
base_path = /wdc/
More on base_path
see here: https://github.com/Daveiano/weewx-wdc/wiki/Configuration#extras