Using Curl and failing...

Started by demilune
2374379ece1e542ef73e9d5dafdfc3b1?s=128&d=mm

demilune

Anyone see what is wrong with this? I get a 400 error.

curl -v -X PUT -H "Content-Type: application/json" -d '{"on":{"value":true}}' IP:16021/api/v1/TOKEN/state

91e8d211cc8163bcf8656e8d1e0d946b?s=128&d=mm

wtf

This works from windows (204 response) for me:

curl -X PUT -H "Content-Type: application/json" -d "{\"value\":true}" IP:16021/api/v1/TOKEN/state/on
2374379ece1e542ef73e9d5dafdfc3b1?s=128&d=mm

demilune

Nice! That did the trick! Thanks!

C39416f4bdabbd5010f596095fb24348?s=128&d=mm

Aliakbar Eski

@demilune

I tried your curl command on macOS and it worked fine. I got a 204 No Content back.

Can you tell me your Aurora's firmware version?

Thanks

2374379ece1e542ef73e9d5dafdfc3b1?s=128&d=mm

demilune

Still fighting this… Now trying to set static colors of each panel. Command below does nothing.

curl -X PUT -H "Content-Type: application/json" -d "{\"command\":\"display\",\"animType\":\"static\",\"animData\":\"3 82 1 255 0 255 0 20 60 1 0 255 255 0 20 118 1 0 0 0 0 20\",\"loop\":false}" IP:16021/api/v1/TOKEN/effects

What am I missing?

91e8d211cc8163bcf8656e8d1e0d946b?s=128&d=mm

wtf

So close! How about:

curl -v -X PUT -H "Content-Type: application/json" -d "{\"write\":{\"command\":\"display\",\"animType\":\"static\",\"animData\":\"3 82 1 255 0 255 0 20 60 1 0 255 255 0 20 118 1 0 0 0 0 20\",\"loop\":false}}" IP:16021/api/v1/TOKEN/effects

The api is whack.

2374379ece1e542ef73e9d5dafdfc3b1?s=128&d=mm

demilune

Thanks @wtf That seemed to work.

Now I need to figure our the animData values. I think I have most of it, but how in the world do you find out what the PanelIDs are?

91e8d211cc8163bcf8656e8d1e0d946b?s=128&d=mm

wtf

GET … /panelLayout/layout