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 Distributions
No source distribution files available for this release.See tutorial on generating distribution archives.
Built Distribution
Close
Hashes for roonapi-0.0.3-py2.py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 5514ff42680f3cbb0ab58ba1122b9f4f0e292151c3fc7bd8ba8c0770e6252bf3 |
|
MD5 | 78bfc440d8ddf91f572fe6df284f589f |
|
BLAKE2b-256 | 8aa00abcc2ef0c16383cea12453e8767867b40a0833b39863293999328fc0945 |