homestar-lg-smart-tv

3.0.3 • Public • Published

homestar-lg-smart-tv

IOTDB Bridge for LG SmartTV with IOTDB.

About

Note that we can't turn these on because when the TV is off it's not on the Internet.

See the samples for details how to add to your project, particularly model.js for use standalone and iotdb.js for use inside IOTDB.

Installation

Then:

$ npm install homestar-lg-smart-tv

Use

Set the channel to 3

const iotdb = require('iotdb')
iotdb.use("homestar-lg-smart-tv")

const things = iot.connect("LGSmartTV")
things.set(":channel", 3)

Go to HDMI

things.set(":band", "iot-purpose:band.hdmi")

Models

LGSmartTV

  • volume: integer from 0 to 100 (iot-purpose:volume)
  • band: string, see below (iot-purpose:band)
  • mute: true or false (iot-purpose:mute)
  • channel: a string, like 3-0 (iot-purpose:channel)

LG TV Bands

These are the LG bands we currently support (the underly strings used by the TV set), and their corresponding semantic definition (used with 'set').

  • anyplace.tv - iot-purpose:band.service.anyplace-tv
  • cinemanow - iot-purpose:band.service.cinemanow
  • com.webos.app.browser - iot-purpose:band.browser
  • com.webos.app.camera - iot-purpose:band.camera
  • com.webos.app.hdmi1 - iot-purpose:band.hdmi
  • com.webos.app.hdmi1 - iot-purpose:band.hdmi.1
  • com.webos.app.hdmi2 - iot-purpose:band.hdmi.2
  • com.webos.app.livetv - iot-purpose:band.tv
  • com.webos.app.miracast - iot-purpose:band.service.miracast
  • com.webos.app.notificationcenter - iot-purpose:band.info.notifications
  • com.webos.app.smartshare - iot-purpose:band.service.smartshare
  • com.webos.app.tvuserguide - iot-purpose:band.info.guide
  • crackle - iot-purpose:band.service.crackle
  • netflix - iot-purpose:band.service.netflix
  • youtube.leanback.v4 - iot-purpose:band.service.youtube

Readme

Keywords

none

Package Sidebar

Install

npm i homestar-lg-smart-tv

Homepage

homestar.io

Weekly Downloads

1

Version

3.0.3

License

Apache-2.0

Last publish

Collaborators

  • dpjanes