-
-
Notifications
You must be signed in to change notification settings - Fork 14
Icons
The skin includes icons for the most used observation types:
Observations | Icon nane | Preview |
---|---|---|
outTemp, inTemp (or any observation with no own icon, but with "Temp" in the name) | temp.svg | |
outHumidity, inHumidity (or any observation with no own icon, but with "Humid" in the name) | humidity.svg | |
barometer, altimeter, pressure | barometer.svg | |
windSpeed | wind-speed.svg | |
windGust | wind-gust.svg | |
windDir, windGustDir | wind-direction.svg | |
rain | rain.svg | |
rainRate | rain-rate.svg | |
dewpoint, inDewpoint | dew-point.svg | |
heatindex, humidex | heat-index.svg | |
windchill | wind-chill.svg | |
UV | uv.svg | |
ET | et.svg | |
noise | noise.svg | |
forecast | forecast.svg | |
radiation, luminosity, maxSolarRad | radiation.svg | |
appTemp | app-temp.svg | |
cloudbase | cloud-base.svg | |
snowDepth | snow-depth.svg | |
snowMoisture | snow-moist.svg | |
windrun | wind-run.svg | |
snow, snowRate | snow.svg | |
hail, hailRate | hail.svg | |
leafTemp1, leafTemp2, leafWet1, leafWet2 | leaf.svg | |
no2, pm1_0, pm2_5, pm10_0 | mask.svg | |
rxCheckPercent or any observation with "signal" | signal.svg | |
Any observation with "Voltage" | voltage.svg | |
Any observation with "batterystatus" or "batteryvoltage" | battery.svg | |
Any observation with "lightning" | lightning.svg | |
Any observation with "soilMoist" | soil-moist.svg | |
Any observation with "soilTemp" | soil-temp.svg |
Icons can be changed globally (for stat tiles and diagrams):
[DisplayOptions]
....
[[Icons]]
rain = "includes/icons/barometer.svg"
cloudbase = "./dwd/icons/8.png"
You can use the default Icons which are shipped with the theme or use your own Icons. For example if you want to change the UV icon to be the radiation icon, you can do the following (prefix the icon name with includes/icons/
):
[DisplayOptions]
....
[[Icons]]
UV = "includes/icons/radiation.svg"
If you want to use your own Icons, you need to copy them into your web directory and set the path accordingly. Assuming the icons are saved in /var/www/html/weewx/icons
, (where /var/www/html/weewx
is the web servers root path), than the icon path should be something like icon = '/icons/your-icon.png'
.
Icons can also be changed for combined diagrams:
[[diagrams]]
[[[combined_observations]]]
[[[[temp_min_max_avg]]]]
label = "Temperature Min/Max/Avg"
pointSize = 3
yScaleOffset = 0.5
icon = "includes/icons/rain.svg"
[[[[[obs]]]]]
[[[[[[outTemp_min]]]]]]
observation = "outTemp"
aggregate_type = "min"
color = "#0198E1"
...
For single diagrams the icon can be set per observation or per context:
[[diagrams]]
...
[[[outHumidity]]]
icon = "/icons/custom-hum.png" # Icon set per observation
...
[[[day]]]
aggregate_interval = 900 # 15 minutes
[[[[observations]]]]
[[[[[tempdew]]]]]
[[[[[outHumidity]]]]]
[[[[[barometer]]]]]
[[[[[windchill_heatindex]]]]]
[[[[[wind]]]]]
icon = "/icons/custom-wind.png" # Icon set per context
You can unset the icon for every observation or for a single diagram by just specifying none
as the icon, eg:
[[[day]]]
[[[[observations]]]]
...
[[[[[cloudbase]]]]]
icon = none
[[[[[appTemp]]]]]