Ape / samsungctl

Remote control Samsung televisions via a TCP/IP connection
MIT License
716 stars 189 forks source link

M Series (TimeoutError) and (ConnectionRefusedError) #104

Open chrishawnm opened 5 years ago

chrishawnm commented 5 years ago

Hello,

I have the M Series Smart TV and I'm trying to use the library you have on your Github. I'm fairly new to understanding how its done so please bear with me. I have gone through almost all of the issues that are pertaining to this lib and have not found one similar to my issue.

Here's the script I'm running:

import samsungctl import time import websocket

config = { "name": "samsungctl", "description": "PC", "id": "", "host": "192.168.XX.XX", "port": 55000, "method": "websocket", "timeout": 0, }

with samsungctl.Remote(config) as remote: remote.control("KEY_MUTE") time.sleep(0.5)

I'm currently trying to run this program in python and I'm getting a TimeoutError. Before I was getting a ConnectionRefusedError but changed a few things but I don't think it honestly made a difference.

Are there any glaring issues that you see that I'm currently doing wrong? Can this be ran on a linux os? I can't seem to get the simple command line to run either.

Thank you!

mmigdol commented 4 years ago

On my M-series TV, I had to comment out the self._read_response in the init method. I haven't dug into why that was necessary, however.

simonwanghub commented 4 years ago

UA78KU6900 can support?