supersaiyanmode / PyWebOSTV

Python API for controlling LG TVs (Web OS)
MIT License
261 stars 50 forks source link

How to expand the list of api commands? #39

Closed ifeech closed 3 years ago

ifeech commented 3 years ago

I want to add commands. For example, turning on the TV. I didn't find it in the documentation. Where can I see the entire list of teams?

Gustry commented 3 years ago

For turning the TV on, it's normal that it's not in the API. It's a wake on LAN command. https://github.com/supersaiyanmode/PyWebOSTV/issues/34

Which other command are you looking for?

ifeech commented 3 years ago

О, thanks friend! I want to now, how did you get the api commands? I have not found any information in the LG documentation about ssap://. I only saw luna://

And I didn't find any information about the handshake

supersaiyanmode commented 3 years ago

Hi @ifeech, it was tricky in the beginning. LG didn't share any documentation whatsoever. I had to do it the hard way -- read through ConnectSDK source (and other similar python projects whose authors undertook similar work) and port it to Python.

The Handshake portion was (IIRC) borrowed from LG Remote project (link in the main README.md).

I am closing this issue as of now. If you have any question, feel free to re-open it.

ifeech commented 3 years ago

Thanks for your work