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:
@@ -125,9 +125,14 @@ public:
|
||||
///
|
||||
/// @param output the ip address of the bridge
|
||||
///
|
||||
/// @param switchOffOnBlack kill lights for black
|
||||
/// @param username username of the hue bridge (default: newdeveloper)
|
||||
///
|
||||
LedDevicePhilipsHue(const std::string& output, bool switchOffOnBlack);
|
||||
/// @param switchOffOnBlack kill lights for black (default: false)
|
||||
///
|
||||
/// @param transitiontime the time duration a light change takes in multiples of 100 ms (default: 400 ms).
|
||||
///
|
||||
LedDevicePhilipsHue(const std::string& output, const std::string& username = "newdeveloper", bool switchOffOnBlack =
|
||||
false, int transitiontime = 4);
|
||||
|
||||
///
|
||||
/// Destructor of this device
|
||||
@@ -163,6 +168,9 @@ private:
|
||||
QTimer timer;
|
||||
///
|
||||
bool switchOffOnBlack;
|
||||
/// Transition time in multiples of 100 ms.
|
||||
/// The default of the Hue lights will be 400 ms, but we want to have it snapier
|
||||
int transitiontime;
|
||||
|
||||
///
|
||||
/// Sends a HTTP GET request (blocking).
|
||||
|
Reference in New Issue
Block a user