yeecli is a command-line utility for controlling the YeeLight RGB LED lightbulb.
Project description
yeecli is a command-line utility for controlling the YeeLight RGB LED lightbulb. It is released under the BSD license.
Installation
You can install yeecli with pip:
pip install yeecli
Usage
To see the commands supported by yeecli, just run it without any commands. It allows you to turn the light bulb on or off, set the RGB value, the color temperature, the HSV value, etc.
yeecli does not support discovery, so you have to specify the IP of the bulb you want to use every time. To make this easier, yeecli supports using a configuration file.
Simply create a file in ~/.config/yeecli/yeecli.cfg that looks something like this:
[default] ip = 192.168.12.3 port = 55433 effect = smooth duration = 500
And the defaults will be loaded from it. All the values in it are optional, and you can override them in the command line when running the script.
You can also specify multiple bulbs like so:
[default] ip = 192.168.12.3 port = 55433 effect = smooth duration = 500 [bedroom] ip = 192.168.12.4 effect = smooth duration = 500 [hallway] ip = 192.168.12.5
Then, to select a specific bulb, just pass it to the --bulb option:
yeecli --bulb=bedroom brightness 100
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
File details
Details for the file yeecli-0.0.12.tar.gz
.
File metadata
- Download URL: yeecli-0.0.12.tar.gz
- Upload date:
- Size: 5.4 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | c8c990c9ed6e2301eef0051a1100ccbe83c73a87687dd53e1df67cb670c95003 |
|
MD5 | de07a0a6960e6788ee795dd79e60bea0 |
|
BLAKE2b-256 | fd98d967644c68f6e6fa24ddb30f357ea93bc35ff38e18adb2e55d4778bd1c97 |
File details
Details for the file yeecli-0.0.12-py2.py3-none-any.whl
.
File metadata
- Download URL: yeecli-0.0.12-py2.py3-none-any.whl
- Upload date:
- Size: 6.3 kB
- Tags: Python 2, Python 3
- Uploaded using Trusted Publishing? No
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | f06c0ec75e52c6ca02b381ec4f9273793a0b791908537b5c6c78f6a3e883c3b8 |
|
MD5 | 957365b86b53d8f2dd7d912971f2790b |
|
BLAKE2b-256 | 83e05f2e6f3c2af396c5a95d395140d3557cfd1ff26ec2623a36fd92c348b7fe |