unable to add plugin.py with synology

Post Reply
jluc2808
Posts: 12
Joined: Thursday 18 January 2018 7:30
Target OS: NAS (Synology & others)
Domoticz version:
Contact:

unable to add plugin.py with synology

Post by jluc2808 » Friday 19 January 2018 20:02

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

User avatar
Dnpwwo
Posts: 736
Joined: Sunday 23 March 2014 10:00
Target OS: Raspberry Pi
Domoticz version: Beta
Location: Melbourne, Australia
Contact:

Re: unable to add plugin.py with synology

Post by Dnpwwo » Saturday 20 January 2018 2:34

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.
The reasonable man adapts himself to the world; the unreasonable one persists to adapt the world to himself. Therefore all progress depends on the unreasonable man. George Bernard Shaw

jluc2808
Posts: 12
Joined: Thursday 18 January 2018 7:30
Target OS: NAS (Synology & others)
Domoticz version:
Contact:

Re: unable to add plugin.py with synology

Post by jluc2808 » Saturday 20 January 2018 3:11

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

User avatar
Dnpwwo
Posts: 736
Joined: Sunday 23 March 2014 10:00
Target OS: Raspberry Pi
Domoticz version: Beta
Location: Melbourne, Australia
Contact:

Re: unable to add plugin.py with synology

Post by Dnpwwo » Saturday 20 January 2018 4:07

@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
The reasonable man adapts himself to the world; the unreasonable one persists to adapt the world to himself. Therefore all progress depends on the unreasonable man. George Bernard Shaw

jluc2808
Posts: 12
Joined: Thursday 18 January 2018 7:30
Target OS: NAS (Synology & others)
Domoticz version:
Contact:

Re: unable to add plugin.py with synology

Post by jluc2808 » Saturday 20 January 2018 4:26

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

jluc2808
Posts: 12
Joined: Thursday 18 January 2018 7:30
Target OS: NAS (Synology & others)
Domoticz version:
Contact:

Re: unable to add plugin.py with synology

Post by jluc2808 » Saturday 20 January 2018 6:08

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

febalci
Posts: 327
Joined: Monday 03 July 2017 19:58
Target OS: NAS (Synology & others)
Domoticz version:
Contact:

Re: unable to add plugin.py with synology

Post by febalci » Saturday 20 January 2018 12:39

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.

jluc2808
Posts: 12
Joined: Thursday 18 January 2018 7:30
Target OS: NAS (Synology & others)
Domoticz version:
Contact:

Re: unable to add plugin.py with synology

Post by jluc2808 » Sunday 21 January 2018 9:42

reinstall domoticz with python solve the problem
thanks

Post Reply

Who is online

Users browsing this forum: No registered users and 2 guests