-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathmodule.json
445 lines (426 loc) · 10.6 KB
/
module.json
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
{
"name": "WLED",
"type": "HTTP",
"path": "Software",
"version": "2.0.0",
"description": "send CMD to your WLED",
"url":"https://github.com/zak-45/WLED-Chataigne-Module",
"downloadURL": "https://github.com/zak-45/WLED-Chataigne-Module/archive/refs/heads/main.zip",
"hasInput": true,
"hasOutput": true,
"hideDefaultCommands": false,
"hideDefaultParameters": [
"protocol"
],
"defaults": {
"baseAddress":"http://127.0.0.1/json",
"autoAdd": false,
"protocol":"JSON",
"authentication":
{
"enabled":false
}
},
"parameters": {
"Default IP": {
"type":"String",
"description": "Default WLED IP address "
},
"WLED Params":{
"type": "Container",
"description":"WLED global parameters",
"collapsed": false,
"WLED Info": {
"type": "Trigger",
"description": "WLED documentation"
},
"Update all IP": {
"type": "Boolean",
"description": "Checked, this will also update all WLED devices (IP set in group WLED -- Custom Variables and only for HTTP).",
"shortName": "loopIP",
"default":false
},
"Add new IP to manage": {
"type":"Trigger",
"description": "Click to add IP address",
"shortName": "addIP"
},
"Re Transmit UDP packet": {
"type": "Integer",
"min":0,
"max":5,
"description": "UDP protocol fast but not reliable, choose how many time retransmit packet in case of.(max 5)",
"shortName": "uDPReTransmit",
"default":0
},
"Use WS": {
"type": "Boolean",
"description": "Use Websocket connection, mainly to be used for realtime update (will not take care of LoopIP = ignore)",
"default":false
}
}
},
"values": {
},
"scripts": [
"WLEDCMD.js"
],
"commands": {
"WLED Main":
{
"menu":"WLED",
"callback":"WLEDCommands",
"parameters":{
"wledIP":{
"type":"String",
"description": "WLED IP address. If 0.0.0.0 or nul, we will take the one from WLED Params -- variable.DefaultIP",
"default":"0.0.0.0"
},
"live":{
"type":"Boolean",
"description": "Checked, WLED will receive data/command from another device (UDP)",
"default":false
},
"on":{
"type":"Boolean",
"description": "Checked, WLED will put Led On",
"default":true
},
"UDP":{
"type":"Boolean",
"description": "Checked, will send data thru UDP (improve speed, but no take care of live & on )",
"default":false
},
"UDP Port number":{
"type":"Integer",
"description": "If you want to overwrite actual UDP port (set in WLEDSYNC module), put something <> 0",
"shortName": "uDPPort",
"min":0,
"max":65535,
"default":0
},
"Main Color":{
"type":"Color",
"description": "Select the main color (double click) ",
"shortName": "wledcolor",
"default":[1,1,1,1]
},
"BackGround Color":{
"type":"Color",
"description": "Select the background color (double click) ",
"shortName": "bgcolor",
"default":[0,0,0,1]
},
"brightness":{
"type":"Float",
"description": "Select brightness ",
"min":0,
"max":255,
"default":128
},
"Effect Index":{
"type":"Integer",
"description": "ID of the effect. TIP: To see all indexes and names, command 'WLED info' and take a look at modules WLED -- Values ",
"shortName": "wledeffect",
"min":0,
"max":200,
"default":0
},
"Effect Speed":{
"type":"Float",
"description": "Relative effect speed ",
"shortName": "fxspeed",
"min":0,
"max":255,
"default":128
},
"Effect Intensity":{
"type":"Float",
"description": "Effect intensity ",
"shortName": "fxintensity",
"min":0,
"max":255,
"default":64
},
"palette":{
"type":"Integer",
"description": "ID of the color palette. TIP: To see all palettes and names, command 'WLED info' and take a look at modules WLED -- Values ",
"min":0,
"max":70,
"default":0
},
"Group name":{
"type":"String",
"description": "Group name from where take data (used by SCAnalyzer)",
"shortName": "wledgroup",
"default":"",
"readOnly":false
},
"Use WS":{
"type":"Boolean",
"description": "WebSocket for WLED (used by SCAnalyzer)",
"shortName": "wledws",
"default":false,
"readOnly":false
},
"PS number":{
"type":"Integer",
"description": "Preset/playlist number (used by SCAnalyzer)",
"shortName": "wledps",
"default":0,
"min":0,
"max":255,
"readOnly":false
},
"Transition time":{
"type":"Integer",
"description": "Duration of the crossfade between different colors/brightness levels.
One unit is 100ms, so a value of 4 results in a transition of 400ms. This applies to just the current API call.
Not included in state response (used by SCAnalyzer)",
"shortName": "wledtt",
"default":-1,
"min": -1,
"max": 255,
"readOnly":false
}
}
},
"WLED On-Off":
{
"menu":"WLED",
"callback":"WLEDOnOff",
"parameters":{
"wledIP":{
"type":"String",
"description": "WLED IP address. If 0.0.0.0 or nul, we will take the one from WLED Params -- variable.DefaultIP",
"default":"0.0.0.0"
},
"live":{
"type":"Boolean",
"description": "Checked, WLED will receive data/command from another device (UDP)",
"default":false
},
"on":{
"type":"Boolean",
"description": "Checked, WLED will put Led On",
"default":true
}
}
},
"WLED Color":
{
"menu":"WLED",
"callback":"WLEDColor",
"parameters":{
"wledIP":{
"type":"String",
"description": "WLED IP address. If 0.0.0.0 or nul, we will take the one from WLED Params -- variable.DefaultIP",
"default":"0.0.0.0"
},
"Main Color ":{
"type":"Color",
"description": "Select the color (double click) ",
"shortName" : "wledcolor",
"default":[1,1,1,1]
}
}
},
"WLED Brightness":
{
"menu":"WLED",
"callback":"WLEDBrightness",
"parameters":{
"wledIP":{
"type":"String",
"description": "WLED IP address. If 0.0.0.0 or nul, we will take the one from WLED Params -- variable.DefaultIP",
"default":"0.0.0.0"
},
"brightness ":{
"type":"Float",
"description": "Select brightness ",
"min":0,
"max":255,
"default":128
}
}
},
"WLED Effect":
{
"menu":"WLED",
"callback":"WLEDEffect",
"parameters":{
"wledIP":{
"type":"String",
"description": "WLED IP address. If 0.0.0.0 or nul, we will take the one from WLED Params -- variable.DefaultIP",
"default":"0.0.0.0"
},
"Index":{
"type":"Integer",
"description": "ID of the effect. TIP: To see all indexes and names, command 'WLED info' and take a look at modules WLED -- Values ",
"shortName": "wledeffect",
"min":0,
"max":200,
"default":0
},
"Speed":{
"type":"Float",
"description": "Relative effect speed ",
"shortName": "fxspeed",
"min":0,
"max":255,
"default":128
},
"Intensity":{
"type":"Float",
"description": "Effect intensity ",
"shortName" : "fxintensity",
"min":0,
"max":255,
"default":64
}
}
},
"WLED Effect Next":
{
"menu":"WLED",
"callback":"WLEDEffectNP",
"parameters":{
"wledIP":{
"type":"String",
"description": "WLED IP address. If 0.0.0.0 or nul, we will take the one from WLED Params -- variable.DefaultIP",
"default":"0.0.0.0"
},
"Next effect ~>":{
"type":"String",
"description": "Set Next effect. ",
"shortName": "wledeffect",
"default":"~",
"readOnly":false
}
}
},
"WLED Effect Previous":
{
"menu":"WLED",
"callback":"WLEDEffectNP",
"parameters":{
"wledIP":{
"type":"String",
"description": "WLED IP address. If 0.0.0.0 or nul, we will take the one from WLED Params -- variable.DefaultIP",
"default":"0.0.0.0"
},
"Previous effect <~-":{
"type":"String",
"description": "Set Previous effect. ",
"shortName": "wledeffect",
"default":"~-",
"readOnly":true
}
}
},
"WLED Palette":
{
"menu":"WLED",
"callback":"WLEDPalette",
"parameters":{
"wledIP":{
"type":"String",
"description": "WLED IP address. If 0.0.0.0 or nul, we will take the one from WLED Params -- variable.DefaultIP",
"default":"0.0.0.0"
},
"palette":{
"type":"Integer",
"description": "ID of the color palette. TIP: To see all palettes and names, command 'WLED info' and take a look at modules WLED -- Values ",
"min":0,
"max":100,
"default":0
}
}
},
"WLED Palette Next":
{
"menu":"WLED",
"callback":"WLEDPalette",
"parameters":{
"wledIP":{
"type":"String",
"description": "WLED IP address. If 0.0.0.0 or nul, we will take the one from WLED Params -- variable.DefaultIP",
"default":"0.0.0.0"
},
"palette":{
"type":"String",
"description": "This will select the next palette from the current ID",
"default":"~",
"readOnly":true
}
}
},
"WLED Palette Previous":
{
"menu":"WLED",
"callback":"WLEDPalette",
"parameters":{
"wledIP":{
"type":"String",
"description": "WLED IP address. If 0.0.0.0 or nul, we will take the one from WLED Params -- variable.DefaultIP",
"default":"0.0.0.0"
},
"palette":{
"type":"String",
"description": "This will select previous palette from the current ID",
"default":"~-",
"readOnly":true
}
}
},
"WLED Playlist":
{
"menu":"WLED",
"callback":"WLEDPlaylist",
"parameters":{
"wledIP":{
"type":"String",
"description": "WLED IP address. If 0.0.0.0 or nul, we will take the one from WLED Params -- variable.DefaultIP",
"default":"0.0.0.0"
},
"playlist/preset":{
"type":"Integer",
"description": "ID of the playlist/preset.",
"shortName": "playlist",
"min":0,
"max":100,
"default":0
}
}
},
"WLED Reboot":
{
"menu":"WLED",
"callback":"WLEDReboot",
"parameters":{
"wledIP":{
"type":"String",
"description": "WLED IP address. If 0.0.0.0 or nul, we will take the one from WLED Params -- variable.DefaultIP",
"default":"0.0.0.0"
},
"reboot":{
"type":"Boolean",
"description": "Checked, reboot WLED",
"default":false
}
}
},
"WLED Info":
{
"menu":"WLED",
"callback":"WLEDInfo",
"parameters":{
"wledIP":{
"type":"String",
"description": "WLED IP address. If 0.0.0.0 or nul, we will take the one from WLED Params -- variable.DefaultIP",
"default":"0.0.0.0"
}
}
}
}
}