Python library for controlling an Olleh TV STB
Project description
Python library for controlling an Olleh TV set-top-boxes.
Installation
$ pip install ollehtv
If you also wish to run the development tests you will need to do
$ pip install -r requirements-dev.txt
Configuration
In order to control your STB you must also authenticate a remote using the Olleh playtv mobile app. Once you have authenticated the app, you will need to proxy an app API request to get the DEVICE_ID and SVC_PW values for your device.
Example
>>> import ollehtv >>> device_id = "xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx" >>> svc_pw = "abcdef1234567890" >>> otv = ollehtv.OllehTV(device_id, svc_pw) >>> otv.turn_on() >>> otv.unmute() >>> otv.change_channel(5) >>> otv.input_button(ollehtv.OllehTVButton.IJEON)
This example session turns on a STB, unmutes it, switches it to channel 5 and then switches it back to the previous channel.
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
ollehtv-0.1.0.tar.gz
(4.6 kB
view details)
Built Distribution
File details
Details for the file ollehtv-0.1.0.tar.gz
.
File metadata
- Download URL: ollehtv-0.1.0.tar.gz
- Upload date:
- Size: 4.6 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | a330033d459f625832efa7c778b4f1d636c415ed493ab9d3a6961dcee9793cc5 |
|
MD5 | 716e8ad57d6eb9c8f2f09ff06a08f5fa |
|
BLAKE2b-256 | 3c268cf94e1261bce51be00a8af6a552e3b245e9e5b9f20b81b1bcd8dc3b15f4 |
File details
Details for the file ollehtv-0.1.0-py2.py3-none-any.whl
.
File metadata
- Download URL: ollehtv-0.1.0-py2.py3-none-any.whl
- Upload date:
- Size: 6.3 kB
- Tags: Python 2, Python 3
- Uploaded using Trusted Publishing? No
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | a0af7d00b8c58a11bfa6a42aa1183a955bb6c6a9d39e6cbd0bd5d908ab451791 |
|
MD5 | 32a8dc754ef0570e5f2375168c6044c5 |
|
BLAKE2b-256 | c9351b1d279cb8db055f52037848eba6c7ba1ba2a7e0bb9208d16897905886d3 |