lgtv-serial-complete
v0.9.77
Published
Command your LG TV over serial port - fork of https://github.com/ybizeul/lgtv-serial but with all commands
Downloads
19
Readme
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}`)
})