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
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)
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"]