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 roonapi 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.23.tar.gz
(17.4 kB
view details)
Built Distribution
roonapi-0.0.23-py3-none-any.whl
(18.5 kB
view details)
File details
Details for the file roonapi-0.0.23.tar.gz
.
File metadata
- Download URL: roonapi-0.0.23.tar.gz
- Upload date:
- Size: 17.4 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: poetry/1.1.3 CPython/3.7.9 Linux/5.4.0-1026-azure
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 5b9b3ffd463c6380d580ceae0acbce1e8812be21333d1a83b5843811d23448ac |
|
MD5 | 2bbcbf7cbffc1a98cc7adf8324e6ee0c |
|
BLAKE2b-256 | 2d6f6d9caca9ba990555d43453180f0d11592f772d2f442a50bfc2472ab1a943 |
File details
Details for the file roonapi-0.0.23-py3-none-any.whl
.
File metadata
- Download URL: roonapi-0.0.23-py3-none-any.whl
- Upload date:
- Size: 18.5 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: poetry/1.1.3 CPython/3.7.9 Linux/5.4.0-1026-azure
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 2599340454ad5dd605fabf8323b3a920b414ee476c3228026b749281f6c3ffd8 |
|
MD5 | 68a80cd2a8a053f21a82849bdda74955 |
|
BLAKE2b-256 | 9a367f01a09f5f72a50064db1dbe3429735ca5d164976b40ac0d4ad35e193eb5 |