Some preset examples are shown below. Presets can be created by capturing the current status and saving it as a preset. Or you can describe a preset with an API command. There are two types of API commands: HTTP API or JSON API. You can choose to use one or the other type, while JSON API offering more options. You then have to type these API commands into Preset in the "API command" window:
HTTP API | JSON API | Description |
---|---|---|
T=2 | {"on":"t"} | It is switched between on and off state (toggle). So when LEDs are off, they turn on and vice versa. |
T=1 | {"on":true} | The LEDs turn on (or no change if they were on before) |
T=0 | {"on":false} | The LEDs are switched off (or no change if they were already on) |
{"on":true,"tt":0} | The LEDs are switched on, the LEDs light up immediately without slowly dimming, regardless of the global setting "Transition". | |
A=128 | {"bri": 128} | The brightness is set to 50%. Minimum value is 0, maximum value (100%) is 255. Therefore 128 means the brightness of 50% |
A=~10 | {"bri":"~10"} | The brightness is increased by 10. So if this was 100 before, it will be 110. |
A=~-20 | {"bri":"~-10"} | The brightness is decreased by 20. So if this was 100 before, it will be 80. |
R=255&G=0&B=0 | {"seg":[{"col":[[255,0,0]]}]} | The color of LEDs is set to red |
R=0&G=255&B=0&A=128&FX=0 | {"seg":[{"fx":0,"col":[[0,255,0]]}],"bri":128} | The color of LEDs is set to green, brightness to 50% (value 128) and effect to solid (FX=0) |
P1=1&P2=3&PL=~ | {"ps":"1~3~"} | Iterate between presets with IDs 1 to 3: When called up, the next preset is called up and so on in cycle: 1->2->3->1->2->3->1->….. |
FX=0&R=r&G=r&B=r | Set random constant (FX=0) color |