cers-tv
TypeScript icon, indicating that this package has built-in type declarations

0.2.1 • Public • Published

cers-tv Build License NPM Version

node client to connect to a CERS-compatible TV

NONE OF THIS WORKS!

The only tv I have to test this with is a BRAVIA KDL-55EX723. It's old the on-board software is super-stale, the api documentation is impossible to find, and the wi-fi connection is flaky (at best) on modern routers. As such, this module (and the docs below) are simply provided for posterity.

Usage

Installation

npm i cers-tv

Instantiation

setup, configure and connect

'use strict';
import { CersTVClient, Command } from 'cers-tv';

const tv = new CersTVClient(
  '192.168.1.21', // host (required) - ip address of tv
  '11:38:11:38:11:38', // macAddress (required) - bogus mac address to use in validation step / binding)
  'node-cers-remote', // name (required) - how remote will identify itself in TV ui
  1138, // port (optional), defaults to 80
  'http' // protocol (optional), defaults to 'http'
);

Registering

tv.register().then(() =>{
  //do something
})

Get List of Remote Commands

tv.getRemoteCommandList().then((data) =>{
  console.log(data);
});	

Sending IR Commands

tv.sendIrCommand(Command.Power).then((res) => {
  console.log(res);
});

Readme

Keywords

Package Sidebar

Install

npm i cers-tv

Weekly Downloads

0

Version

0.2.1

License

MIT

Unpacked Size

14 kB

Total Files

5

Last publish

Collaborators

  • yamanote1138