pylgtv icon indicating copy to clipboard operation
pylgtv copied to clipboard

Up/Down/Left/Right keys?

Open LeandroMontanari opened this issue 7 years ago • 9 comments

Hello! Sorry, it's not exactly an issue, but I haven't found how to send the equivalent of up/down/left/right keys on remote control anywhere in your code. Is it possible?

Thanks in advance!

LeandroMontanari avatar Oct 10 '17 20:10 LeandroMontanari

Same question. Having fun playing with my tv though. Thanks!
Launching Netflix and then selecting a profile is a good use case for the directional arrow keys. Does that functionality already exist?

eponymic avatar May 17 '18 01:05 eponymic

@eponymic That's exactly why (navigate through Netflix) I need this funcion! If you find out you how, please let me know.

LeandroMontanari avatar May 17 '18 06:05 LeandroMontanari

The control keys (HOME, LEFT, RIGHT, UP, DOWN, BACK) are part of the WebOS Mouse service. This library doesn't implement that class at all. If anyone wants to attempt to implement it, you can start by looking at https://github.com/ConnectSDK/Connect-SDK-Android-Core/blob/master/src/com/connectsdk/service/WebOSTVService.java#L1938

jheiselman avatar Jun 11 '18 15:06 jheiselman

@jheiselman I will take a look. Thank you!

LeandroMontanari avatar Jun 12 '18 23:06 LeandroMontanari

FYI, I have found a repository supersaiyanmode/PyWebOSTV that claims to implement mouse control. Haven't tested it yet, but I plan to take a look at it in a few days time.

bezmi avatar Jun 18 '18 08:06 bezmi

I took a quick read over the code and the library is touching the correct API endpoints. I'll see if I can find some time to test it out as well, but it looks promising.

jheiselman avatar Jun 18 '18 13:06 jheiselman

I ended up quickly testing the input commands and they seem to work alright. I am happy to have a go at adding the extra functionality in a few days (after my exams), since I want to write a webostv remote component for homeassistant anyway.

bezmi avatar Jun 18 '18 13:06 bezmi

Nice! I may just switch libraries because I'm using a roll-your-own automation. Though I really should give homeassistant another try.

jheiselman avatar Jun 18 '18 14:06 jheiselman

I just submitted a pull request to implement this: https://github.com/TheRealLink/pylgtv/pull/18

poroping avatar Oct 06 '19 11:10 poroping