0.9.2 • Published 3 years ago

lgtv-serial v0.9.2

Weekly downloads
9
License
ISC
Repository
github
Last release
3 years ago

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}`)
    })