Effects added to configuration file

Former-commit-id: 2ff4700ee5d5bc3a7dd5a29ecd35c1c9dd189873
This commit is contained in:
johan
2013-11-30 12:42:08 +01:00
parent 554bc30c35
commit ae1bd7d254
5 changed files with 36 additions and 12 deletions

View File

@@ -270,7 +270,7 @@ Hyperion::Hyperion(const Json::Value &jsonConfig) :
QObject::connect(&_timer, SIGNAL(timeout()), this, SLOT(update()));
// create the effect engine
_effectEngine = new EffectEngine(this);
_effectEngine = new EffectEngine(this, jsonConfig["effects"]);
// initialize the leds
update();

View File

@@ -200,6 +200,27 @@
"additionalProperties" : false
}
},
"effects" :
{
"type" : "object",
"required" : false,
"additionalProperties" :
{
"type" : "object",
"required" : false,
"properties" :
{
"script" : {
"type" : "string",
"required" : true
},
"args" : {
"type" : "object",
"required" : false
}
}
}
},
"blackborderdetector" :
{
"type" : "object",