eetv-0.0.8
توضیحات
Python bindings for the EETV appliance
| ویژگی | مقدار |
|---|---|
| سیستم عامل | - |
| نام فایل | eetv-0.0.8 |
| نام | eetv |
| نسخه کتابخانه | 0.0.8 |
| نگهدارنده | [] |
| ایمیل نگهدارنده | [] |
| نویسنده | Kev Swindells |
| ایمیل نویسنده | kjs@kjs1982.me.uk |
| آدرس صفحه اصلی | https://github.com/kevjs1982/python-eetv |
| آدرس اینترنتی | https://pypi.org/project/eetv/ |
| مجوز | GPL3 |
# 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
نحوه نصب
نصب پکیج whl eetv-0.0.8:
pip install eetv-0.0.8.whl
نصب پکیج tar.gz eetv-0.0.8:
pip install eetv-0.0.8.tar.gz