Updated the default configuration with one generated by HyperCon

Former-commit-id: 3ab7bdb3b1f71c1bca99dc720bd5c8e4596d1702
This commit is contained in:
T. van der Zwan 2013-12-13 18:39:42 +00:00
parent 0f56a2f021
commit af83807606

View File

@ -15,51 +15,67 @@
"name" : "MyPi", "name" : "MyPi",
"type" : "ws2801", "type" : "ws2801",
"output" : "/dev/spidev0.0", "output" : "/dev/spidev0.0",
"rate" : 500000, "rate" : 250000,
"colorOrder" : "rgb" "colorOrder" : "rgb"
}, },
/// Color manipulation configuration used to tune the output colors to specific surroundings. Contains the following fields: /// Color manipulation configuration used to tune the output colors to specific surroundings.
/// * 'hsv' : The manipulation in the Hue-Saturation-Value color domain with the following tuning parameters: /// 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 /// - 'saturationGain' The gain adjustement of the saturation
/// - 'valueGain' The gain adjustement of the value /// - '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: /// * 'red'/'green'/'blue' : The manipulation in the Red-Green-Blue color domain with the
/// - 'threshold' The minimum required input value for the channel to be on (else zero) /// 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 /// - 'gamma' The gamma-curve correction factor
/// - 'blacklevel' The lowest possible value (when the channel is black) /// - 'blacklevel' The lowest possible value (when the channel is black)
/// - 'whitelevel' The highest possible value (when the channel is white) /// - 'whitelevel' The highest possible value (when the channel is white)
/// * 'smoothing' : Smoothing of the colors in the time-domain with the following tuning parameters: ///
/// 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') /// - 'type' The type of smoothing algorithm ('linear' or 'none')
/// - 'time_ms' The time constant for smoothing algorithm in milliseconds /// - 'time_ms' The time constant for smoothing algorithm in milliseconds
/// - 'updateFrequency' The update frequency of the leds in Hz /// - 'updateFrequency' The update frequency of the leds in Hz
"color" : "color" :
{ {
"transform" :
[
{
"id" : "default",
"leds" : "0-49",
"hsv" : "hsv" :
{ {
"saturationGain" : 1.0000, "saturationGain" : 1.0000,
"valueGain" : 1.5000 "valueGain" : 1.0000
}, },
"red" : "red" :
{ {
"threshold" : 0.1000, "threshold" : 0.0000,
"gamma" : 2.0000, "gamma" : 1.0000,
"blacklevel" : 0.0000, "blacklevel" : 0.0000,
"whitelevel" : 0.8000 "whitelevel" : 1.0000
}, },
"green" : "green" :
{ {
"threshold" : 0.1000, "threshold" : 0.0000,
"gamma" : 2.0000, "gamma" : 1.0000,
"blacklevel" : 0.0000, "blacklevel" : 0.0000,
"whitelevel" : 1.0000 "whitelevel" : 1.0000
}, },
"blue" : "blue" :
{ {
"threshold" : 0.1000, "threshold" : 0.0000,
"gamma" : 2.0000, "gamma" : 1.0000,
"blacklevel" : 0.0000, "blacklevel" : 0.0000,
"whitelevel" : 1.0000 "whitelevel" : 1.0000
}, }
}
],
"smoothing" : "smoothing" :
{ {
"type" : "none", "type" : "none",
@ -331,17 +347,6 @@
} }
], ],
"effects" :
{
"paths" : ["/home/pi/hyperion/effects"]
},
"bootsequence" :
{
"effect" : "Rainbow swirl fast",
"duration_ms" : 3000
},
/// The black border configuration, contains the following items: /// The black border configuration, contains the following items:
/// * enable : true if the detector should be activated /// * enable : true if the detector should be activated
"blackborderdetector" : "blackborderdetector" :
@ -349,6 +354,22 @@
"enable" : true "enable" : true
}, },
/// 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: /// The configuration for the frame-grabber, contains the following items:
/// * width : The width of the grabbed frames [pixels] /// * width : The width of the grabbed frames [pixels]
/// * height : The height of the grabbed frames [pixels] /// * height : The height of the grabbed frames [pixels]
@ -398,5 +419,5 @@
// "port" : 19333 // "port" : 19333
// }, // },
"end-of-json" : "end-of-json" "endOfJson" : "endOfJson"
} }