Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

pairing problem #3

Open
DJay-X opened this issue May 14, 2017 · 2 comments
Open

pairing problem #3

DJay-X opened this issue May 14, 2017 · 2 comments

Comments

@DJay-X
Copy link

DJay-X commented May 14, 2017

@i0null Hi and first of all thanks for your work and sharing.
Unfortunately as a newbie I have to ask for a little help.
I have a LG 55EG9209 with webOS 2.2.1 1341 running.
Not sure if your plugin is even working with my TV.
In the TV setting control by Phone is turned on.

First I had to find the correct place on my Raspberry Pi where the plugin is.
The line in your description unfortunately didn't work for me. File or Folder not found.

cd $NODE_PATH/homebridge-lgtv-2012
-bash: cd: /usr/lib/nodejs:/usr/lib/node_modules:/usr/share/javascript/homebridge-lgtv-2012: Datei oder Verzeichnis nicht gefunden

So I tried this.
pi@raspberrypi:/ $ cd /usr/local/lib/node_modules/homebridge-lgtv-2012
pi@raspberrypi:/usr/local/lib/node_modules/homebridge-lgtv-2012 $

then

pi@raspberrypi:/usr/local/lib/node_modules/homebridge-lgtv-2012 $ node -e "ip = '192.168.178.44'; lg = require('lgtv-2012').lgtv; tv = new lg({host: ip}); tv.pair_request()"

But this doesn't bring anything. No error but also no pairing code. Nothing in the Terminal and nothing on the TV Screen. Or maybe I'm in the complete wrong place.

I hope you have the time to give a hand.
Thanks in advance.
Daniel

bildschirmfoto 2017-05-14 um 14 14 54

@i0null
Copy link
Owner

i0null commented May 19, 2017

Hi,
The code for pairing is the "node-lgtv-2012" folder, but this shouldn't be a problem as you appear to have installed them as globals.

You could try issuing the pair request with the following :
curl -d "<?xml version='1.0' encoding='utf-8'?><auth><type>AuthKeyReq</type></auth>" --header "Content-Type: application/atom+xml" 192.168.178.44:8080/roap/api/auth

But if this doesent work, I think its because this version predates WebOS. You may have more success with:
https://github.com/alessiodionisi/homebridge-lgtv2

Regards,
Shane

@DJay-X
Copy link
Author

DJay-X commented May 21, 2017

Now I was able to get the plugin to run and show up in Eve App.
Unfortunately I get an Error when trying to use it

[2017-5-21 23:55:36] [TV] TV [192.168.178.44]: Success
[xmldom error] invalid doc source
@#[line:0,col:undefined]
[xmldom error] invalid doc source
@#[line:0,col:undefined]

Looks like to me that it's unfortunately not compatible with my TV? 😕🤔

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants