This forum uses cookies
This forum makes use of cookies to store your login information if you are registered, and your last visit if you are not. Cookies are small text documents stored on your computer; the cookies set by this forum can only be used on this website and pose no security risk. Cookies on this forum also track the specific topics you have read and when you last read them. Please confirm whether you accept or reject these cookies being set.

LG smart TV
#1
Hello,
Does anybody have a script to control LG smart TV over IP?
Reply
#2
(13.02.2017, 16:53)Desislav Wrote: Hello,
Does anybody have a script to control LG smart TV over IP?

Hello,

Yes is it possible to change this python script to lua ? see : https://github.com/ubaransel/lgcommander
This is a script to control a LG smart TV.
Reply
#3
Hi,
anybody was try to control from LUA ?
Reply
#4
Here is websocket script. I've tried, but something did wrong. If anyone could use it and make LG TV control, it would be great.
https://forum.logicmachine.net/showthrea...=websocket
Reply
#5
Attached you can find the library to control LG TV with Web OS. 
It uses Lua websocket library from here https://github.com/lipp/lua-websockets. Websocket library is also available in this forum.
Just change the name of the library to yours in the coding ('user.websocket_client_sync')

It was inspired by Node.JS module https://github.com/hobbyquaker/lgtv2, you can also find a list of commands and configuration instructions there.

Coding is published as is , errors are possible Smile

The following command will turn Off the LG TV . 2 constants below are the IP address of the LG TV and the KNX group address to store the handshake key.
Code:
lg_execute_command(LGTV65_IP, LGTV65_KEY, "", "request", "ssap://system/turnOff", "")

Attached Files
.lua   lgtv.lua (Size: 7.41 KB / Downloads: 12)
Reply


Forum Jump: