Skip to main content

Control your Sisyphus kinetic art tables (sisyphus-industries.com)

Project description

Control your Sisyphus Kinetic Art Table from Python 3.6 with asyncio!

This initial release is mainly targeting the functionality needed for basic integrations with home automation systems such as Home Assistant:

  • Status queries (playing/paused/current playlist/current/track/brightness/speed)

  • Play controls (play/pause/shuffle/loop/set playlist/set track)

  • Table controls (movement speed, LED brightness)

Usage example

Finding tables on your network

To find the IP addresses of all tables on your local network. This is a very naive search; it assumes your subnet mask is 255.255.255.0:

from sisyphus_control import Table

ip_addrs = await Table.find_table_ips()

Once you know the IP address, connect to the table:

async with await Table.connect(ip_addr) as Table:
  # Do stuff here

Change notifications

Register for state change notifications:

table.add_listener(my_listener)

Basic controls

In addition to a bunch of properties for querying the current state of the table, Table has several methods that allow simple control:

await table.set_brightness(1.0)  # Set maximum LED brightness
await table.set_speed(0.5)  # Set half speed
await table.play()  # Resume playing (if not already playing)

Working with playlists and tracks

Playlist and Track objects represent playlists and tracks, respectively. The following code will start playing the Default Playlist, beginning at the track named “Hep” (note that neither playlists nor tracks are required to be uniquely named):

default_playlist = table.get_playlists_named("Default Playlist")[0]
hep_track = default_playlist.get_tracks_named("Hep")[0]
await hep_track.play()

Future opportunities

The following features would be reasonable to include; I’ll happily accept pull requests:

  • Playlist editing

  • Upload tracks to table

  • Track thumbnail rendering

  • Table administration (wifi settings, etc.)

  • Interactions with Sisyphus cloud

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

sisyphus_control-3.1.2-py3-none-any.whl (12.1 kB view details)

Uploaded Python 3

File details

Details for the file sisyphus_control-3.1.2-py3-none-any.whl.

File metadata

  • Download URL: sisyphus_control-3.1.2-py3-none-any.whl
  • Upload date:
  • Size: 12.1 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.4.2 importlib_metadata/4.8.1 pkginfo/1.7.1 requests/2.26.0 requests-toolbelt/0.9.1 tqdm/4.62.3 CPython/3.9.7

File hashes

Hashes for sisyphus_control-3.1.2-py3-none-any.whl
Algorithm Hash digest
SHA256 d0b3ac25698f0e4c8573973b532eee5f3c89014c19b55cacbfb2afc8bcec5800
MD5 c35539183e7bf6cba30bba320d74faf1
BLAKE2b-256 a5e047ff50b2c8152bdd11648169ca4ed7d7ff118d8dd1329f032d87c569045e

See more details on using hashes here.

Supported by

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