Skip to main content

Change your yeelight lamp color to scene atmosphere.

Project description

yeelight-atmosphere

The package allows you to control yeelight smart bulbs, changes color according to the color scheme of the image on the screen.

Installation

pip install yeelight-atmosphere

Usage:

python -m yeelight_atmosphere

Use --choose flag to force choose a bulb by network scanning otherwise previous bulb if exists will be used.

python -m yeelight_atmosphere --choose

To choose a part of screen to parse for a color use --strategy flag. Full screen needs more CPU.

  • Center area of screen = 0

  • Top and bottom borders = 1

  • Full screen = 2

    python -m yeelight_atmosphere --strategy 0

To modify delay of changing color use --dalay (seconds). The less the smoother.

python -m yeelight_atmosphere --delay 0.3

All flags are:

Force choose bulb
--choose / -c

Strategy, see yeelight_atmosphere/const.py
--strategy / -s

Force ip address to connect
--bulb_ip_address / -i

Bulb search timeout
--timeout / -t

Dalay of color change (sec), the less the smoother
--delay / -d

Size of queue for colors
The higher the value, the slower the transition
--queue_size / -q

The higher the value, the quicker the transition.
--saturation_factor / -f

Screenshot will be updated every N delays, 
where N is ttl and delays from parameter
--screenshot_ttl / ttl 

Dependencies:

  • Pillow
  • sqlalchemy
  • yeelight
  • colorthief

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

yeelight-atmosphere-0.5.0.tar.gz (10.7 kB view details)

Uploaded Source

File details

Details for the file yeelight-atmosphere-0.5.0.tar.gz.

File metadata

  • Download URL: yeelight-atmosphere-0.5.0.tar.gz
  • Upload date:
  • Size: 10.7 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.5.0 importlib_metadata/4.8.1 pkginfo/1.7.1 requests/2.26.0 requests-toolbelt/0.9.1 tqdm/4.62.3 CPython/3.8.8

File hashes

Hashes for yeelight-atmosphere-0.5.0.tar.gz
Algorithm Hash digest
SHA256 956246533d557f1d2f37acc1b91e50d4b052cadabd213451a85a6ab65340ad4e
MD5 529242374c02c9b373f2b8b868b882ce
BLAKE2b-256 ffebd363c2f09b1034051d3b7fe2689eb9bd5790cd00fe60d9fe5db297b848ee

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