Comments (1)
stil having issues:
here a fail paring output:
Checking API version and port...
Trying http://192.168.1.140:1925/6/system
No valid credentials found, starting pairing process...
Sending pairing request
https://192.168.1.140:1926/6/pair/request
Traceback (most recent call last):
File "/volume1/@appstore/python3/lib/python3.7/site-packages/urllib3/connectionpool.py", line 382, in _make_request
self._validate_conn(conn)
File "/volume1/@appstore/python3/lib/python3.7/site-packages/urllib3/connectionpool.py", line 1010, in validate_conn
conn.connect()
File "/volume1/@appstore/python3/lib/python3.7/site-packages/urllib3/connection.py", line 421, in connect
tls_in_tls=tls_in_tls,
File "/volume1/@appstore/python3/lib/python3.7/site-packages/urllib3/util/ssl.py", line 432, in ssl_wrap_socket
ssl_sock = ssl_wrap_socket_impl(sock, context, tls_in_tls)
File "/volume1/@appstore/python3/lib/python3.7/site-packages/urllib3/util/ssl.py", line 474, in _ssl_wrap_socket_impl
return ssl_context.wrap_socket(sock)
File "/volume1/@appstore/python3/lib/python3.7/ssl.py", line 423, in wrap_socket
session=session
File "/volume1/@appstore/python3/lib/python3.7/ssl.py", line 870, in _create
self.do_handshake()
File "/volume1/@appstore/python3/lib/python3.7/ssl.py", line 1139, in do_handshake
self._sslobj.do_handshake()
socket.timeout: _ssl.c:1074: The handshake operation timed out
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "/volume1/@appstore/python3/lib/python3.7/site-packages/requests/adapters.py", line 449, in send
timeout=timeout
File "/volume1/@appstore/python3/lib/python3.7/site-packages/urllib3/connectionpool.py", line 756, in urlopen
method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
File "/volume1/@appstore/python3/lib/python3.7/site-packages/urllib3/util/retry.py", line 532, in increment
raise six.reraise(type(error), error, _stacktrace)
File "/volume1/@appstore/python3/lib/python3.7/site-packages/urllib3/packages/six.py", line 735, in reraise
raise value
File "/volume1/@appstore/python3/lib/python3.7/site-packages/urllib3/connectionpool.py", line 706, in urlopen
chunked=chunked,
File "/volume1/@appstore/python3/lib/python3.7/site-packages/urllib3/connectionpool.py", line 385, in _make_request
self._raise_timeout(err=e, url=url, timeout_value=conn.timeout)
File "/volume1/@appstore/python3/lib/python3.7/site-packages/urllib3/connectionpool.py", line 337, in _raise_timeout
self, url, "Read timed out. (read timeout=%s)" % timeout_value
urllib3.exceptions.ReadTimeoutError: HTTPSConnectionPool(host='192.168.1.140', port=1926): Read timed out. (read timeout=2)
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "/volume1/web/api/pylips_http/pylips.py", line 470, in
pylips = Pylips(args.config)
File "/volume1/web/api/pylips_http/pylips.py", line 86, in init
self.pair()
File "/volume1/web/api/pylips_http/pylips.py", line 194, in pair
self.pair_request(data)
File "/volume1/web/api/pylips_http/pylips.py", line 200, in pair_request
r = session.post("https://" + str(self.config["TV"]["host"]) + ":1926/"+str(self.config["TV"]["apiv"])+"/pair/request", json=data, verify=False, timeout=2)
File "/volume1/@appstore/python3/lib/python3.7/site-packages/requests/sessions.py", line 590, in post
return self.request('POST', url, data=data, json=json, **kwargs)
File "/volume1/@appstore/python3/lib/python3.7/site-packages/requests/sessions.py", line 542, in request
resp = self.send(prep, **send_kwargs)
File "/volume1/@appstore/python3/lib/python3.7/site-packages/requests/sessions.py", line 655, in send
r = adapter.send(request, **kwargs)
File "/volume1/@appstore/python3/lib/python3.7/site-packages/requests/adapters.py", line 529, in send
raise ReadTimeout(e, request=request)
requests.exceptions.ReadTimeout: HTTPSConnectionPool(host='192.168.1.140', port=1926): Read timed out. (read timeout=2)
When i try:
https://192.168.1.140:1926/6/system
via a browser i get a error:
De wachttijd voor de verbinding is verstreken
De server op 192.168.1.140 doet er te lang over om te antwoorden.
When i try:
http://192.168.1.140:1925/6/system
I get a listing.
But when i set the API to use port 1925 and protocol http:// i get an error
Sending POST request to http://192.168.1.140:1925/6/input/key
Request sent!
Not Found
The server has not found anything matching the request URI
You can get technical details here.
Please continue your visit at our home page.
I have no idea why this is not working, TV seems to block port 1926 randomly, after a while it can suddenly work again, but running API on port 1925 also results in an error...
from pylips.
Related Issues (20)
- [FEAT] Docs on pairing protocol HOT 22
- [FEAT] control volume via HDMI / CEC HOT 3
- [FEAT] Some new found endpoints to document HOT 5
- 65pus6703/12 cannot pair[BUG] HOT 3
- 2020 Android TV Ambilight "lounge lights" doesn't respond[BUG] HOT 2
- 'PowerON' failure HOT 2
- [BUG] set_channel command not working
- [FEAT] Switch Picture style HOT 1
- [BUG] Pairing process fail on android TV 8 (55OLED803)
- [FEAT] Using pylips as a python module? (+ Ambilight colour control) HOT 1
- Ambilight + Hue configuration endpoint HOT 1
- [FEAT] Open Browser at URL
- Ambiligt missing modes HOT 1
- [BUG] 2020/2021 support hack?
- [BUG] Port 1926 not opened 43PUS7956
- [help request] Google assistant CURL command
- sending letters as for keyboard HOT 1
- 55PUS8007[BUG] HOT 6
- [BUG] "TypeError: option values must be strings" when writing apiversion to config HOT 2
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from pylips.