Skip to main content

Small dependency-free Python client for Twinkly generation 2 lights

Project description

lyte

Small, dependency-free Python client for Twinkly lights born from personal frustration.

I was the principle developer on the classic Bibliopixel package but the copyright holder decided to call it in, and so I left the project but I want to preserve my animations for the lights I have.

But the only library for the Twinkly protocol uses all sorts of heavy dependencies, in particular zeromq, which means only one client per network, which is silly.

This package uses the reverse engineering work of the xled package but in a new a stripped build.

This is a proof of concept with:

  • UDP discovery on port 5555
  • HTTP authentication and JSON API calls on port 80
  • generation 2 realtime UDP frames on port 7777

Run the diagnostic script from a checkout:

python3 scripts/lyte_diagnostic.py

If UDP discovery is blocked by the network, pass the light controller IP:

python3 scripts/lyte_diagnostic.py --host 192.168.1.50

Run the Hamiltonian streamer:

python3 scripts/lyte_hamiltonian.py --host 192.168.1.50 --speed 80

Increase playback speed:

python3 scripts/lyte_hamiltonian.py --host 192.168.1.50 --speed 80

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

lyte-0.1.0.tar.gz (19.9 kB view details)

Uploaded Source

Built Distribution

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

lyte-0.1.0-py3-none-any.whl (16.7 kB view details)

Uploaded Python 3

File details

Details for the file lyte-0.1.0.tar.gz.

File metadata

  • Download URL: lyte-0.1.0.tar.gz
  • Upload date:
  • Size: 19.9 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: uv/0.10.12 {"installer":{"name":"uv","version":"0.10.12","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"macOS","version":null,"id":null,"libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":null}

File hashes

Hashes for lyte-0.1.0.tar.gz
Algorithm Hash digest
SHA256 e5881b71768c2a067cfd2397634e49fe9d8dd210dcc0d8cd1a592cce40da7231
MD5 5658723ecedfa007d245c916b78b2027
BLAKE2b-256 336f71bb8567a96a420932cf58078b951f23863e11fe6377695c27e9fcdc066b

See more details on using hashes here.

File details

Details for the file lyte-0.1.0-py3-none-any.whl.

File metadata

  • Download URL: lyte-0.1.0-py3-none-any.whl
  • Upload date:
  • Size: 16.7 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: uv/0.10.12 {"installer":{"name":"uv","version":"0.10.12","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"macOS","version":null,"id":null,"libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":null}

File hashes

Hashes for lyte-0.1.0-py3-none-any.whl
Algorithm Hash digest
SHA256 5c4ca4f349c22fbf58b3bdb1a8d36da2e24b4475002a8361945aa1646df7961d
MD5 6e58532c46caafd0ff3b990bc3a4759e
BLAKE2b-256 fccc51387720394ea3ffe4a71c29622ea306b71a3741490d470af7e861f4397e

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