Skip to main content

Pisco

Pisco is a keyboard-only controller for Sonos speakers. While Pisco's graphical interface displays the album art of the track currently playing, you can control playback using your keyboard.

Pisco running on macOS

Pisco has been tested on Linux and macOS. It is especially well suited for use with small displays (e.g. Pimoroni HyperPixel 4.0 Square) and media remote controls (e.g. Satechi Bluetooth Multi-Media Remote).

Pisco running on a Raspberry Pi Zero attached to a Pimoroni HyperPixel 4.0 Square surrounded by a Satechi Bluetooth Multi-Media Remote and a Sonos speaker

Setup

To set up Pisco on a regular Linux or macOS machine, follow these steps:

  1. Make sure you are using Python 3.9 or higher.
  2. Create a virtual environment if you do not want to clutter up your default environment.
  3. Install Pisco:
    pip3 install pisco
    

For a clean and minimalist deployment on a Raspberry Pi Zero, please see the directory deployment.

Usage

When starting Pisco, you need to specify the name of the Sonos device (i.e. Sonos room) you want to control:

pisco Leseecke  # Replace 'Leseecke' with the name of your Sonos device.

You can use the option --help to find additional options:

$ pisco --help
Usage: pisco [OPTIONS] SONOS_DEVICE_NAME

  Control your Sonos device with your keyboard

Options:
  -b, --backlight DIRECTORY    sysfs directory of the backlight that should be
                               deactivated when the device is not playing
  -w, --width INTEGER RANGE    width of the Pisco window  [default: 320; x>=0]
  -h, --height INTEGER RANGE   height of the Pisco window  [default: 320;
                               x>=0]
  -r, --refresh INTEGER RANGE  time in milliseconds after which playback
                               information is updated  [default: 40; x>=1]
  --help                       Show this message and exit.

Once Pisco is running, you can use the following keys to control playback:

  • ⏯ (or return) to pause or resume playback
  • ⏹ to stop playback
  • ⏮ and ⏭ (or left and right arrow) to play the previous or next track
  • 0️⃣ to 9️⃣ to play the top 10 tracks (or radio stations) of your Sonos favorites
  • ➕ and ➖ (or up and down arrow) to increase or decrease volume
  • 🔇 to mute or unmute

Metadata

Release files for pisco 0.6.1

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for pisco 0.6.1
File Size Uploaded
pisco-0.6.1.tar.gz 11.3 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for pisco 0.6.1
File Interpreter ABI Platform
pisco-0.6.1-py3-none-any.whl Python 3 none any Details

Total release size: 24.8 kB

Release files / pisco-0.6.1.tar.gz

Download URL pisco-0.6.1.tar.gz
Size 11.3 kB
Tags Source
SHA-256 checksum
How to use checksums
3b4e288f9748d8f9ba204d6ab089973fcaf45a5ec5124fc07754b92c040e8f7c
BLAKE2b-256 checksum
How to use checksums
88d157da6a6f67c63296dc4900aba69ed84178d5ae89c928d089012256771cc8
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via poetry/1.7.1 CPython/3.9.18 Linux/6.2.0-1018-azure

Release files / pisco-0.6.1-py3-none-any.whl

Download URL pisco-0.6.1-py3-none-any.whl
Size 13.5 kB
Tags Python 3
SHA-256 checksum
How to use checksums
f94f269e57d35ee0191965ebc4eafca43023b546a6a0a1a69ea23d6d6329ec88
BLAKE2b-256 checksum
How to use checksums
237eda3713117ac79be7cc394ca9040984f88f97de615541385043626a965095
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via poetry/1.7.1 CPython/3.9.18 Linux/6.2.0-1018-azure

Release history Release notifications | RSS feed

This release

0.6.1 This release

2 release files

0.6.0

2 release files

0.5.6

2 release files

0.5.5

2 release files

0.5.4

2 release files

0.5.3

2 release files

0.5.2

2 release files

0.5.1

2 release files

0.5.0

2 release files

0.4.7

2 release files

0.4.6

2 release files

0.4.5

2 release files

0.4.4

2 release files

0.4.3

2 release files

0.4.2

2 release files

0.4.1

2 release files

0.4.0

2 release files

0.3.0

2 release files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page