Skip to main content

Python bindings for the EETV appliance

Project description

# python-eetv
EETV Bindings for Python

eetv
============

This library is intended for controlling an EETV Set Top Box

.. code-block::

from eetv import EETV
//TODO: Document how to find the Authorisation Key
# Init
l = EETV('192.168.1.11',"AUTHKEY")

# Check if the box is on
l.is_on

# Turn the box off
l.turn_off()

# and back on
l.turn_on()

# Query current channel
l.channel

# Switch to channel number 7
l.channel = '#7'

# Raise volume
l.volume_up()

# Lower volume
l.volume_down()

# Mute volume
l.mute()

# Next channel
l.channel_up()

# Previous channel
l.channel_down()

# Virtually press a key on the remote
from eetv import KEYS
l.press_key("left"])

There also is a CLI script that ships with this package:

.. code-block::
// TODO: Fix Examples
$ eetv -h -K
usage: eetv [-h] -H HOSTNAME [-j] [-d]
{key,vol,info,state,on,off,channel,notify,op} ...

positional arguments:
{key,vol,info,state,on,off,channel,notify,op}
Action
key Press an arbitrary key
vol Volume Control
info Get info
state Get the current state (on or off)
on Turn the Livebox Play appliance on
off Turn the Livebox Play appliance off
channel Get or set the current channel
notify Wait and notify of new events
op [DEBUG] Send request

optional arguments:
-h, --help show this help message and exit
-H HOSTNAME, --hostname HOSTNAME
IP address or hostname of the Livebox Play
-j, --json Format output as JSON
-d, --debug Debug mode

Project details


Download files

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

Source Distribution

eetv-0.0.8.tar.gz (6.1 kB view details)

Uploaded Source

File details

Details for the file eetv-0.0.8.tar.gz.

File metadata

  • Download URL: eetv-0.0.8.tar.gz
  • Upload date:
  • Size: 6.1 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/1.12.1 pkginfo/1.4.2 requests/2.20.0 setuptools/39.0.1 requests-toolbelt/0.8.0 tqdm/4.28.1 CPython/3.7.1

File hashes

Hashes for eetv-0.0.8.tar.gz
Algorithm Hash digest
SHA256 e41fb70de6c7726e772dfe7ae509e71d4c2d99874c5a2a3f0d204790540c86a3
MD5 d2f554163c2ba737423f0befb9f7b4e9
BLAKE2b-256 6d80ea9f29f6e509dc5a01e85735bb5931f9d95f71cd7782b05eddbd462d5b2a

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page