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

lgcommander works intermittent #15

Open
noureddin212 opened this issue Sep 21, 2018 · 1 comment
Open

lgcommander works intermittent #15

noureddin212 opened this issue Sep 21, 2018 · 1 comment

Comments

@noureddin212
Copy link

Hello
I do not know what is causing that but sometimes the script is not working
I am running it on Pi3 on LG 2012

pi@raspberrypi:~/domoticz/scripts/python $ ./lg_tv_on.py
Traceback (most recent call last):
File "/home/pi/domoticz/scripts/python/lg.py", line 42, in
theSessionid = getSessionid()
File "/home/pi/domoticz/scripts/python/lg.py", line 25, in getSessionid
conn.request("POST", "/roap/api/auth", pairCmd, headers=headers)
File "/usr/lib/python3.4/http/client.py", line 1090, in request
self._send_request(method, url, body, headers)
File "/usr/lib/python3.4/http/client.py", line 1128, in _send_request
self.endheaders(body)
File "/usr/lib/python3.4/http/client.py", line 1086, in endheaders
self._send_output(message_body)
File "/usr/lib/python3.4/http/client.py", line 924, in _send_output
self.send(msg)
File "/usr/lib/python3.4/http/client.py", line 859, in send
self.connect()
File "/usr/lib/python3.4/http/client.py", line 836, in connect
self.timeout, self.source_address)
File "/usr/lib/python3.4/socket.py", line 509, in create_connection
raise err
File "/usr/lib/python3.4/socket.py", line 500, in create_connection
sock.connect(sa)
OSError: [Errno 113] No route to host

@ypid
Copy link

ypid commented Sep 21, 2018

It pretty much says it on the last line. Check your network, the TV was not reachable. Maybe try a ping and similar commands.

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