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

Night time icons not correctly loading #133

Open
vingerha opened this issue Apr 30, 2022 · 1 comment
Open

Night time icons not correctly loading #133

vingerha opened this issue Apr 30, 2022 · 1 comment

Comments

@vingerha
Copy link

a.o. partlycloudy is showing the same for day and night

@fierske
Copy link

fierske commented Sep 18, 2024

For those still interested, at "hourly" they forgot to include whether the sun is already down or not.
You can modify the code in the .js as follows:

<i
  class="icon"
  style="background: none, url('${this.getWeatherIcon(
  daily.condition.toLowerCase(), this.hass.states["sun.sun"]
  )}') no-repeat; background-size: contain"
></i>

You have to add "this.hass.states["sun.sun"]"

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants