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.2.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.2-py3-none-any.whl (16.6 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: lyte-0.1.2.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.2.tar.gz
Algorithm Hash digest
SHA256 ffe06583beefc5d7b0842b8ead5ee0abcb2d22f2aa719940d799293bfe920add
MD5 07c086155b6bad7d7c968158c56a9c49
BLAKE2b-256 2168b4e205951114b512d2f191d5127a9d41887ed891611c3959cbf17652aa28

See more details on using hashes here.

File details

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

File metadata

  • Download URL: lyte-0.1.2-py3-none-any.whl
  • Upload date:
  • Size: 16.6 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.2-py3-none-any.whl
Algorithm Hash digest
SHA256 662ad29c1a5c025cc5851b57ebfadec0ac4ba79f42f237828bc31d96612bc643
MD5 ddfc9964d292d0c63bceef508766a35e
BLAKE2b-256 093f3501cfc2d7d633762465488cb642a9bf68627633b0a50771b888a56bf356

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