Adding plugin does not work
Posted: Wednesday 01 March 2017 8:06
Hi All,
I'm interested in writing a plugin myself. So I've installed a spare Pi with the latest Raspbian (using NOOBS).
Updated using apt-get update and apt-get upgrade
Installed Domoticz (used the method as stated in the Wiki), and issued a updatebeta to get to the latest Beta release (3.6807)
Domoticz is up and running.
I noticed that de plugin directory was created, but is empty and has (in my opinion) the wrong access rights (or owner).
It actually was owned by root.root and had no access fro the Pi account, that Domoticz is actually running under.
So I used chmod a+rwx to make the directory accessible to Domoticz (could also have used chown pi.pi).
To test the plugin framework, I've downloaded the Denon example, and put in in the Denon4306 folder in the plugins directory (renamed to plugin.py).
Restarted Domotics.
The plugin is now listed in the add hardware section, but if I try to add it, actually nothing happens (I'ts actually not added, so not listed in the table in the hardware section). I also noticed, there is no config, other than the data timeout option.
Same happens if I try to use the base template as a test.
Is this a bug I hit? Or am I doing something wrong here?
The log shows no errors.
Thanks in advance for any help.
I'm interested in writing a plugin myself. So I've installed a spare Pi with the latest Raspbian (using NOOBS).
Updated using apt-get update and apt-get upgrade
Installed Domoticz (used the method as stated in the Wiki), and issued a updatebeta to get to the latest Beta release (3.6807)
Domoticz is up and running.
I noticed that de plugin directory was created, but is empty and has (in my opinion) the wrong access rights (or owner).
It actually was owned by root.root and had no access fro the Pi account, that Domoticz is actually running under.
So I used chmod a+rwx to make the directory accessible to Domoticz (could also have used chown pi.pi).
To test the plugin framework, I've downloaded the Denon example, and put in in the Denon4306 folder in the plugins directory (renamed to plugin.py).
Restarted Domotics.
The plugin is now listed in the add hardware section, but if I try to add it, actually nothing happens (I'ts actually not added, so not listed in the table in the hardware section). I also noticed, there is no config, other than the data timeout option.
Same happens if I try to use the base template as a test.
Is this a bug I hit? Or am I doing something wrong here?
The log shows no errors.
Thanks in advance for any help.