diff --git a/CHANGELOG.md b/CHANGELOG.md index b601450f47..959191cd7c 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -11,6 +11,9 @@ _This release is scheduled to be released on 2024-10-01._ ### Added +- [weather] Added option Humidity to hourly View +- [weather] Added option to hide hourly entries that are Zero, hiding the entire column if empty. + ### Removed - [core] removed installer only files (#3492) @@ -29,6 +32,7 @@ _This release is scheduled to be released on 2024-10-01._ - [weather] Fixed issue with the UK Met Office provider following a change in their API paths and header info. - [core] add check for node_helper loading for multiple instances of same module (#3502) - [weather] Fixed issue for respecting unit config on broadcasted notifications +- [weather] Fixed minor spacing issues when using UV Index in Hourly - [tests] Fixes calendar test by moving it from e2e to electron with fixed date (#3532) ## [2.28.0] - 2024-07-01 diff --git a/modules/default/weather/hourly.njk b/modules/default/weather/hourly.njk index 0e464f77e6..273a06ac30 100644 --- a/modules/default/weather/hourly.njk +++ b/modules/default/weather/hourly.njk @@ -8,7 +8,7 @@ {% if config.fade %}style="opacity: {{ currentStep | opacity(numSteps) }};"{% endif %}> {{ hour.date | formatTime }} - + {{ hour.temperature | roundValue | unit("temperature") }} @@ -21,15 +21,25 @@ {% endif %} {% endif %} + {% if config.showHumidity %} + + {{ hour.humidity }} + + + {% endif %} {% if config.showPrecipitationAmount %} - - {{ hour.precipitationAmount | unit("precip", hour.precipitationUnits) }} - + {% if (!config.hideZeroes or hour.precipitationAmount>0) %} + + {{ hour.precipitationAmount | unit("precip", hour.precipitationUnits) }} + + {% endif %} {% endif %} {% if config.showPrecipitationProbability %} + {% if (!config.hideZeroes or hour.precipitationAmount>0) %} - {{ hour.precipitationProbability | unit('precip', '%') }} + {{ hour.precipitationProbability | unit('precip', '%') }} + {% endif %} {% endif %} {% set currentStep = currentStep + 1 %} diff --git a/modules/default/weather/weather.css b/modules/default/weather/weather.css index 816f0a9b74..4618be9f94 100644 --- a/modules/default/weather/weather.css +++ b/modules/default/weather/weather.css @@ -31,6 +31,7 @@ .weather .precipitation-amount, .weather .precipitation-prob, +.weather .humidity-hourly, .weather .uv-index { padding-left: 20px; padding-right: 0;