JSON API built-in effects

Is it possible to enable one of the built-in effects API POST. If so can you point me to an example

{"seg":{"fx":1}} sets blink effect on all selected segments. You can find the list of effect IDs in FX.h, or set an effect and get the JSON state to see its FX ID.
I will add some more examples to the docs soon :slight_smile:

Perfect! with that info and this link (https://github.com/Aircoookie/WLED/wiki/List-of-effects-and-palettes) that lists all the effects and pallets {“seg”:{"pal”:pal number}}

Very cool, super easy.

Much better than coping the state from the presets…

i.e. “mainseg”:0,“seg”:[{“id”:0,“start”:0,“stop”:6,“grp”:1,“spc”:0,“of”:0,“on”:bool(1),“cct”:127,“col”:[[255,0,0],[0,0,0],[0,0,0]],“fx”:0,“sx”:29,“ix”:128,“pal”:2,“sel”:bool(1),“rev”:bool(0),“mi”:bool(0)}]}

Actually it does the same with more settings at once and greater precision (targeting only one segment).