-
Notifications
You must be signed in to change notification settings - Fork 10
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
Not working with 2017er TV - connection closed #5
Comments
Exact same issue here
I found this documentation: |
Hi , i also get a connection closed with a different websocket error code 1006 The above exception was the direct cause of the following exception: Traceback (most recent call last): `
` |
I get 1002 (protocol error) on a RPi running bullseye (python3.9) `# python3 sstv2016.py 10.0.1.155 KEY_1 KEY_0 KEY_7 KEY_ENTER The above exception was the direct cause of the following exception: Traceback (most recent call last): |
Dear all,
I'm not familiar with python. I download the script and try to control my TV over command line.
System is Ubuntu 16.04 LTS
If I'm running the script I get following feedback:
root@srv0007:/var/www/html# python3 sstv2016.py xx.xx.xx.xx KEY_MUTE
Traceback (most recent call last):
File "sstv2016.py", line 38, in
remote(sys.argv[1], sys.argv[2:])
File "sstv2016.py", line 10, in remote
asyncio.get_event_loop().run_until_complete(_remote(keys_list, ip_addr))
File "/usr/lib/python3.5/asyncio/base_events.py", line 387, in run_until_complete
return future.result()
File "/usr/lib/python3.5/asyncio/futures.py", line 274, in result
raise self._exception
File "/usr/lib/python3.5/asyncio/tasks.py", line 239, in _step
result = coro.send(None)
File "sstv2016.py", line 22, in _remote
message = yield from websocket.recv()
File "/usr/local/lib/python3.5/dist-packages/websockets/protocol.py", line 299, in recv
raise ConnectionClosed(self.close_code, self.close_reason)
websockets.exceptions.ConnectionClosed: WebSocket connection is closed: code = 1000, no reason.
root@srv0007:/var/www/html#
Output on port 8001 from TV is following:
{
"id": "uuid:xxxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxx",
"name": "[TV] Samsung 7 Series (43)",
"version": "2.1.0",
"device": {
"type": "Samsung SmartTV",
"duid": "uuid:xxxxxx-xxxx-xxx-xxxxxx",
"model": "16_JAZZM_UHD",
"modelName": "UE43KS7590",
"description": "Samsung DTV RCR",
"networkType": "wired",
"ssid": "",
"ip": "xx.xxx.xxx.xxx",
"firmwareVersion": "Unknown",
"name": "[TV] Samsung 7 Series (43)",
"id": "uuid:xxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxx",
"udn": "uuid:xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxx",
"resolution": "3840x2160",
"countryCode": "DE",
"msfVersion": "2.1.0",
"smartHubAgreement": "true",
"VoiceSupport": "true",
"GamePadSupport": "true",
"wifiMac": "40:16:3b:0e:69:06",
"developerMode": "0",
"developerIP": "",
"OS": "Tizen"
},
"type": "Samsung SmartTV",
"uri": "http://xxx.xxx.xxx.xxx:8001/api/v2/",
"remote": "1.0",
"isSupport": "{"remote_available":"true","remote_fourDirections":"true","remote_touchPad":"true","remote_voiceControl":"true","DMP_available":"true","DMP_DRM_PLAYREADY":"false","DMP_DRM_WIDEVINE":"false","EDEN_available":"true"}"
}
Please can you give me an advice, how to get the script running
Thanks a lot
Regards Cinema-HD
The text was updated successfully, but these errors were encountered: