Skip to main content

pyleglight

A Python module designed to control the Elgato brand Lights. For use in automation or in lieu of their Control Center app (when on a non-supported platform).

About the lights

As of this writing, the only compatible hardware is the Elgato Key Light. This hardware operates on Wifi only, anounces itself on the network via mDNS and is controllable via JSON REST. As the lights are not-multicolored the only available controls are on/off, brightness (0-100), and color temperature (from 3000k to 7000k)

Examples

When you know the IP, you can do things manually:

>>> import leglight
>>> myLight = leglight.LegLight('10.244.244.139',9123)
>>> print(myLight)
Elgato Light ABC12345689 @ 10.244.244.139:9123
>>> vars(myLight)
{'address': '10.244.244.139', 'port': 9123, 'name': '', 'server': '', 'productName': 'Elgato Key Light', 'hardwareBoardType': 53, 'firmwareBuildNumber': 192, 'firmwareVersion': '1.0.3', 'serialNumber': 'ABC12345689', 'display': 'Key Light One'}
>>> myLight.on()
>>> myLight.brightness(14)
>>> myLight.color(3500)
>>> myLight.off()
>>> 

Or you can use the discovery module:

>>> import leglight
>>> allLights = leglight.discover(2)
>>> print(allLights)
[Elgato Light ABC987654321 @ 10.244.244.142:9123, Elgato Light ABC12345689 @ 10.244.244.139:9123]
>>> for light in allLights:
...     light.on()
...     light.brightness(5)
...     light.color(3400)

License

MIT

Elgato, Key Light and other product names are copyright of their owner, CORSAIR.

Metadata

Release files for leglight 0.2.0

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for leglight 0.2.0
File Size Uploaded Provenance Actions
leglight-0.2.0.tar.gz 4.5 kB Without provenance Details for leglight-0.2.0.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for leglight 0.2.0
File Interpreter ABI Platform Actions
leglight-0.2.0-py3-none-any.whl Python 3 none any Details for leglight-0.2.0-py3-none-any.whl

Total release size: 10.6 kB

Release files / leglight-0.2.0.tar.gz

Download URL leglight-0.2.0.tar.gz
Size 4.5 kB
Tags Source
SHA-256 checksum
How to use checksums
41ab462fe12e2ec3e02ff29a00316f822b078c331c70bd36a635568bd1c4204a
BLAKE2b-256 checksum
How to use checksums
8fee11112e907f25fa635d1891ac3345d3776dc5ebcc2f6b7ababcf8bf5bffc4
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/3.1.1 pkginfo/1.5.0.1 requests/2.22.0 setuptools/42.0.2 requests-toolbelt/0.9.1 tqdm/4.41.0 CPython/3.6.9

Release files / leglight-0.2.0-py3-none-any.whl

Download URL leglight-0.2.0-py3-none-any.whl
Size 6.0 kB
Tags Python 3
SHA-256 checksum
How to use checksums
223535c92cb9c87c58c1dc2166133a8bc2eb30f47184c272cb84f19b1a07f64d
BLAKE2b-256 checksum
How to use checksums
4bd84c9a17aff89a863cd8e8688b3d61a367b227212cbcaf1b0862587dbda242
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/3.1.1 pkginfo/1.5.0.1 requests/2.22.0 setuptools/42.0.2 requests-toolbelt/0.9.1 tqdm/4.41.0 CPython/3.6.9

Security for leglight 0.2.0

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

No provenance found

None of the files in this release were uploaded with provenance metadata.

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page