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

Light Hours for garden wrong when onTime < offTime #279

Open
docktordreh opened this issue Sep 12, 2024 · 0 comments
Open

Light Hours for garden wrong when onTime < offTime #279

docktordreh opened this issue Sep 12, 2024 · 0 comments

Comments

@docktordreh
Copy link

The calculation for displaying the amount of time the light is turned on for uses the absolute time between on and off. In cases where the lightsource is configured to be on during the night (e.g. light turns on at 22:00 and off at 16:00), this results in displaying the off-time as on-time. (6h, because |16-22|=6, yet in reality it's 16-22+24=18)

I wrote something fixing that earlier, I'll add that to the issue when I get to it.

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

1 participant