WeeJeWel / node-webos

webOS remote for LG TVs
31 stars 5 forks source link

How to simulate remote control channel up/down #1

Open Nevitones opened 8 years ago

Nevitones commented 8 years ago

Hi WeeJeWel,

I was wondering how to have the same remote control options from my LG TV at my notebook and after some research I found your library.

But when I call getChannels I get this:

    errorCode: "1010"
    errorText: "tuner channel map does not exist"

And when I try to use getChannel I get:

    errorCode: "BROADCAST_ERROR_1003"
    errorText: "No information"

And the setChannel with a random channelNumber returns:

    errorCode: -3965
    errorText: "db: no index for query"

My guess is that only Live TV channels can be handled with these commands, and I use "Cable TV" connected through HDMI.

Do you have any idea of how can I have the same remote control channel up/down behavior?

I thought I could send a HandleKeyInput with code 27(Channel UP (+)) and 28(Channel DOWN (-)) but I don't know if there is a command to do so. *I got this key codes from here: http://developer.lgappstv.com/TV_HELP/index.jsp?topic=%2Flge.tvsdk.references.book%2Fhtml%2FUDAP%2FUDAP%2FAnnex+A+Table+of+virtual+key+codes+on+remote+Controller.htm

I can't find a documentation to solve my doubts, so if you could shed some light about this or share some documentation links, I'll really appreciate that!

Thanks in advance!

WeeJeWel commented 8 years ago

Auch! I can't test with cable as I don't have that. I will implement channelUp and channelDown asap for you :)

Nevitones commented 8 years ago

Would you mind sharing your links/documents with me?

I hope I can learn enough to even help you with this project!

On Mon, Jan 25, 2016 at 1:00 PM, Emile Nijssen notifications@github.com wrote:

Auch! I can't test with cable as I don't have that. I will implement channelUp and channelDown asap for you :)

— Reply to this email directly or view it on GitHub https://github.com/WeeJeWel/node-webos/issues/1#issuecomment-174533629.

WeeJeWel commented 8 years ago

Sure! I got most commands from here: https://github.com/msloth/lgtv.js/blob/master/index.js#L647

Nevitones commented 8 years ago

Thanks a lot Emile!

Anyway I tried it(ssap://tv/channelDown) super excited... but with no luck unfortunately :(

Maybe it only works for liveTV cable inputs.

If you get any idea, please share with me!

On Mon, Jan 25, 2016 at 1:06 PM, Emile Nijssen notifications@github.com wrote:

Sure! I got most commands from here: https://github.com/msloth/lgtv.js/blob/master/index.js#L647

— Reply to this email directly or view it on GitHub https://github.com/WeeJeWel/node-webos/issues/1#issuecomment-174535949.