What did i do, but before i explain that, i first show what i used as volume when installing domoticz in docker.
This is to keep all setup files outside the container. So they will still be there when you update the domoticz container.
if your volume is different, keep this in mind with the configuration example below
Code: Select all
-v /docker/domoticz/config:/opt/domoticz/userdata
In /docker/domoticz/config i made a folder "scripts" and in that folder i made the folder "lua"
so i will get /docker/domoticz/config/scripts/lua where i will put the files from JVDZ
After that i followed the SETUP instructions of JVDZ
But for the container itself, the files are not in /docker/domoticz/config
For the container the files are in /opt/domoticz/userdata
And because of the sub-folders, the correct path is /opt/domoticz/userdata/scripts/lua
I also changed the folder where the data or log is written, so they are easier to access. I choose a path which is inside the container.
The default example for PI which is in the configuration file doesn't work. /var/tmp isn't in the container available
i made a "tmp" folder in /docker/domoticz/config/scripts/lua
Don't forget the writting rights for the folders, to prevent errors
This is what i have in garbagecalendarconfig.lua This is a little view from the debug log in domoticz