Skip to main content

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

No source distribution files available for this release.See tutorial on generating distribution archives.

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

cute_light-0.2.0-cp312-cp312-manylinux_2_34_x86_64.whl (4.2 MB view details)

Uploaded CPython 3.12manylinux: glibc 2.34+ x86-64

File details

Details for the file cute_light-0.2.0-cp312-cp312-manylinux_2_34_x86_64.whl.

File metadata

File hashes

Hashes for cute_light-0.2.0-cp312-cp312-manylinux_2_34_x86_64.whl
Algorithm Hash digest
SHA256 81c8e231fbf10724ef14a3844a3d895748e89aafbf8dffb11d64d769a2157f7b
MD5 b67be1bc3eb2669e97e9bf7f2f60d92f
BLAKE2b-256 e0deadd6060e9bf0159da045c7375a8c7ad78d2f288b3a19b9ea10e37dee7df4

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page