How do I send JASON API commands from Node red?

Newbie, with a noob question here.

I saw in the WLED documentation that commands can be send to set colors individually to each LED using the JSON API

To set individual LEDs starting from the beginning, use an array of Color arrays. {"seg":{"i":[[255,0,0], [0,255,0], [0,0,255]]}} will set the first LED red, the second green and the third blue.

Now, how can I send this commands from Node Red?

My idea is to write a “function” node that create custom effects but I don’t know how to send those commands to WLED from Node red.

Any advice will be greatly appreciated.

I figured it out.

here how to do it in case someone else have the same question.

Nodes:

Change Node:

HTTP Request Node:

1 Like

thank you. ive been riding the struggle bus and this kinda helps take me down a new road