-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathhyperion.config.json
426 lines (414 loc) · 14.1 KB
/
hyperion.config.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
// Automatically generated configuration file for 'Hyperion daemon'
// Generated by: HyperCon (The Hyperion deamon configuration file builder
{
/// Device configuration contains the following fields:
/// * 'name' : The user friendly name of the device (only used for display purposes)
/// * 'type' : The type of the device or leds (known types for now are 'ws2801', 'ldp8806',
/// 'lpd6803', 'sedu', 'adalight', 'lightpack', 'test' and 'none')
/// * 'output' : The output specification depends on selected device. This can for example be the
/// device specifier, device serial number, or the output file name
/// * 'rate' : The baudrate of the output to the device
/// * 'colorOrder' : The order of the color bytes ('rgb', 'rbg', 'bgr', etc.).
"device" :
{
"name" : "MyPi",
"type" : "ws2801",
"output" : "COM3",
"input" : 0,
"rate" : 115200,
"colorOrder" : "rgb"
},
/// Color manipulation configuration used to tune the output colors to specific surroundings.
/// The configuration contains a list of color-transforms. Each transform contains the
/// following fields:
/// * 'id' : The unique identifier of the color transformation (eg 'device_1') /// * 'leds' : The indices (or index ranges) of the leds to which this color transform applies
/// (eg '0-5, 9, 11, 12-17'). The indices are zero based. /// * 'hsv' : The manipulation in the Hue-Saturation-Value color domain with the following
/// tuning parameters:
/// - 'saturationGain' The gain adjustement of the saturation
/// - 'valueGain' The gain adjustement of the value
/// * 'red'/'green'/'blue' : The manipulation in the Red-Green-Blue color domain with the
/// following tuning parameters for each channel:
/// - 'threshold' The minimum required input value for the channel to be on
/// (else zero)
/// - 'gamma' The gamma-curve correction factor
/// - 'blacklevel' The lowest possible value (when the channel is black)
/// - 'whitelevel' The highest possible value (when the channel is white)
///
/// Next to the list with color transforms there is also a smoothing option.
/// * 'smoothing' : Smoothing of the colors in the time-domain with the following tuning
/// parameters:
/// - 'type' The type of smoothing algorithm ('linear' or 'none')
/// - 'time_ms' The time constant for smoothing algorithm in milliseconds
/// - 'updateFrequency' The update frequency of the leds in Hz
"color" :
{
"transform" :
[
{
"id" : "default",
"leds" : "*",
"hsv" :
{
"saturationGain" : 1.1500,
"valueGain" : 1.0000
},
"red" :
{
"threshold" : 0.0200,
"gamma" : 1.5000,
"blacklevel" : 0.0000,
"whitelevel" : 0.7300
},
"green" :
{
"threshold" : 0.0200,
"gamma" : 1.5000,
"blacklevel" : 0.0000,
"whitelevel" : 1.0000
},
"blue" :
{
"threshold" : 0.0200,
"gamma" : 1.5000,
"blacklevel" : 0.0000,
"whitelevel" : 0.7400
}
}
],
"smoothing" :
{
"type" : "linear",
"time_ms" : 40,
"updateFrequency" : 144.0000
}
},
/// The configuration for each individual led. This contains the specification of the area
/// averaged of an input image for each led to determine its color. Each item in the list
/// contains the following fields:
/// * index: The index of the led. This determines its location in the string of leds; zero
/// being the first led.
/// * hscan: The fractional part of the image along the horizontal used for the averaging
/// (minimum and maximum inclusive)
/// * vscan: The fractional part of the image along the vertical used for the averaging
/// (minimum and maximum inclusive)
"leds" :
[
{
"index" : 0,
"hscan" : { "minimum" : 0.2935, "maximum" : 0.3535 },
"vscan" : { "minimum" : 0.8600, "maximum" : 1.0000 }
},
{
"index" : 1,
"hscan" : { "minimum" : 0.2347, "maximum" : 0.2947 },
"vscan" : { "minimum" : 0.8600, "maximum" : 1.0000 }
},
{
"index" : 2,
"hscan" : { "minimum" : 0.1759, "maximum" : 0.2359 },
"vscan" : { "minimum" : 0.8600, "maximum" : 1.0000 }
},
{
"index" : 3,
"hscan" : { "minimum" : 0.1171, "maximum" : 0.1771 },
"vscan" : { "minimum" : 0.8600, "maximum" : 1.0000 }
},
{
"index" : 4,
"hscan" : { "minimum" : 0.0582, "maximum" : 0.1182 },
"vscan" : { "minimum" : 0.8600, "maximum" : 1.0000 }
},
{
"index" : 5,
"hscan" : { "minimum" : 0.0000, "maximum" : 0.0594 },
"vscan" : { "minimum" : 0.8600, "maximum" : 1.0000 }
},
{
"index" : 6,
"hscan" : { "minimum" : 0.0000, "maximum" : 0.1000 },
"vscan" : { "minimum" : 0.8990, "maximum" : 1.0000 }
},
{
"index" : 7,
"hscan" : { "minimum" : 0.0000, "maximum" : 0.1000 },
"vscan" : { "minimum" : 0.7990, "maximum" : 0.9010 }
},
{
"index" : 8,
"hscan" : { "minimum" : 0.0000, "maximum" : 0.1000 },
"vscan" : { "minimum" : 0.6990, "maximum" : 0.8010 }
},
{
"index" : 9,
"hscan" : { "minimum" : 0.0000, "maximum" : 0.1000 },
"vscan" : { "minimum" : 0.5990, "maximum" : 0.7010 }
},
{
"index" : 10,
"hscan" : { "minimum" : 0.0000, "maximum" : 0.1000 },
"vscan" : { "minimum" : 0.4990, "maximum" : 0.6010 }
},
{
"index" : 11,
"hscan" : { "minimum" : 0.0000, "maximum" : 0.1000 },
"vscan" : { "minimum" : 0.3990, "maximum" : 0.5010 }
},
{
"index" : 12,
"hscan" : { "minimum" : 0.0000, "maximum" : 0.1000 },
"vscan" : { "minimum" : 0.2990, "maximum" : 0.4010 }
},
{
"index" : 13,
"hscan" : { "minimum" : 0.0000, "maximum" : 0.1000 },
"vscan" : { "minimum" : 0.1990, "maximum" : 0.3010 }
},
{
"index" : 14,
"hscan" : { "minimum" : 0.0000, "maximum" : 0.1000 },
"vscan" : { "minimum" : 0.0990, "maximum" : 0.2010 }
},
{
"index" : 15,
"hscan" : { "minimum" : 0.0000, "maximum" : 0.1000 },
"vscan" : { "minimum" : 0.0000, "maximum" : 0.1010 }
},
//{
// "index" : 16,
// "hscan" : { "minimum" : 0.0000, "maximum" : 0.0594 },
// "vscan" : { "minimum" : 0.0000, "maximum" : 0.1400 }
//},
{
"index" : 17,
"hscan" : { "minimum" : 0.0582, "maximum" : 0.1182 },
"vscan" : { "minimum" : 0.0000, "maximum" : 0.1400 }
},
{
"index" : 18,
"hscan" : { "minimum" : 0.1171, "maximum" : 0.1771 },
"vscan" : { "minimum" : 0.0000, "maximum" : 0.1400 }
},
{
"index" : 19,
"hscan" : { "minimum" : 0.1759, "maximum" : 0.2359 },
"vscan" : { "minimum" : 0.0000, "maximum" : 0.1400 }
},
{
"index" : 20,
"hscan" : { "minimum" : 0.2347, "maximum" : 0.2947 },
"vscan" : { "minimum" : 0.0000, "maximum" : 0.1400 }
},
{
"index" : 21,
"hscan" : { "minimum" : 0.2935, "maximum" : 0.3535 },
"vscan" : { "minimum" : 0.0000, "maximum" : 0.1400 }
},
{
"index" : 22,
"hscan" : { "minimum" : 0.3524, "maximum" : 0.4124 },
"vscan" : { "minimum" : 0.0000, "maximum" : 0.1400 }
},
{
"index" : 23,
"hscan" : { "minimum" : 0.4112, "maximum" : 0.4712 },
"vscan" : { "minimum" : 0.0000, "maximum" : 0.1400 }
},
{
"index" : 24,
"hscan" : { "minimum" : 0.4700, "maximum" : 0.5300 },
"vscan" : { "minimum" : 0.0000, "maximum" : 0.1400 }
},
{
"index" : 25,
"hscan" : { "minimum" : 0.5288, "maximum" : 0.5888 },
"vscan" : { "minimum" : 0.0000, "maximum" : 0.1400 }
},
{
"index" : 26,
"hscan" : { "minimum" : 0.5876, "maximum" : 0.6476 },
"vscan" : { "minimum" : 0.0000, "maximum" : 0.1400 }
},
{
"index" : 27,
"hscan" : { "minimum" : 0.6465, "maximum" : 0.7065 },
"vscan" : { "minimum" : 0.0000, "maximum" : 0.1400 }
},
{
"index" : 28,
"hscan" : { "minimum" : 0.7053, "maximum" : 0.7653 },
"vscan" : { "minimum" : 0.0000, "maximum" : 0.1400 }
},
{
"index" : 29,
"hscan" : { "minimum" : 0.7641, "maximum" : 0.8241 },
"vscan" : { "minimum" : 0.0000, "maximum" : 0.1400 }
},
{
"index" : 30,
"hscan" : { "minimum" : 0.8229, "maximum" : 0.8829 },
"vscan" : { "minimum" : 0.0000, "maximum" : 0.1400 }
},
{
"index" : 31,
"hscan" : { "minimum" : 0.8818, "maximum" : 0.9418 },
"vscan" : { "minimum" : 0.0000, "maximum" : 0.1400 }
},
{
"index" : 32,
"hscan" : { "minimum" : 0.9406, "maximum" : 1.0000 },
"vscan" : { "minimum" : 0.0000, "maximum" : 0.1400 }
},
{
"index" : 33,
"hscan" : { "minimum" : 0.9000, "maximum" : 1.0000 },
"vscan" : { "minimum" : 0.0000, "maximum" : 0.1010 }
},
{
"index" : 34,
"hscan" : { "minimum" : 0.9000, "maximum" : 1.0000 },
"vscan" : { "minimum" : 0.0990, "maximum" : 0.2010 }
},
{
"index" : 35,
"hscan" : { "minimum" : 0.9000, "maximum" : 1.0000 },
"vscan" : { "minimum" : 0.1990, "maximum" : 0.3010 }
},
{
"index" : 36,
"hscan" : { "minimum" : 0.9000, "maximum" : 1.0000 },
"vscan" : { "minimum" : 0.2990, "maximum" : 0.4010 }
},
{
"index" : 37,
"hscan" : { "minimum" : 0.9000, "maximum" : 1.0000 },
"vscan" : { "minimum" : 0.3990, "maximum" : 0.5010 }
},
{
"index" : 38,
"hscan" : { "minimum" : 0.9000, "maximum" : 1.0000 },
"vscan" : { "minimum" : 0.4990, "maximum" : 0.6010 }
},
{
"index" : 39,
"hscan" : { "minimum" : 0.9000, "maximum" : 1.0000 },
"vscan" : { "minimum" : 0.5990, "maximum" : 0.7010 }
},
{
"index" : 40,
"hscan" : { "minimum" : 0.9000, "maximum" : 1.0000 },
"vscan" : { "minimum" : 0.6990, "maximum" : 0.8010 }
},
{
"index" : 41,
"hscan" : { "minimum" : 0.9000, "maximum" : 1.0000 },
"vscan" : { "minimum" : 0.7990, "maximum" : 0.9010 }
},
{
"index" : 42,
"hscan" : { "minimum" : 0.9000, "maximum" : 1.0000 },
"vscan" : { "minimum" : 0.8990, "maximum" : 1.0000 }
},
{
"index" : 43,
"hscan" : { "minimum" : 0.9406, "maximum" : 1.0000 },
"vscan" : { "minimum" : 0.8600, "maximum" : 1.0000 }
},
{
"index" : 44,
"hscan" : { "minimum" : 0.8818, "maximum" : 0.9418 },
"vscan" : { "minimum" : 0.8600, "maximum" : 1.0000 }
},
{
"index" : 45,
"hscan" : { "minimum" : 0.8229, "maximum" : 0.8829 },
"vscan" : { "minimum" : 0.8600, "maximum" : 1.0000 }
},
{
"index" : 46,
"hscan" : { "minimum" : 0.7641, "maximum" : 0.8241 },
"vscan" : { "minimum" : 0.8600, "maximum" : 1.0000 }
},
{
"index" : 47,
"hscan" : { "minimum" : 0.7053, "maximum" : 0.7653 },
"vscan" : { "minimum" : 0.8600, "maximum" : 1.0000 }
},
{
"index" : 48,
"hscan" : { "minimum" : 0.6465, "maximum" : 0.7065 },
"vscan" : { "minimum" : 0.8600, "maximum" : 1.0000 }
}
],
/// The black border configuration, contains the following items:
/// * enable : true if the detector should be activated
/// * threshold : Value below which a pixel is regarded as black (value between 0.0 and 1.0)
"blackborderdetector" :
{
"enable" : true,
"threshold" : 0.01
},
/// The configuration of the effect engine, contains the following items:
/// * paths : An array with absolute location(s) of directories with effects
/// * bootsequence : The effect selected as 'boot sequence'
"effects" :
{
"paths" :
[
"/opt/hyperion/effects"
]
},
// "bootsequence" :
// {
// "effect" : "Rainbow swirl fast",
// "duration_ms" : 3000
// },
/// The configuration for the frame-grabber, contains the following items:
/// * width : The width of the grabbed frames [pixels]
/// * height : The height of the grabbed frames [pixels]
/// * frequency_Hz : The frequency of the frame grab [Hz]
"framegrabber" :
{
"width" : 640,
"height" : 360,
"frequency_Hz" : 144.0
},
/// The configuration of the XBMC connection used to enable and disable the frame-grabber. Contains the following fields:
/// * xbmcAddress : The IP address of the XBMC-host
/// * xbmcTcpPort : The TCP-port of the XBMC-server
/// * grabVideo : Flag indicating that the frame-grabber is on(true) during video playback
/// * grabPictures : Flag indicating that the frame-grabber is on(true) during picture show
/// * grabAudio : Flag indicating that the frame-grabber is on(true) during audio playback
/// * grabMenu : Flag indicating that the frame-grabber is on(true) in the XBMC menu
/// * grabScreensaver : Flag indicating that the frame-grabber is on(true) when XBMC is on screensaver
/// * enable3DDetection : Flag indicating that the frame-grabber should switch to a 3D compatible modus if a 3D video is playing
// "xbmcVideoChecker" :
// {
// "xbmcAddress" : "127.0.0.1",
// "xbmcTcpPort" : 9090,
// "grabVideo" : true,
// "grabPictures" : true,
// "grabAudio" : true,
// "grabMenu" : false,
// "grabScreensaver" : true,
// "enable3DDetection" : true
// },
/// The configuration of the Json server which enables the json remote interface
/// * port : Port at which the json server is started
// "jsonServer" :
// {
// "port" : 19444
// },
/// The configuration of the Proto server which enables the protobuffer remote interface
/// * port : Port at which the protobuffer server is started
// "protoServer" :
// {
// "port" : 19445
// },
/// The configuration of the boblight server which enables the boblight remote interface
/// * port : Port at which the boblight server is started
// "boblightServer" :
// {
// "port" : 19333
// },
"endOfJson" : "endOfJson"
}