Skip to main content

yeecli is a command-line utility for controlling the YeeLight RGB LED lightbulb.

Project description

https://img.shields.io/pypi/v/yeecli.svg https://gitlab.com/stavros/yeecli/badges/master/build.svg

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


Download files

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

Source Distribution

yeecli-0.0.15.tar.gz (5.7 kB view details)

Uploaded Source

Built Distributions

yeecli-0.0.15-py3.5.egg (8.9 kB view details)

Uploaded Source

yeecli-0.0.15-py2.py3-none-any.whl (6.5 kB view details)

Uploaded Python 2 Python 3

yeecli-0.0.15-py2.7.egg (9.0 kB view details)

Uploaded Source

File details

Details for the file yeecli-0.0.15.tar.gz.

File metadata

  • Download URL: yeecli-0.0.15.tar.gz
  • Upload date:
  • Size: 5.7 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No

File hashes

Hashes for yeecli-0.0.15.tar.gz
Algorithm Hash digest
SHA256 dce29079bb34833209c69dcd3d034494ed1f2d4b9824c2019fb2f4bc67adfa96
MD5 f37dd87c1aff51fc30e885e24a4dcfc4
BLAKE2b-256 20165df55d76850972c7effe6ba0a5d048c51f734698b08b277fcbfd2fc4d221

See more details on using hashes here.

File details

Details for the file yeecli-0.0.15-py3.5.egg.

File metadata

  • Download URL: yeecli-0.0.15-py3.5.egg
  • Upload date:
  • Size: 8.9 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No

File hashes

Hashes for yeecli-0.0.15-py3.5.egg
Algorithm Hash digest
SHA256 63b411c8570c88f70793007ec48ae8b0f1a8de28dcfcaa8ce80e608606f36a80
MD5 50fccbb67ad501096230252141ca82af
BLAKE2b-256 dca5f3f29f0d81168ae0f8e1627474acea87cc41db51a801895bfe3429a1e539

See more details on using hashes here.

File details

Details for the file yeecli-0.0.15-py2.py3-none-any.whl.

File metadata

File hashes

Hashes for yeecli-0.0.15-py2.py3-none-any.whl
Algorithm Hash digest
SHA256 c1cccd85b4c2d52ad4a8dd565b9aad0d3513b51259ea0a63ba310588a14b2357
MD5 cdd36a186940de456e9278890969cf24
BLAKE2b-256 cf868d263b95a180b25f2feb7073f25bb81f917587446b9e723c9d8a9a1fb070

See more details on using hashes here.

File details

Details for the file yeecli-0.0.15-py2.7.egg.

File metadata

  • Download URL: yeecli-0.0.15-py2.7.egg
  • Upload date:
  • Size: 9.0 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No

File hashes

Hashes for yeecli-0.0.15-py2.7.egg
Algorithm Hash digest
SHA256 26423b6f62830ee9f0d314141986c41dc900e6938a75d34a16081345e29a0404
MD5 4899fd34e2c764297841b78a4d7ae4f0
BLAKE2b-256 dec538f17ef410f878dab7a0ad21251afec71e17e9a58c379cb6a04d7612aae8

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