项目作者: teitei-tk

项目描述 :
Remote Control your Sony Bravia TV
高级语言: TypeScript
项目地址: git://github.com/teitei-tk/bravia.git
创建时间: 2018-05-23T13:22:43Z
项目社区:https://github.com/teitei-tk/bravia

开源协议:Apache License 2.0

下载


bravia

npm version

Remote Control your Sony Bravia

Install

  1. $ npm i @teitei-tk/bravia
  2. or
  3. $ 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

  1. export IP_ADDR="Your TV IP address"
  2. export PSK_KEY="0000"

Usage

fetch available commands

  1. $ ./node_modules/.bin/commands
  2. Num1
  3. Num2
  4. Num3
  5. Num4
  6. Num5
  7. Num6
  8. Num7
  9. Num8
  10. Num9
  11. Num0
  12. Num11
  13. Num12
  14. Enter
  15. GGuide
  16. ChannelUp
  17. ChannelDown
  18. VolumeUp
  19. VolumeDown
  20. ....
  21. ....
  22. ....

exec command

  1. # volume up
  2. $ ./node_modules/.bin/request VolumeUp
  3. # change netflix
  4. $ ./node_modules/.bin/request Netflix

LICENSE

Apache License 2.0