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.1-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.1-cp312-cp312-manylinux_2_34_x86_64.whl.

File metadata

File hashes

Hashes for cute_light-0.2.1-cp312-cp312-manylinux_2_34_x86_64.whl
Algorithm Hash digest
SHA256 62825bff7bc40603e4f6e05ee1d63b8f519479fdf002d11a6dee1c3252de68b5
MD5 eb27e543d5edafd07f1fafbe9c8424fb
BLAKE2b-256 3b418bd5a5241462f89657b12b70177082b78ed0317b7d1945fb338d1fe35265

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