Skip to main content

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

Project description

Squeezebox Controller

Documentation Status Build Status

A python 3 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-1.0.4.tar.gz (7.4 kB view details)

Uploaded Source

Built Distribution

squeezebox_controller-1.0.4-py3-none-any.whl (8.3 kB view details)

Uploaded Python 3

File details

Details for the file squeezebox-controller-1.0.4.tar.gz.

File metadata

  • Download URL: squeezebox-controller-1.0.4.tar.gz
  • Upload date:
  • Size: 7.4 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.1.1 pkginfo/1.5.0.1 requests/2.22.0 setuptools/45.2.0.post20200210 requests-toolbelt/0.9.1 tqdm/4.42.1 CPython/3.7.6

File hashes

Hashes for squeezebox-controller-1.0.4.tar.gz
Algorithm Hash digest
SHA256 d66a853e4a87a0b00827b08894f3e20426df986f858f8261b34f0ce662d6e055
MD5 e56ac1c58ea920a148edbc1e28b7204b
BLAKE2b-256 b77068f5464ab179bcd39f02c322ef5abc04a98fd14ebd095e48884a29dc0ea6

See more details on using hashes here.

File details

Details for the file squeezebox_controller-1.0.4-py3-none-any.whl.

File metadata

  • Download URL: squeezebox_controller-1.0.4-py3-none-any.whl
  • Upload date:
  • Size: 8.3 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.1.1 pkginfo/1.5.0.1 requests/2.22.0 setuptools/45.2.0.post20200210 requests-toolbelt/0.9.1 tqdm/4.42.1 CPython/3.7.6

File hashes

Hashes for squeezebox_controller-1.0.4-py3-none-any.whl
Algorithm Hash digest
SHA256 60e24afecf9e7d663ffb4eae9cfd2a0cdc519697cacc8d5bab2cbf13aec50747
MD5 b9f2e25b3de4456d57fddefec21ac336
BLAKE2b-256 755c952f27b172afb3f5e11fd2e6733f40caf83e466b8ba7483d945c3e8466e4

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