Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add wind direction icon for forecasted figures #108

Closed
wants to merge 27 commits into from
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
27 commits
Select commit Hold shift + click to select a range
ccc10ec
Update meteofrance-weather-card.js
vingerha May 10, 2023
bd925a8
Update meteofrance-weather-card.js
vingerha May 10, 2023
be02bd4
Update meteofrance-weather-card.js
vingerha May 10, 2023
0281daa
Update meteofrance-weather-card.js
vingerha May 10, 2023
5b117af
x
vingerha May 10, 2023
8fc1646
Update meteofrance-weather-card.js
vingerha May 10, 2023
f66a52e
Update meteofrance-weather-card.js
vingerha May 10, 2023
a24264e
Update meteofrance-weather-card.js
vingerha May 10, 2023
37a649f
Update meteofrance-weather-card.js
vingerha May 10, 2023
97cdde5
Update meteofrance-weather-card.js
vingerha May 10, 2023
eb09c8f
x
vingerha May 10, 2023
79f11bb
Update meteofrance-weather-card.js
vingerha May 10, 2023
f6628c1
Update meteofrance-weather-card.js
vingerha May 10, 2023
46204eb
Update meteofrance-weather-card.js
vingerha May 10, 2023
19421c0
Update meteofrance-weather-card.js
vingerha May 10, 2023
664f334
Update meteofrance-weather-card.js
vingerha May 10, 2023
3320545
Update meteofrance-weather-card.js
vingerha May 10, 2023
43c67a7
Update meteofrance-weather-card.js
vingerha May 10, 2023
ab6ef65
Update meteofrance-weather-card.js
vingerha May 10, 2023
ba891be
Update meteofrance-weather-card.js
vingerha May 10, 2023
baa727c
Update meteofrance-weather-card.js
vingerha May 10, 2023
d6e01d9
Update meteofrance-weather-card.js
vingerha May 10, 2023
e80dfd2
Update meteofrance-weather-card.js
vingerha May 10, 2023
5b8f73d
fix color
vingerha May 10, 2023
4eb8ce2
add no-bearing
vingerha May 11, 2023
8dd4bc3
Add trigger for wind icons
vingerha May 12, 2023
7950401
Trigger wind forecast icons is switch
vingerha May 12, 2023
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 2 additions & 0 deletions dist/icons/arrow-north-static.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
1 change: 1 addition & 0 deletions dist/icons/no-wind-bearing-static.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
14 changes: 14 additions & 0 deletions dist/meteofrance-weather-card.js
Original file line number Diff line number Diff line change
Expand Up @@ -530,6 +530,20 @@ class MeteofranceWeatherCard extends LitElement {
</li>
`
: ""}
${this._config.wind_forecast_icons && daily.wind_bearing !== undefined && daily.wind_bearing !== null
? html`
<li class="icon"
style="background: none, url('/local/community/lovelace-meteofrance-weather-card/icons/arrow-north-static.svg'); background-size: contain; transform: rotate(${daily.wind_bearing + 180}deg) scale(0.5)">
</li>
`
: ""}
${this._config.wind_forecast_icons && daily.wind_bearing !== undefined && daily.wind_bearing == null
? html`
<li class="icon"
style="background: none, url('/local/community/lovelace-meteofrance-weather-card/icons/no-wind-bearing-static.svg'); background-size: contain; transform: scale(0.5)">
</li>
`
: ""}
</ul>
</li>`;
}
Expand Down