Skip to content

Status not working #9

@brnhffmnn

Description

@brnhffmnn

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)

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions