new-samsung-remote

1.0.10 • Public • Published

NodeJS remote for new models of Samsung SmartTV

Since 2015-2016 Samsung changed it's protocol thus the old ways of interacting with the Smart Tvs are no longer working. Now, Samsung uses a REST API who receives a JSON document.

Installation

npm install new-samsung-remote --save

Usage:

const Remote = require('new-samsung-remote');
        
const config = {
        ip_address: '192.168.0.101', // required: IP address of your Samsung Smart TV
        name: "New Samsung Remote"
};      
    
const remote = Remote(config);
    
remote.api_active();
    
remote.sendKey('KEY_PRECH', function(err, res){
    if (err) {
        throw new Error(err);
    } else {
        console.log(res);
    }
});

Package Sidebar

Install

npm i new-samsung-remote

Weekly Downloads

4

Version

1.0.10

License

ISC

Last publish

Collaborators

  • andrei10k