new-samsung-remote
v1.0.10
Published
NodeJS remote for new models of Samsung SmartTV
Downloads
58
Maintainers
Readme
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);
}
});