ElgatoKeylightAPI class
Wrapper around the Elgato Key Light API. To detect lights, please use the Bonjour protocol.
The API is divided in three parts:
- Options (current configuration of the light: on/off, temperature…)
- Accessory Info (details about a light: serial number…)
- Settings (some settings of the light: power on brightness…)
Constructors
- ElgatoKeylightAPI.new({required String ip, required int port})
Properties
Methods
-
formatUrl(
String endpoint) → String -
getLightAccessoryInfo(
) → Future< KeyLightInfo> - Returns information about a light (serial number…)
-
getLightOptions(
) → Future< KeyLightOptions> - Returns the current configuration of a light
-
getLightSettings(
) → Future< KeyLightSettings> - Returns some extra information about a light
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
toString(
) → String -
A string representation of this object.
inherited
-
updateLightOptions(
KeyLightOptions newOptions) → Future< bool> - Update a light configuration. Note: wait a few milliseconds between each request, as the call may be ignored otherwise
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited