Ape / samsungctl

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

several errors on my raspberry pi #107

Open atzohy opened 5 years ago

atzohy commented 5 years ago

Hi, I can't get it to work on my raspberry running openhabian. I tried it with python 3.5.3 and 3.6.8, but I always get the same error. Anything that I'm missing here?

`[00:06:44] openhabian@openHABianPi:~$ samsungctl -i --host 192.168.0.108 --method websocket Traceback (most recent call last): File "/usr/local/lib/python3.6/site-packages/samsungctl/main.py", line 53, in _read_config config_json = json.load(config_file) File "/usr/local/lib/python3.6/json/init.py", line 299, in load parse_constant=parse_constant, object_pairs_hook=object_pairs_hook, **kw) File "/usr/local/lib/python3.6/json/init.py", line 354, in loads return _default_decoder.decode(s) File "/usr/local/lib/python3.6/json/decoder.py", line 339, in decode obj, end = self.raw_decode(s, idx=_w(s, 0).end()) File "/usr/local/lib/python3.6/json/decoder.py", line 355, in raw_decode obj, end = self.scan_once(s, idx) json.decoder.JSONDecodeError: Expecting property name enclosed in double quotes: line 9 column 1 (char 160)

During handling of the above exception, another exception occurred:

Traceback (most recent call last): File "/usr/local/bin/samsungctl", line 11, in sys.exit(main()) File "/usr/local/lib/python3.6/site-packages/samsungctl/main.py", line 102, in main config = _read_config() File "/usr/local/lib/python3.6/site-packages/samsungctl/main.py", line 56, in _read_config logging.warning(message, e) NameError: name 'message' is not defined `