JSPM

  • ESM via JSPM
  • ES Module Entrypoint
  • Export Map
  • Keywords
  • License
  • Repository URL
  • TypeScript Types
  • README
  • Created
  • Published
  • 0
  • Score
    100M100P100Q69197F
  • License ISC

Command your LG TV over serial port - fork of https://github.com/ybizeul/lgtv-serial but with all commands

Package Exports

  • lgtv-serial-complete
  • lgtv-serial-complete/lgtv.js

This package does not declare an exports field, so the exports above have been automatically detected and optimized by JSPM instead. If any package subpath is missing, it is recommended to post an issue to the original package (lgtv-serial-complete) to support the "exports" field. If that is not possible, create a JSPM override to customize the exports field for this package.

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