-
Notifications
You must be signed in to change notification settings - Fork 66
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
[bug] night time always 0 #12
Comments
Just wanted to say thanks to @Blaubeermuffin for the updated code as this has fixed the night light brightness for me. |
The bug found above, is not the only bug, I think :) add change ( currentDateTime.hour <= MORNINGCUTOFF) in ( currentDateTime.hour < MORNINGCUTOFF) and the 2 last lines of code of this: |
[FIX] integrated solutions of leonvandenbeukel#12 [FIX] ESP8266 first pixel flickering [ADD] define day led brightness [ADD] fancy startup effect
I just tested your script and I'm pretty happy with it. Great work. I just found a small bug though with the night cutoff.
Current code:
This is checking if the current hour bigger than the night cutoff AND smaller than the morning cutoff. What you want to do instead, is to check if the current hour is bigger than the night cutoff OR smaller than the morning cutoff.
You could implement it pretty easy with something like this:
The text was updated successfully, but these errors were encountered: