Skip to main content

A python api for controlling logitech squeezeboxes via the squeezebox server.

Project description

Squeezebox Controller

A python interface for controlling logitech squeezeboxes via the squeezebox server.

The commands are sent over the JSON RPC interface to the local squeeze server.

For an explaination of the format of each command see here

Quick start:

Download from PyPI:

pip install squeezebox-controller

Usage:

from squeezebox_controller import SqueezeBoxController

controller = SqueezeBoxController("192.168.1.100", 9000)

params = {
  "player": "Lounge",
  "command": "PLAY"
}
controller.simple_command(params)

Parameter options:

command keys: [ "PLAY", "PAUSE", "POWER ON", "POWER OFF", "VOLUME UP", "VOLUME DOWN", "SLEEP", "SLEEP SONG", "SKIP", "PREVIOUS", "UNSYNC", "SHUFFLE OFF", "SHUFFLE SONGS", "SHUFFLE ALBUMS", "REPEAT OFF", "REPEAT SONG", "REPEAT PLAYLIST" ]

search types: ["SONG", "ALBUM", "ARTIST"]

queries keys: ["VOLUME", "NOW PLAYING"]

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

squeezebox-controller-0.2.tar.gz (4.7 kB view hashes)

Uploaded Source

Built Distribution

squeezebox_controller-0.2-py3-none-any.whl (5.3 kB view hashes)

Uploaded Python 3

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