No project description provided
Project description
Cute Lights
Cute Lights is a simple library for controlling various types of smart lights threw a unified api. It is designed to be simple to use and easy to extend. It can be used as a rust crate or a c shared library. With bindings for dotnet and python.
Supported Lights
- Philips Hue
- Tp-Link Kasa
- Govee (Must have lan control enabled)
- OpenRgb
Usage
import time
import cute_light
lights = cute_light.discover_lights()
frame = cute_light.Frame()
state = True
while True:
frame.set_on_all(lights, state)
state = not state
frame.run()
frame.clear()
time.sleep(0.5)
Configuration
The configuration file is located at ~/.config/cute_lights/lights.toml. It is used to store the ip addresses and api keys for lights. The file should look like this:
[kasa]
enabled = true
addresses = [
"192.168.86.xx",
"192.168.86.xx",
]
[govee]
enabled = true
addresses = ["192.168.86.xx"]
[hue]
enabled = true
bridge_ip = "192.168.86.xx"
username = "<Your Hue Api Key>"
Language Bindings
- Rust
Project details
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distributions
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file cute_light-0.2.1-cp312-cp312-manylinux_2_34_x86_64.whl.
File metadata
- Download URL: cute_light-0.2.1-cp312-cp312-manylinux_2_34_x86_64.whl
- Upload date:
- Size: 4.2 MB
- Tags: CPython 3.12, manylinux: glibc 2.34+ x86-64
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/5.1.1 CPython/3.12.4
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
62825bff7bc40603e4f6e05ee1d63b8f519479fdf002d11a6dee1c3252de68b5
|
|
| MD5 |
eb27e543d5edafd07f1fafbe9c8424fb
|
|
| BLAKE2b-256 |
3b418bd5a5241462f89657b12b70177082b78ed0317b7d1945fb338d1fe35265
|