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

Cannot Set Brightness with Morph #103

Open
Kackerlacka opened this issue Feb 14, 2022 · 1 comment
Open

Cannot Set Brightness with Morph #103

Kackerlacka opened this issue Feb 14, 2022 · 1 comment

Comments

@Kackerlacka
Copy link

I am trying to set brightness with the Morph command but it doesn't seem to be working. I put the following code into my command line:

# curl -XPUT http://127.0.0.1:6100/v1/lifx/command -HContent-Type:application/js
on -d '{"command": "effects/run", "args": {"matcher": {"cap": "matrix", "label":
 "Tiles2"}, "matrix_animation": "MORPH", "matrix_options": {"power_on": false, "
palette": ["blue", "green"], "speed": 5, "overrides": {"brightness": 255} }}}'
{
    "results": {
        "d073d5527d0a": "ok"
    }

And the command goes through, but the brightness doesn't change. I also tried 1 brightness in case the range is 0.01 to 1 instead of 1-255, but that didn't work either. Any idea what I'm doing wrong? Or is it not possible to do?

@delfick
Copy link
Owner

delfick commented Feb 14, 2022

photons apis aren't overly consistent or obvious and that command uses this, which doesn't have an overrides it seems, sorry.

In this case you need the brightness in the palette list it seems so

"palette": ["blue brightness:1", "green brightness:0.3"]

I'll see if I can find some time later to add overrides 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

2 participants