Shapes and custom effect with animType static keeps returning "bad request"

Started by factor
Ab58bf14aaabccf9cd8d389381c7d7c9?s=128&d=mm

factor

I'm trying to set a single panel's color but whenever I use animType static and animData to specify that panel, I always get a bad request.

Fails with bad request:
{
"write":
{
"command":"display",
"version":"1.0",
"animType":"static",
"animData": "1 8124 1 100 100 0 0 1",
"loop": false,
"colorType":"HSB"
}
}

animType solid works:
{
"write":
{
"command":"display",
"version":"1.0",
"animType":"solid",
"palette":[
{"hue":181,"saturation":9,"brightness":100}
],
"colorType":"HSB"
}
}

The only thing I can think of being wrong is the panelId, but I got it from a layout request:

{
"numPanels": 2,
"sideLength": 0,
"positionData": [
{
"panelId": 8124,
"x": 59,
"y": 108,
"o": 0,
"shapeType": 7
},
{
"panelId": 0,
"x": 0,
"y": 74,
"o": 120,
"shapeType": 12
}
]
}

Any ideas what I could be doing wrong?

C39416f4bdabbd5010f596095fb24348?s=128&d=mm

Aliakbar Eski

Hey @factor

You seem to be missing the palette field, as outlined in section 3.2.6.1.

Hope this helps
Regards