mirror of
https://github.com/hyperion-project/hyperion.ng.git
synced 2025-03-01 10:33:28 +00:00
Added config options for username and transitiontime
Former-commit-id: 2ae179c670fda838115d985f40d970e10ef002ef
This commit is contained in:
@@ -192,8 +192,10 @@ LedDevice * LedDeviceFactory::construct(const Json::Value & deviceConfig)
|
||||
else if (type == "philipshue")
|
||||
{
|
||||
const std::string output = deviceConfig["output"].asString();
|
||||
const std::string username = deviceConfig.get("username", "newdeveloper").asString();
|
||||
const bool switchOffOnBlack = deviceConfig.get("switchOffOnBlack", true).asBool();
|
||||
device = new LedDevicePhilipsHue(output, switchOffOnBlack);
|
||||
const int transitiontime = deviceConfig.get("transitiontime", 4).asInt();
|
||||
device = new LedDevicePhilipsHue(output, username, switchOffOnBlack, transitiontime);
|
||||
}
|
||||
else if (type == "test")
|
||||
{
|
||||
|
Reference in New Issue
Block a user