You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
In 2022.7 the functionality to set different units in the weather integration. For example the wind speed has always been km/h. But now you can set m/s (which is what we use in Sweden). I changed my values as soon as I saw this but in the weather card it still says km/h even after I changed. Please update the card so the units displayed correspond to the setting in HA,
Thanks
Tobe
The text was updated successfully, but these errors were encountered:
While waiting for official response from the author, here's an ugly hardcode hack to get the UI to show "m/s" for wind speed:
Locate your weather-card.js file (for me with Yellow it is under /root/config/www/community/weather-card)
Make a backup of both weather-card.js and weather-card.js.gz
cd /root/config/www/community/weather-card
cp weather-card.js weather-card.js.bak
cp weather-card.js.gz weather-card.js.gs.bak
Open weather-card.js with your favourite editor and from function renderDetails locate row saying ${this.getUnit("length")}/h and change it simply to m/s.
After the change it should look like this:
...
${stateObj.attributes.wind_speed}<span class="unit">
m/s
</span>
...
Hi,
In 2022.7 the functionality to set different units in the weather integration. For example the wind speed has always been km/h. But now you can set m/s (which is what we use in Sweden). I changed my values as soon as I saw this but in the weather card it still says km/h even after I changed. Please update the card so the units displayed correspond to the setting in HA,
Thanks
Tobe
The text was updated successfully, but these errors were encountered: