Page 1 of 1

unable to add plugin.py with synology

Posted: Friday 19 January 2018 19:02
by jluc2808
hi,


i have installed domoticz on my NAS synology DS414 (armxp) with alrealy compatible compiled version of my NAS: V3.2795
I want to add python scripts under /usr/local/domoticz/var/plugins
i get this one under github
https://github.com/thomas-villagers/domoticz-yamaha

i have alredy named the plugin plugin.py and set chmod +x on the .py
restart domoticz.

Now i want to add a new material under the dashboard, but when i open the material list i don't see under type : domoticz-yamaha

do i miss something ?
nota: i have no python error message at domoticz start

thanks for your help

Re: unable to add plugin.py with synology

Posted: Saturday 20 January 2018 1:34
by Dnpwwo
The type is "Yamaha AV Receiver" in the hardware list, not "domoticz-yamaha".

You will need to see a message showing that Python has loaded and the plugin system has started in your start up log. libpython 3.4 or above is required on your system.

Re: unable to add plugin.py with synology

Posted: Saturday 20 January 2018 2:11
by jluc2808
thanks for this response , how i install libpython 3.4 , i have already installed the python3 package with center package installer

NOTA: i don't see Yamaha AV Receiver in the hardware list

Re: unable to add plugin.py with synology

Posted: Saturday 20 January 2018 3:07
by Dnpwwo
@jluc2808,

Have you looked at this? https://www.domoticz.com/wiki/Using_Python_plugins

Steps on linux would be:
  • What version do you need: python3 --version will give you something like Python 3.5.3
  • sudo apt install libpython3.5
you should install the libpython version that matches the python3 version.

You will need to use the package manager command for Synology which probably isn't quite the same.

Posting your Domoticz startup log would be helpful as well

Re: unable to add plugin.py with synology

Posted: Saturday 20 January 2018 3:26
by jluc2808
yes i have already red the https://www.domoticz.com/wiki/Using_Python_plugins
my version is pyhton 3.4.1 (installed with center package)
i couldn't use apt-get not supported with synology , i have installed pip
tried to use :
sudo pip install libpthon3.4 ==> could not find a version
sudo pip install libpthon3.4.1 ==> could not find a version
sudo pip install python3-dev ==> could not find a version

Re: unable to add plugin.py with synology

Posted: Saturday 20 January 2018 5:08
by jluc2808
i just checked the log but i don't see anywhere python start
2018-01-20 04:52:06.352 Domoticz V3.7295 (c)2012-2017 GizMoCuz
2018-01-20 04:52:06.352 Build Hash: 4c80dfd-modified, Date: 2017-04-11 14:55:25
2018-01-20 04:52:06.352 Startup Path: /usr/local/domoticz/
2018-01-20 04:52:06.492 EventSystem: reset all events...
2018-01-20 04:52:06.507 WebServer(HTTP) started on address: :: with port 8084
2018-01-20 04:52:06.513 WebServer(SSL) started on address: :: with port 8443
2018-01-20 04:52:06.515 Proxymanager started.
2018-01-20 04:52:06.517 RxQueue: queue worker started...
2018-01-20 04:52:06.518 TCPServer: shared server started...
2018-01-20 04:52:08.555 EventSystem: reset all events...
2018-01-20 04:52:08.555 EventSystem: reset all device statuses...
2018-01-20 04:52:08.563 SolarEdgeAPI Worker started...
2018-01-20 04:52:08.564 EventSystem: Started
2018-01-20 04:52:08.565 Nest: Worker started...
2018-01-20 04:52:12.705 Incoming connection from: 192.168.1.11

Re: unable to add plugin.py with synology

Posted: Saturday 20 January 2018 11:39
by febalci
That could be the non-python version of domoticz synology package. In jadahl's site there are 2 versions:
- Domoticz Stable V3.8153 for DSM 6.1
- Domoticz Stable V3.8153 for DSM 6.1 with Python
Try the one with the Python.

Re: unable to add plugin.py with synology

Posted: Sunday 21 January 2018 8:42
by jluc2808
reinstall domoticz with python solve the problem
thanks