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

Animate Between Times setting seems to not work as expected #661

Open
madmads11 opened this issue Sep 22, 2023 · 0 comments
Open

Animate Between Times setting seems to not work as expected #661

madmads11 opened this issue Sep 22, 2023 · 0 comments

Comments

@madmads11
Copy link

madmads11 commented Sep 22, 2023

Maybe I am just a bit daft, but I cannot seem to understand how the "Animate between times" setting works. This is on the latest stable version, v1.15.4

Let's say I have the following settings:
10:00 - 100%
11:00 - 0%

I would assume that:
At 10:00 the display is at 100% brightness,
at 10:15 the display is at 75% brightness,
at 10:30 the display is at 50% brightness,
at 10:45 the display is at 25% brightness and
at 11:00 the display is at 0%

And in between all those times, it would animate smoothly, maybe by minute or some other granular unit like that. However, from my testing it seems not to work that way. Here is just a quick example:
Screenshot 2023-09-22 234541
Indeed I would expect the percentage here to be 75%, not 25%, since we three quarters of the way to the 100% brightness target.

Screenshot 2023-09-22 234604
When I flip the brightness targets, the brightness goes to 75% when I would expect it to be at 25% based on the provided times.

Screenshot 2023-09-22 234642
Given 23:00 is set to 50% and 00:00 is set to 100%, with the current time being 23:46, I would expect the brightness to at around 88%, Since that is roughly three quarters towards the second target just like the time.

image
When the time finally hits 00:00, the brightness is at 50%, which makes no sense to me because I set the target for 00:00 to be 100%. I don't know how it could be otherwise.

image
Adding a time at 01:00 at 0% for a quick test shows that at 00:02 the brightness is immediately lowered to 3%, which makes it seem to me as though it's attempting to start at 0% and interpolate towards 100%. Now at 00:04 brightness is at 7%, which confirms my suspicion. I would expect it to start at 100% and go towards 0%.

It seems the brightness is flipped from what I expect. When I turn off "Animate Between Times", it does indeed set the brightness to the target specified at the exact time. Maybe I am misunderstanding what's supposed to happen with the animate setting. Would it be possible to have the program plot the expected brightness curve based on the times given? This way I could at least understand what brightness Twinkle Tray is aiming for given the time.

@madmads11 madmads11 changed the title Animate Between Times setting seems to not work as expected. Animate Between Times setting seems to not work as expected Sep 22, 2023
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