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 Symbols are not always displayed correctly #18

Open
flightforum opened this issue Jul 16, 2023 · 1 comment
Open

Night Symbols are not always displayed correctly #18

flightforum opened this issue Jul 16, 2023 · 1 comment

Comments

@flightforum
Copy link

Hi!

I built an own display based on this project. But during the day, weather symbols for future night forecasts were displayed as day symbols. I therefore tried another code for the sensor that works:

{% if ((cond3_time > next_setting and cond3_time < next_rising) or (cond3_time < next_setting and cond3_time < next_rising and next_rising < next_setting)) %}

Maybe you'd like to use it as well.

Best :)

Jorin

@chunkysteveo
Copy link
Contributor

I came up with the logic for checking the future "night" icons based on the Sun setting times, and have also notices a couple of times the icons were not quite right looking into the future... I'll take a look at your update and have a test too! Thanks!!

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