Skip to main content

Python bindings for the Orange Livebox Play TV appliance

Project description

liveboxplaytv
============

This library is intended for controlling an Orange Livebox Play TV appliance

.. code-block::

from liveboxplaytv import LiveboxPlayTv

# Init
l = LiveboxPlayTv('livebox-play.lan')

# 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

# Set current channel
l.channel = 'Arte'

# 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 liveboxplaytv import KEYS
l.press_key(KEYS['LEFT'])

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

.. code-block::

$ liveboxplaytv -h
usage: liveboxplaytv [-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

liveboxplaytv-1.4.7.tar.gz (7.5 kB view details)

Uploaded Source

File details

Details for the file liveboxplaytv-1.4.7.tar.gz.

File metadata

  • Download URL: liveboxplaytv-1.4.7.tar.gz
  • Upload date:
  • Size: 7.5 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No

File hashes

Hashes for liveboxplaytv-1.4.7.tar.gz
Algorithm Hash digest
SHA256 ce0cd70dd4039cce52f7b11e44a9fc65df2c78f8c65d8f4bff771767beb547c9
MD5 4e4171fa53a6996436a883c9cf8e8d94
BLAKE2b-256 2e1bf6ccfad30fe1eb58e9468c0bc4a521fd97503796483554fa43998084a524

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