Skip to content

This module can communicate with old Samsung TVs over the network.

License

Notifications You must be signed in to change notification settings

piu130/samsung-tv-remote-interface

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

28 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Samsung TV remote interface

js-standard-style

dependencies Status devDependencies Status

This module can communicate with old Samsung TVs over the network.

Installation

npm install --save samsung-tv-remote-interface

Optional (keys to send to the TV):

npm install --save samsung-tv-remote-interface-keys

Quickstart

Build a new client:

const SamsungTVClient = require('samsung-tv-remote-interface')
const client = new SamsungTVClient()

Import keys (if installed):

const keys = require('samsung-tv-remote-interface-keys')

Use client:

client
  // connect to TV
  .connect('TVs IP address')
  // authenticate
  .then(() => client.authenticate('Your IP', 'Your UUID', 'Your Controller name'))
  // volume down
  .then(() => client.sendMessageByKey(keys.KEY_VOLDOWN))
  // volume up
  .then(() => client.sendMessageByKey(keys.KEY_VOLUP))

Catch errors:

client
  .catch(error => {
    // do something with error
  })

Special thanks

To the guy who made this website.

About

This module can communicate with old Samsung TVs over the network.

Topics

Resources

License

Stars

Watchers

Forks

Packages

No packages published