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.22.dev1.tar.gz
(17.4 kB
view hashes)
Built Distribution
Close
Hashes for roonapi-0.0.22.dev1-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | a34afa14742cfac11a4c1895bfc7c8be072cde788ecce6e470bf8f2ac41bffdd |
|
MD5 | 3f63970054ea0e5253225d50bb3e7969 |
|
BLAKE2b-256 | 12cb54f04e2fd20d2fa26c701b1dcb15f3a10b27778be1b7cb6525e773dc5f43 |