Skip to content

Commit beea0b1

Browse files
authored
Merge pull request #238 from Niorix/main
Update random selection option for preset json-api.md
2 parents fd66367 + 57e6d06 commit beea0b1

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

docs/interfaces/json-api.md

+3-3
Original file line numberDiff line numberDiff line change
@@ -136,7 +136,7 @@ on | bool | On/Off state of the light. You can also use `"t"` instead of `true`
136136
bri | 0 to 255 | Brightness of the light. If _on_ is `false`, contains last brightness when light was on (aka brightness when _on_ is set to true). Setting _bri_ to 0 is supported but it is recommended to use the range 1-255 and use `on: false` to turn off. The state response will never have the value `0` for _bri_.
137137
transition | 0 to 65535 | Duration of the crossfade between different colors/brightness levels. One unit is 100ms, so a value of `4` results in atransition of 400ms.
138138
tt | 0 to 65535 | Similar to transition, but applies to just the current API call. Not included in state response.
139-
ps | -1 to 250 | ID of currently set preset. `1~17~` can be used to iterate through presets 1-17, or `4~10~r` to select random preset between presets 4 and 10 (inclusive).
139+
ps | -1 to 250 | ID of currently set preset. `1~17~` can be used to iterate through presets 1-17, or `4~10r` to select random preset between presets 4 and 10 (inclusive).
140140
~~pss~~ | 0 to 65535 | Bitwise indication of preset slots (0 - vacant, 1 - written). Always 0 in 0.11. Not changable. _Removed as of v0.11.1_
141141
psave | 1 to 250 (16 prior to 0.11) | Save current light config (state) to specified preset slot. Not included in state response.
142142
pl | -1 to 250 | ID of currently set playlist. _(read-olny)_
@@ -270,7 +270,7 @@ Examples of frequently requested custom API:
270270
| --- | --- |
271271
Cycle presets between 1 and 6 | `{"ps":"1~6~"}`
272272
Select random effect on _all selected_ segments | `{"seg":{"fx":"r"}}`
273-
Select random palette between 5 and 10 on segment 2 | `{"seg":[{"id":2,"pal":"5~10~r"}]}`
273+
Select random palette between 5 and 10 on segment 2 | `{"seg":[{"id":2,"pal":"5~10r"}]}`
274274
Change segment 0 name | `{"seg":[{"id":0,"n":"Your custom ASCII text"}]}`
275275
Freeze or unfreeze an effect | `{"seg":[{"id":0,"frz":true}]}` or `{"seg":[{"id":0,"frz":false}]}`
276276
Night light | `{"nl":{"on":true,"dur":10,"mode":0}}`
@@ -582,4 +582,4 @@ there is all routes for JSON API:
582582
- /json/net
583583
- /json/live // only if flag WLED_ENABLE_JSONLIVE is on
584584
- /json/pal
585-
- /json/cfg
585+
- /json/cfg

0 commit comments

Comments
 (0)