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

If condition - Extra arguments #6

Open
Mark79864 opened this issue Nov 22, 2021 · 0 comments
Open

If condition - Extra arguments #6

Mark79864 opened this issue Nov 22, 2021 · 0 comments

Comments

@Mark79864
Copy link

Currently 'Fade' has 2 arguments.
image

I would ask for an enhancement to have 3 arguments (sort of 4).
The third argument being an 'If' condition to compare to current brightness.

Such as:
If [current_brightness] is [=, <, >] [new_brightness]%:
then fade to [new_brightness]% over [time].

Use case of this is for people who uses Fade command in a schedule, but may have required to change the brightness manually mid show.

Example:
At 9pm the Fade brightness command is scheduled to run.
Taking from 100% to 70%. But prior to this, the user has manually lowered the brightness to 40% before hand. (Via Big Buttons or Run FPP Command).

Since the manually lowered brightness is less than scheduled 70% argument, the brightness would increase when the user did not want it to do so.

@Mark79864 Mark79864 changed the title Extra arguments If condition - Extra arguments Nov 22, 2021
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