Provides a python interface to interact with Roon
Project description
python-roon
python library to interface with the Roon API (www.roonlabs.com)
Full documentation will follow asap See the tests folder for some more code examples.
Some example code:
from roon import RoonApi
appinfo = {
"extension_id": "python_roon_test",
"display_name": "Python library for Roon",
"display_version": "1.0.0",
"publisher": "marcelveldt",
"email": "mygreat@emailaddress.com"
}
token = open('mytokenfile').read()
roonapi = RoonApi(appinfo, token)
# get all zones (as dict)
print(roonapi.zones)
# get all outputs (as dict)
print(roonapi.outputs)
# receive state updates in your callback
roonapi.register_state_callback(my_state_callback)
# save the token for next time
with open('mytokenfile', 'w') as f:
f.write(roonapi.token)
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
roonapi-0.0.8.tar.gz
(15.2 kB
view details)
Built Distribution
File details
Details for the file roonapi-0.0.8.tar.gz
.
File metadata
- Download URL: roonapi-0.0.8.tar.gz
- Upload date:
- Size: 15.2 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/1.11.0 pkginfo/1.4.2 requests/2.19.1 setuptools/40.0.0 requests-toolbelt/0.8.0 tqdm/4.24.0 CPython/3.7.0
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 00db5782ebf021f19269e5046a7af6c4d18ef5dfe5bf6e597ee8a76822fcc698 |
|
MD5 | 95d37dcac0affa06b6f3c1c1697ce746 |
|
BLAKE2b-256 | 644cf3ec9e7b465a9a592acac8e783c70175ab40146cff4b2e8c995561a9bf2d |
File details
Details for the file roonapi-0.0.8-py2.py3-none-any.whl
.
File metadata
- Download URL: roonapi-0.0.8-py2.py3-none-any.whl
- Upload date:
- Size: 12.1 kB
- Tags: Python 2, Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/1.11.0 pkginfo/1.4.2 requests/2.19.1 setuptools/40.0.0 requests-toolbelt/0.8.0 tqdm/4.24.0 CPython/3.7.0
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 146f9cb5c59e6fa3cba7456deb5fbb31ce9799d0f2b949f33fbaf0f9e2f55fef |
|
MD5 | fb7f0bab359d9f6f327388fe85173d33 |
|
BLAKE2b-256 | 8c7ffb517d75e7a17f8b5ed161a1b39f2a166f6f85b4ffdbcc7e70057e5b3e5d |