Giter Site home page Giter Site logo

snowleopardw / bravia_console Goto Github PK

View Code? Open in Web Editor NEW

This project forked from darkosancanin/bravia_console

0.0 1.0 0.0 84 KB

Bravia Console is a simple console interface written in Python to send remote control commands to a Sony Bravia TV.

Python 100.00%

bravia_console's Introduction

Overview

Bravia Console is a simple console interface written in Python to send remote control commands to a Sony Bravia TV.

The reason behind this project was that I wanted to watch a 3D movie via the Plex Android TV app which did not support enabling 3D. After a bit of googling, I identified a workaround for this by sending the remote control commands via HTTP via a shell script. I also found other projects doing the same in slightly different ways. Nothing worked out of the box for me or at least not how I wanted it to work. Nothing in this project is groundbreaking or new, I just wanted to a) learn a bit more how this all worked and b) to implement something that worked straight up how I wanted.

When the app is run, it will search the local network for a Bravia TV via a SSDP request. When a TV is found it will query it for its system information and then another query for all the remote control commands that it supports. When this is done, you can simply enter the command in the console to send it to the TV.

Projects on which I copied/borrowed implementation ideas from:
https://github.com/breunigs/bravia-auth-and-remote
https://github.com/aparraga/braviarc
https://github.com/bunk3r/braviapy

Note: This has been tested on Windows 10 (Python 2.7 and 3.5) and on Debian (Python 2.7) with a Sony Bravia TV (Model KDL-55W800C).

Set Up

This project relies on using a shared key which is setup manually on the TV one time.

Instructions to setup PSK (Pre-Shared Key) on TV:

  1. Navigate to: [Settings] -> [Network] -> [Home Network Setup] -> [IP Control]
  2. Set [Authentication] to [Normal and Pre-Shared Key]
  3. There should be a new menu entry [Pre-Shared Key]. Set it to '000'
    Note: To modify the PSK in this console enter 'set option psk '

Usage

python bravia_console.py

python bravia_console.py -i 192.168.0.50 -c volumeup

Banner

Usage

Help

Search

Sending Commands

Show Commands

Show Info

Show Options

Set Options

bravia_console's People

Contributors

darkosancanin avatar

Watchers

 avatar

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.