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

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.4.0.tar.gz (9.9 kB view details)

Uploaded Source

File details

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

File metadata

  • Download URL: yeelight-atmosphere-0.4.0.tar.gz
  • Upload date:
  • Size: 9.9 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.4.0.tar.gz
Algorithm Hash digest
SHA256 ea3c6eeb7951cff27fe9583c750236d48b9c2d2af053cb47d9e55992e2a09ea6
MD5 8c6e82e6ffbee4d8fca8666d73125d4f
BLAKE2b-256 468fefbc8fbf994de97de7f1bcc8707ac1920d4c686f53d1c37567241f9029b9

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