Skip to main content

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

Metadata

Release files for yeelight-atmosphere 0.6.0

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for yeelight-atmosphere 0.6.0
File Size Uploaded Provenance Actions
yeelight-atmosphere-0.6.0.tar.gz 11.8 kB Without provenance Details for yeelight-atmosphere-0.6.0.tar.gz

Release files / yeelight-atmosphere-0.6.0.tar.gz

Download URL yeelight-atmosphere-0.6.0.tar.gz
Size 11.8 kB
Tags Source
SHA-256 checksum
How to use checksums
5cc2ae5c15e01da461788b90cfcb2828907169b340ec9128ca0661a9fa9e4925
BLAKE2b-256 checksum
How to use checksums
f964261fedb6c77c2e4bd2d1965a1ad6249d5ddd7a02fe84c4a6b1a2048c4106
Upload date
Uploaded using Trusted Publishing?
What is 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

Security for yeelight-atmosphere 0.6.0

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

No provenance found

None of the files in this release were uploaded with provenance metadata.

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page