Skip to content

Commit

Permalink
Updated windGust display in forecast. Fixes GH-240
Browse files Browse the repository at this point in the history
  • Loading branch information
Daveiano committed Jan 31, 2024
1 parent ca7fa3e commit d07b2e1
Show file tree
Hide file tree
Showing 5 changed files with 43 additions and 1 deletion.
1 change: 1 addition & 0 deletions changelog.md
Original file line number Diff line number Diff line change
Expand Up @@ -761,3 +761,4 @@ See https://github.com/Daveiano/weewx-wdc/compare/v3.3.0...580071ca175a03fe4924b
- Added finnish translation GH-230
- Added "Precipitation detail" on forecast display (show rain/snow separately) GH-231
- Allow to add custom content to front page via custom templates GH-217
- Updated windGust display in forecast table GH-240
1 change: 1 addition & 0 deletions install.py
Original file line number Diff line number Diff line change
Expand Up @@ -133,6 +133,7 @@ def __init__(self):
"skins/weewx-wdc/includes/icons/wind-direction.svg",
"skins/weewx-wdc/includes/icons/wind-direction.inc",
"skins/weewx-wdc/includes/icons/wind-gust.svg",
"skins/weewx-wdc/includes/icons/wind-gust-2.svg",
"skins/weewx-wdc/includes/icons/wind-speed.svg",
"skins/weewx-wdc/includes/icons/sunrise.svg",
"skins/weewx-wdc/includes/icons/sunset.svg",
Expand Down
5 changes: 4 additions & 1 deletion skins/weewx-wdc/includes/forecast-table.inc
Original file line number Diff line number Diff line change
Expand Up @@ -325,7 +325,10 @@
#else
$summary.windSpeedMin.nolabel('%.0f','') - $summary.windSpeedMax.nolabel('%.0f',' ')
#end if
<span class="windgust">$summary.windGust.nolabel('%.0f',' ')</span>
<div class="windgust">
#include "includes/icons/wind-gust-2.svg"
$summary.windGust.nolabel('%.0f',' ')
</div>
$summary.windChar
</bx-structured-list-cell>
<!--prettier-ignore-->
Expand Down
28 changes: 28 additions & 0 deletions skins/weewx-wdc/includes/icons/wind-gust-2.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
9 changes: 9 additions & 0 deletions skins/weewx-wdc/src/scss/index.scss
Original file line number Diff line number Diff line change
Expand Up @@ -749,6 +749,15 @@ div[id^="panel"] .tile-radar-forecast {
margin-right: 5px;
}
}
.windgust {
display: flex;
align-items: center;
margin-top: 0.75em;
svg {
max-width: 24px;
margin-right: 5px;
}
}
// bx-structured-list-row,
// bx-structured-list-header-row {
// @include carbon--breakpoint-down(md) {
Expand Down

0 comments on commit d07b2e1

Please sign in to comment.