Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/teitei-tk/bravia

Remote Control your Sony Bravia TV
https://github.com/teitei-tk/bravia

android-tv api-client iot sony sony-bravia-tv typescript

Last synced: 14 days ago
JSON representation

Remote Control your Sony Bravia TV

Awesome Lists containing this project

README

        

# bravia
[![npm version](https://badge.fury.io/js/%40teitei-tk%2Fbravia.svg)](https://badge.fury.io/js/%40teitei-tk%2Fbravia)

Remote Control your Sony Bravia

## Install

```bash
$ npm i @teitei-tk/bravia

or

$ yarn add @teitei-tk/bravia
```

## Setup
### TV Setup
* Turn on your TV
* On the TV go to Settings > Network > Home network setup > Remote device/Renderer > On
* On the TV go to Settings > Network > Home network setup > IP Control > Authentication > Normal and Pre-Shared Key
* On the TV go to Settings > Network > Home network setup > Remote device/Renderer > Enter Pre-Shared Key > 0000 (or whatever you want your PSK Key to be)
* On the TV go to Settings > Network > Home network setup > Remote device/Renderer > Simple IP Control > On

### Environment Variable
```bash
export IP_ADDR="Your TV IP address"
export PSK_KEY="0000"
```

## Usage
#### fetch available commands
```bash
$ ./node_modules/.bin/commands
Num1
Num2
Num3
Num4
Num5
Num6
Num7
Num8
Num9
Num0
Num11
Num12
Enter
GGuide
ChannelUp
ChannelDown
VolumeUp
VolumeDown
....
....
....
```

#### exec command
```bash
# volume up
$ ./node_modules/.bin/request VolumeUp

# change netflix
$ ./node_modules/.bin/request Netflix
```

## LICENSE
Apache License 2.0