Skip to content

Latest commit

 

History

History
37 lines (25 loc) · 584 Bytes

File metadata and controls

37 lines (25 loc) · 584 Bytes

LG TV Node-Middleware


Rest-Server for connecting and controlling LG-WebOS TVs via REST API


Usage

  • Run DEV-Server: yarn watch

Initialize TV-Connection

  • Server-Port: See src/config
  • GET http(s)://<SERVERIP>:<SERVERPORT>/connect
  • Request-Data :
{
  "tvIp": "<TVIP>"
}

Commands

  • Use POST http(s)://<SERVERIP>:<SERVERPORT>/callcmd for every LG-TV-Command

  • See src/lgapi/commands.ts for full list

  • Example Request-Data for changing the channel (see function openChannel):

{
  "cmd": "openChannel",
  "data": 202
}