Giter Site home page Giter Site logo

python-liveboxplaytv's Introduction

liveboxplaytv

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

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:

$ 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

python-liveboxplaytv's People

Contributors

dependabot[bot] avatar pschmitt avatar pyup-bot avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar

python-liveboxplaytv's Issues

Webscraping no longer allowed in HA

Hello, I know this is a big ask but in Home Assistant version 0.106 the Livebox Play TV integration was removed because it used web scraping (I assume to get the channel information). Would it be possible to create an updated version that just allowed status and control of the box?

I realize you have probably lots of better things to be doing with your time but it's worth asking!

Cheers,
Justin

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.