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.tar.gz
(17.0 kB
view details)
Built Distribution
roonapi-0.0.22-py3-none-any.whl
(18.1 kB
view details)
File details
Details for the file roonapi-0.0.22.tar.gz
.
File metadata
- Download URL: roonapi-0.0.22.tar.gz
- Upload date:
- Size: 17.0 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: poetry/1.0.10 CPython/3.7.9 Linux/5.4.0-1023-azure
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 3687993944b506c4fc30d113c17f712f03cb82d97714012f837ee34ef06f5d9f |
|
MD5 | aa33b316b4e704545e9659657e375971 |
|
BLAKE2b-256 | bcf4b44554465e31406f50f47e9f7ab00f6d1de0dc766dda819a843dda273c9b |
File details
Details for the file roonapi-0.0.22-py3-none-any.whl
.
File metadata
- Download URL: roonapi-0.0.22-py3-none-any.whl
- Upload date:
- Size: 18.1 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: poetry/1.0.10 CPython/3.7.9 Linux/5.4.0-1023-azure
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 37c4ad7cbca82aa763a5c313731fd0ff03accf55d9e8a1f06336a1a304c37aa0 |
|
MD5 | a41dfdd70d50978aa2c3aab9d9623c70 |
|
BLAKE2b-256 | 6e38c19098036d471d8810cc209bdecc44fd4f63118282999d924fb5c2fc20e6 |