pyLegLight API reference¶
A Python module designed to control the Elgato brand Lights.
-
leglight.discover(timeout: int = 5) → list¶ Return a list of Elgato lights on the network
Parameters: timeout – The number of seconds to wait for zeroconf discovery
-
class
leglight.LegLight(address: str, port: int, name: str = '', server: str = '')¶ Bases:
object-
brightness(level: int) → None¶ Sets the light to a specific brightness (0-100) level
-
color(temp: int) → None¶ Sets the light to a specific color temperature (2900-7000k)
-
colorFit(val: int) → int¶ Take a color temp (in K) and convert it to the format the Elgato Light wants
-
decBrightness(amount: int) → None¶ Decreases the light brightness by a set amount
-
decColor(amount: int) → None¶ Decreases the lights color temperature by a set amount
-
incBrightness(amount: int) → None¶ Increases the light brightness by a set amount
-
incColor(amount: int) → None¶ Increases the lights color temperature by a set amount
-
info() → dict¶ Gets the current light status.
-
off() → None¶ Turns the light off
-
on() → None¶ Turns the light on
-
postFit(val: int) → int¶ Take the int that the Elgato Light returns and convert it roughly back to color temp (in K)
-