Skip to content

PragadeshBS/lgtv

Folders and files

NameName
Last commit message
Last commit date

Latest commit

ย 

History

18 Commits
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 

Repository files navigation

๐Ÿ‘จโ€๐Ÿ’ป LG WebOS controller

A simple Node.js application to control LG WebOS TVs from the command line ๐Ÿ“บ

This application is targeting the LG Smart TVs running WebOS, i.e. later 2014 or 2015 models. Previous models used another OS and other protocols and won't work with this. โŒ

This makes use of lgtv2 APIs under the hood ๐Ÿ› ๏ธ

๐Ÿš€ Usage

  • Clone this repo ๐Ÿ“‚
  • cd to the cloned directory ๐Ÿ“
  • Run npm install ๐Ÿ“ฆ
  • Find the local IP address of the TV ๐Ÿ“ก
  • Set the ip variable (in the first line of index.js) to that IP address ๐Ÿ”ง
  • Save the file and run node ./index.js to get started ๐Ÿš€

๐Ÿ› ๏ธ TV configuration

You need to allow "LG Connect Apps" or "Mobile TV Connect" or something similar on your TV

The first time you run it against the TV, you need to give the program access to the TV by answering yes to the prompt on the TV. From then on, the received client key is used, so you don't have to perform this step again.

This cannot be used to turn on your TV, unlike the official LG remote app ๐Ÿ“ฑ

๐Ÿ“Œ Available options

  • Launch an app ๐Ÿš€
  • Switch between inputs ๐Ÿ”€
  • Send keys -> Up, down, left, right, enter, back, exit ๐ŸŽฎ
  • Get/set volume ๐Ÿ”‰
  • Increase/decrease volume by one unit ๐Ÿ”Š
  • Toggle mute ๐Ÿ”‡
  • Turn TV off ๐Ÿ“ด
  • Show a toast message ๐Ÿž

About

Node.js application to control LG WebOS TVs

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published