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

Status not working #9

Open
brnhffmnn opened this issue Aug 12, 2024 · 0 comments
Open

Status not working #9

brnhffmnn opened this issue Aug 12, 2024 · 0 comments

Comments

@brnhffmnn
Copy link

Requesting the status of the light, does not seem to work:

$ ./keylight status --elgato-ip 0.0.0.0 --number-of-lights 1 -vvv

2024-08-12T14:36:40 [DEBUG] - response '400 Bad Request' for http://0.0.0.0:9123/elgato/lights
2024-08-12T14:36:40 [TRACE] - poll_want: taker wants!
2024-08-12T14:36:40 [INFO] - Response status: 400 Bad Request
2024-08-12T14:36:40 [INFO] - Response text: {"errors":[{"message":"Fail to parse JSON data","code":-1}]}

From what I see, the status 2 is not something my light understands:

"status" => 2,

Instead of requesting a PUT to query the status, it should be a GET, I guess:

let response = client.put(url).json(&body).send().await?;

I found this as a reference, which works for my light: https://github.com/adamesch/elgato-key-light-api/blob/master/resources/lights/GET_lights.md

My setup:

  • Elgato Key Light Mini
  • Firmware: 1.0.4 (239)
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