Code: Select all
root@DiskStation:/volume3/@appstore/domoticz/var/scripts/python# pip3 intall samsungctl
-ash: pip3: command not found
Moderator: leecollings
Code: Select all
root@DiskStation:/volume3/@appstore/domoticz/var/scripts/python# pip3 intall samsungctl
-ash: pip3: command not found
I thought I had. But now it says 2.7.12DennisD wrote:Python 3.x is installed?
kingoifsnake74 wrote:Anyone? synology python is driving me nuts. 017-05-14 19:32:48.485 Error: (SamsungTV) failed to load 'plugin.py', Python Path used was '/usr/local/domoticz/var/plugins/samsungctl/:/volume1/@appstore/py3k/usr/local/lib/python35.zip:/volume1/@appstore/py3k/usr/local/lib/python3.5/:/volume1/@appstore/py3k/usr/local/lib/python3.5/plat-linux:/volume1/@appstore/py3k/usr/local/lib/python3.5/lib-dynload'.
2017-05-14 19:32:48.485 Error: (samsung tv) Module Import failed, exception: 'ImportError'
2017-05-14 19:32:48.485 Error: (samsung tv) Module Import failed: ' Name: samsungctl'
kingoifsnake74 wrote:I completely reinstalled everything in my synology. Firtst the python 3.5 module then domoticz. Pip etc. At the end still the same problems. Synology and python is a no go for me. Perhaps i will install domoticz on a rpi this weekeind thanx dor the tips btw.
Code: Select all
bert@DS1515:~$ samsungctl -i --host 192.168.2.15 --method websocket
Traceback (most recent call last):
File "/bin/samsungctl", line 11, in <module>
sys.exit(main())
File "/usr/lib/python2.7/site-packages/samsungctl/__main__.py", line 93, in main
config = _read_config()
File "/usr/lib/python2.7/site-packages/samsungctl/__main__.py", line 37, in _read_config
except FileNotFoundError:
NameError: global name 'FileNotFoundError' is not defined
/usr/lib/python2.7/site-packages/samsungctl/ --> this show that you have installed on python version 2.7bertbigb wrote:Hello,
I have a nice Samsung TV and want to control it from Domoticz.
I followed the wiki and have the following problems at this moment:
Anyone an idea what I can / have to do to get this solved? Help is appreciated.Code: Select all
bert@DS1515:~$ samsungctl -i --host 192.168.2.15 --method websocket Traceback (most recent call last): File "/bin/samsungctl", line 11, in <module> sys.exit(main()) File "/usr/lib/python2.7/site-packages/samsungctl/__main__.py", line 93, in main config = _read_config() File "/usr/lib/python2.7/site-packages/samsungctl/__main__.py", line 37, in _read_config except FileNotFoundError: NameError: global name 'FileNotFoundError' is not defined
Hi Zak,zak45 wrote: /usr/lib/python2.7/site-packages/samsungctl/ --> this show that you have installed on python version 2.7
Plugin system need python 3.x !
Got it work on my Synology. Originally I got the same error, then I had a quick look in the plugin.py:kingoifsnake74 wrote:Anyone? synology python is driving me nuts. 017-05-14 19:32:48.485 Error: (SamsungTV) failed to load 'plugin.py', Python Path used was '/usr/local/domoticz/var/plugins/samsungctl/:/volume1/@appstore/py3k/usr/local/lib/python35.zip:/volume1/@appstore/py3k/usr/local/lib/python3.5/:/volume1/@appstore/py3k/usr/local/lib/python3.5/plat-linux:/volume1/@appstore/py3k/usr/local/lib/python3.5/lib-dynload'.
2017-05-14 19:32:48.485 Error: (samsung tv) Module Import failed, exception: 'ImportError'
2017-05-14 19:32:48.485 Error: (samsung tv) Module Import failed: ' Name: samsungctl'
Code: Select all
if sys.platform.startswith('linux'):
# linux specific code here
sys.path.append(os.path.dirname(os.__file__) + '/diste-packages')
Code: Select all
if sys.platform.startswith('linux'):
# linux specific code here
sys.path.append(os.path.dirname(os.__file__) + '/site-packages')
Code: Select all
sudo samsungctl -i --host 192.168.0.8 --port 8001 --method websocket
If someone has an idea of what can be happening, I'll be glad to hear from you.2017-08-07 19:44:39.448 User: Admin initiated a switch command (41/Samsung TV - Volume/Set Level)
2017-08-07 19:44:39.456 (Samsung TV) Calling message handler 'onCommand'.
2017-08-07 19:44:39.457 (Samsung TV) onCommand called for Unit 3: Parameter 'Off', Level: 0, Connected: True
2017-08-07 19:44:39.460 Error: (Samsung TV) 'onCommand' failed 'ImportError'.
2017-08-07 19:44:39.460 Error: (Samsung TV) ----> Line 177 in /home/pi/domoticz/plugins/SamsungTV/plugin.py, function onCommand
2017-08-07 19:44:39.460 Error: (Samsung TV) ----> Line 287 in /home/pi/domoticz/plugins/SamsungTV/plugin.py, function SamsungSend
2017-08-07 19:44:39.460 Error: (Samsung TV) ----> Line 10 in /usr/lib/python3.4/samsungctl/remote.py, function __init__
2017-08-07 19:44:39.460 Error: (Samsung TV) ----> Line 13 in /usr/lib/python3.4/samsungctl/remote_websocket.py, function __init__
2017-08-07 19:44:39.511 (Samsung TV) Calling message handler 'onHeartbeat'.
2017-08-07 19:44:39.514 (Samsung TV) isAlive status :True
maybe similar:pablolassalle wrote: ↑Tuesday 08 August 2017 0:51 Zak, I could not get the interactive control from the command line to work.
I have a Samsung J model from 2016, and I use this command line to test it:but when i use any key, the TV does not respond to any of them.Code: Select all
sudo samsungctl -i --host 192.168.0.8 --port 8001 --method websocket
Users browsing this forum: No registered users and 1 guest