0.1.9 • Published 7 years ago

bravia-remote v0.1.9

Weekly downloads
2
License
ISC
Repository
github
Last release
7 years ago

bravia-remote

A library/CLI for control your sony bravia device.

npm version

Use as Command Line Tools

npm install -g bravia-remote
  Usage: bravia [options]

  Options:

    -h, --help                 output usage information
    -V, --version              output the version number
    -s, --server <ipaddr>      tv ip address
    -c, --commands <commands>  remote commands
    -k, --pskkey <psk>         PSK key
    -l, --list-device-info     device infomation
    -v, --verbose              verbose mode

  Examples: 
    # get device status
    bravia -s 192.168.0.111 -k 0000 -l

    # switch the input source and volume up
    bravia -s 192.168.0.111 -k 0000 -c "setInputSource(DisplayPort),VolumeUp"

Use as Library

npm install --save bravia-remote
import Bravia from 'bravia-remote';

const bravia = new Bravia('192.168.0.111', '0000');

bravia.connect()
  .then((deviceInfo) => {
    const targetInput = deviceInfo.inputSource.find(is => is.label === 'DisplayPort');
    return bravia.setInputSource(targetInput.uri);
  })
  .then(() => {
    return bravia.sendRemoteCommand('VolumeUp');
  })
  .catch((err) => {
    console.log(err);
  });
0.1.9

7 years ago

0.1.7

7 years ago

0.1.6

7 years ago

0.1.5

7 years ago

0.1.4

7 years ago

0.1.3

7 years ago

0.1.2

7 years ago

0.1.1

7 years ago

0.1.0

7 years ago