Open DJay-X opened 7 years ago
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
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
[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? 😕🤔
@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