Skip to main content

Control script for El Gato brand keylights

Project description

elgato

Control program for El Gato brand keylights

This Python package provides the elgato program for controlling El Gato brand lights in your local network. It wraps the excellent leglight package, providing a consistent CLI interface.

Installation

Check out this repository, and use pipenv to bootstrap a development environment:

$ pipenv install
$ pipenv shell

Then, the elgato command will be available in your environment.

Usage

elgato maintains a list of lights that it knows about, allowing you to control the power state, color temperature, and brightness via index.

Light Discovery

To get started, perform a light discovery:

$ elgato lights --discover

This will create a file ~/.config/elgato/discovered.json containing a list of discovered lights. At any time, running

$ elgato lights

will display information about these lights, while including the --discover flag will refresh the information with a discovery operation.

Power State

Among the information included is an index for each light. To turn on the first light:

$ elgato on 0

To turn it off:

$ elgato off 0

And, to toggle it:

$ elgato toggle 0

(Most people have only one light; therefore, this index argument can be omitted if you wish to operate on Light 0: elgato on, elgato off, and elgato toggle have the same effect as including the 0 argument as in the examples above. The brightness and color subcommands also support this argument scheme.)

Brightness

Use the brightness subcommand to control the brightness of a light:

$ elgato brightness --level 50
$ elgato brightness --brighter
$ elgato brightness --dimmer

The --brighter and --dimmer options take an optional parameter: a value from 0 to 100 by which to adjust the brightness; it is 10 by default.

You can also find out the current brightness level by just doing:

$ elgato brightness

Color Temperature

Use the color subcommand to control the color temperature of a light. El Gato lights range from a color temperature of 2900K to 7000K:

$ elgato color --level 5300
$ elgato color --warmer
$ elgato color --cooler

The --warmer and --cooler options take an optional parameter: a value from 0 to 4100 by which to adjust the color temperature; it is 500 by default.

You can find out the current color temperature with:

$ elgato color

Bug Reports

I would love to hear from you about what you like and don't like about this package. If you have a question, comment, or run into a problem, please file a report on the issue tracker.

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

PyElgato-1.2.0.tar.gz (17.8 kB view details)

Uploaded Source

Built Distribution

PyElgato-1.2.0-py3-none-any.whl (10.1 kB view details)

Uploaded Python 3

File details

Details for the file PyElgato-1.2.0.tar.gz.

File metadata

  • Download URL: PyElgato-1.2.0.tar.gz
  • Upload date:
  • Size: 17.8 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.4.1 importlib_metadata/3.10.0 pkginfo/1.7.0 requests/2.25.1 requests-toolbelt/0.9.1 tqdm/4.60.0 CPython/3.8.8

File hashes

Hashes for PyElgato-1.2.0.tar.gz
Algorithm Hash digest
SHA256 7834d4c6dac7a1646b5238dcec187645d6cd4d8dc4e2f3f9e0d789a3bddd369c
MD5 b44b12b22ef31ec86676ce3536fb37e9
BLAKE2b-256 9e674045fa986aad562669a78aa3e32fe41e6b7987dce4e0ddc5ed68035b95b0

See more details on using hashes here.

File details

Details for the file PyElgato-1.2.0-py3-none-any.whl.

File metadata

  • Download URL: PyElgato-1.2.0-py3-none-any.whl
  • Upload date:
  • Size: 10.1 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.4.1 importlib_metadata/3.10.0 pkginfo/1.7.0 requests/2.25.1 requests-toolbelt/0.9.1 tqdm/4.60.0 CPython/3.8.8

File hashes

Hashes for PyElgato-1.2.0-py3-none-any.whl
Algorithm Hash digest
SHA256 f3ac6e0708026e27101dbce1b08c35aab5d42b377b0ea247a9fba79b555e941c
MD5 49cefc8a77d6b1c52bd7677f04d2c8e6
BLAKE2b-256 3051fbf9f498a011cdda8a306c6e447f0257ed91a831257f25db728c21eb942b

See more details on using hashes here.

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page