-
Notifications
You must be signed in to change notification settings - Fork 2
Open
Description
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:
Line 46 in bea72be
| "status" => 2, |
Instead of requesting a PUT to query the status, it should be a GET, I guess:
Line 85 in bea72be
| 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
Labels
No labels