Giter VIP home page Giter VIP logo

android-tv-remote's Introduction

Android TV remote

A simple wrapper around ADB to send commands to Android TVs.

Currently it only allows switching input sources (since this functionality is not exposed in the Philips TV API).

Prerequisites

You need Android Debug Bridge (standard Android debugging app) installed for this tool to work, since it's just a wrapper around adb to send specific key inputs to the TV. Just google install adb %your_os% for installation instructions for your OS.

Make sure adb is added to PATH!

Install on Ubuntu:

sudo apt install adb  

Enabling remote debugging on your TV

This has to be enabled to allow adb to talk to the TV:

  1. On your TV find Android Settings > Device > About > Build and press it 7 times until you see a notification.
  2. Go back to Android Settings > Preferences > Developer options
  3. In Developer options enable 'USB debugging'. If you have a separate option for LAN/WI-FI debugging, enable it instead.

Using the tool

Set the TV's ip address with a --host parameter and a desired input source with an --input parameter (number from 1 to 6). The first time you connect to your TV it will display a promt. Answer 'yes' so it does not show up at every request.

Examples:

Select HDMI1:

python android-tv-remote.py --host %tv_ip_address% --input 1

Select SCART:

python android-tv-remote.py --host %tv_ip_address% --input 6

android-tv-remote's People

Contributors

eslavnov avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar

android-tv-remote's Issues

Can't authorize device?

Hi, I have a 65OLED873/12 and I can't seem to get adb to get authorized, the auth popup doesn't show up on my TV.

is there any particular step to follow?

I enabled adb debugging and:

adb connect IP
adb shell

Add support for app launching

Right now I use this adb command to boot up Plex automatically:

adb shell am start com.plexapp.mediaserver.smb/com.plexapp.mediaserver.ui.main.MainActivity

It'd be nice to add this functionality in android-tv-remote, maybe with:

android-tv-remote --host x.x.x.x --launch "com.plexapp.mediaserver.smb/com.plexapp.mediaserver.ui.main.MainActivity"

(this would allow, together with #2, to have automations that turn on the TV and automatically launch a given app)

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.