Metadata-Version: 2.1
Name: squeezebox-controller
Version: 0.4
Summary: A python api for controlling logitech squeezeboxes via the squeezebox server.
Home-page: https://github.com/jackoson/squeezebox-controller
Author: Jackoson
License: UNKNOWN
Platform: UNKNOWN
Classifier: Programming Language :: Python :: 3
Classifier: License :: OSI Approved :: MIT License
Classifier: Operating System :: OS Independent
Description-Content-Type: text/markdown
Requires-Dist: requests

# 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](https://gist.github.com/samtherussell/335bf9ba75363bd167d2470b8689d9f2)

## Quick start:
Download from [PyPI](https://pypi.org/project/squeezebox-controller):
```bash
pip install squeezebox-controller
```
Usage:
```python
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"]


