It seems like the websocket’s getControls
command returns empty if a pattern has not had controls which has been ‘initialized’ or set before with the web UI.
Using websocat, here is what I ran:
input:
{"getConfig": true}
output:
{"activeProgram":{"activeProgramId":"GyMZWwLsg4vDJZgtW","controls":{"sliderSpeed":null}}}
Note: sliderSpeed
is null.
Next input:
{"getControls":'GyMZWwLsg4vDJZgtW'}
Output:
{"controls":{"GyMZWwLsg4vDJZgtW":{}}}
I’d expect to see {"sliderSpeed":null}
.
However, If I go into the Web UI, select the pattern and manually adjust the slider to any value, and then rerun getControls
, I the result is:
{'sliderSpeed': 0.5288}