Skip to content

PeterHasitschka/tvControlServer

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

2 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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
}

About

Node-Server to control LG-TV via REST-Commands

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published