lgtv-serial

0.9.2 • Public • Published

About

This module lets you command a LG TV over the serial port of your computer (or Raspberry Pi).

Example

const LGTV = require("lgtv-serial")

lgtv = new LGTV("/dev/ttyUSB0")

// Power off TV
lgtv.set("power",0)
    .then(r => { 
        console.log(`Success : ${r}`)
    })

// Get current status
lgtv.get("power")
    .then(r => { 
        console.log(`Current state : ${r}`)
    })

Readme

Keywords

Package Sidebar

Install

npm i lgtv-serial

Weekly Downloads

3

Version

0.9.2

License

ISC

Unpacked Size

5.44 kB

Total Files

3

Last publish

Collaborators

  • ybizeul