Skip to main content

Python library for controlling an Olleh TV STB

Project description

Build Status Coverage Status

Python library for controlling an Olleh TV set-top-boxes.


$ pip install ollehtv

If you also wish to run the development tests you will need to do

$ pip install -r requirements-dev.txt


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.

mitmproxy screenshot

mitmproxy screenshot


>>> 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

Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Files for ollehtv, version 0.1.2
Filename, size File type Python version Upload date Hashes
Filename, size ollehtv-0.1.2.tar.gz (4.7 kB) File type Source Python version None Upload date Hashes View
Filename, size ollehtv-0.1.2-py2.py3-none-any.whl (6.5 kB) File type Wheel Python version py2.py3 Upload date Hashes View

Supported by

AWS AWS Cloud computing Datadog Datadog Monitoring Facebook / Instagram Facebook / Instagram PSF Sponsor Fastly Fastly CDN Google Google Object Storage and Download Analytics Huawei Huawei PSF Sponsor Microsoft Microsoft PSF Sponsor NVIDIA NVIDIA PSF Sponsor Pingdom Pingdom Monitoring Salesforce Salesforce PSF Sponsor Sentry Sentry Error logging StatusPage StatusPage Status page