Hi folks,
I have a custom script that needs to update LED layout (hmin etc.) and image crop factors (cropLeft etc.). Is there a way to do it over JSON API? I've tried this:
Code
POST http://<hyperion-ip>:8090/json-rpc
{
"command": "leds-update",
"data": {
"leds": [
{
"hmax": 0.0104,
"hmin": 0,
"vmax": 0.08,
"vmin": 0
}
]
}
}
Alles anzeigen
but it says
Code
{
"command": "",
"error": "Errors during message validation, please consult the Hyperion Log.",
"success": false,
"tan": 0
}
The log doesn't show any messages in the UI (even when I change it to "Verbose" mode). Any other ideas here?
For context, my script detects LED layout etc. from a camera capture, and I'd like to automatically set these values when it runs, instead of having to ask users to copy-paste them into the UI.
Thanks