therealmysteryman / udi-wled-nodeserver

GNU General Public License v3.0
2 stars 1 forks source link

Launch Favorites (saved favorite effects)? #4

Open superflytnt opened 2 years ago

superflytnt commented 2 years ago

Is it also possible to add a parameter/command within this polyglot to initiate a "favorite" effect? You can launch any of the preset effects, but I have a dozen or more "favorites" that have custom parameters and settings. Here's an example:

API Command: {"on":true,"bri":174,"transition":7,"mainseg":0,"seg":[{"id":0,"start":0,"stop":1000,"grp":1,"spc":0,"on":true,"bri":255,"col":[[255,0,255,127],[0,255,200,0],[255,200,0,99]],"fx":112,"sx":186,"ix":255,"pal":42,"sel":true,"rev":false,"mi":false},{"stop":0},{"stop":0},{"stop":0},{"stop":0},{"stop":0},{"stop":0},{"stop":0},{"stop":0},{"stop":0},{"stop":0},{"stop":0},{"stop":0},{"stop":0},{"stop":0},{"stop":0}]}

Fortunately, WLED shows me the API command code. If you can't add a dropdown that would show favorites like you already do with preset effects, is it possible to add a text box where you can copy-paste the API command code directly from the WLED user interface into your polyglot? That's a workaround and might even future-proof your polyglot against WLED updates, but I'm just speculating.

This code is saved in WLED as a favorite and it would be GREAT to be able to execute it.... either by it's NAME, it's 1-2 character "QUICK LOAD LABEL", or integer ID number.

Thank you!!