Rest-Server for connecting and controlling LG-WebOS TVs via REST API
- Run DEV-Server:
yarn watch
- Server-Port: See
src/config - GET
http(s)://<SERVERIP>:<SERVERPORT>/connect - Request-Data :
{
"tvIp": "<TVIP>"
}-
Use POST
http(s)://<SERVERIP>:<SERVERPORT>/callcmdfor every LG-TV-Command -
See
src/lgapi/commands.tsfor full list -
Example Request-Data for changing the channel (see function
openChannel):
{
"cmd": "openChannel",
"data": 202
}