Metadata-Version: 2.1
Name: keylight
Version: 0.0.1
Summary: A CLI to control an Elgato Key Light
Home-page: https://github.com/andornaut/keylight
Author: andornaut
License: UNKNOWN
Platform: UNKNOWN
Classifier: Programming Language :: Python :: 3
Classifier: License :: OSI Approved :: MIT License
Classifier: Operating System :: OS Independent
Requires-Python: >=3.6
Description-Content-Type: text/markdown

# Keylight

A CLI to control an [Elgato Key Light](https://www.elgato.com/en/gaming/key-light).

Leverages the [pyleglight](https://gitlab.com/obviate.io/pyleglight) library.

## Requirements

* Python >= 3.6

## Installation

```bash
python3 -m pip install keylight
```

## Usage

```
$ keylight
usage: keylight [-h] [-b BRIGHTNESS] [-c COLOR] [--host HOST] [--on] [--off]

A CLI to control an Elgato Key Light

optional arguments:
  -h, --help            show this help message and exit
  -b BRIGHTNESS, --brightness BRIGHTNESS
                        0 <= brightness <= 100
  -c COLOR, --color COLOR
                        2900 <= color temperature <= 6987
  --host HOST           Hostname (without the scheme or port) of the Key
                        Light
  --on                  Turn the Key Light on
  --off                 Turn the Key Light off
```

### Examples

```
$ keylight --host=keylight --brightness 25 --color 3500 --on
Connected to: Elgato Light @ keylight:9123
Brightness: 25
Color: 3500
Turning On

$ keylight --off
Connected to: Elgato Light @ 192.168.1.100:9123
Turning Off
```

## Developing

```bash
python3 -m pip install --upgrade build
python3 -m build
python3 -m pip install --upgrade dist/*.whl 
```


