Path to require your own modules in docker

Topics (not sure which fora)
when not sure where to post, post here and mods will move it to right forum.

Moderators: leecollings, remb0

Post Reply
lewosh
Posts: 6
Joined: Tuesday 15 March 2016 16:19
Target OS: Raspberry Pi / ODroid
Domoticz version: 3.5140
Location: BE
Contact:

Path to require your own modules in docker

Post by lewosh »

This is what I found in the dzVents wiki:
If you don’t want to use the helpers support, but you want to require your own modules, place them either in /path/to/domoticz/scripts/dzVents/modules or /path/to/domoticz/scripts/dzVents/scripts/modules as these folders are already added to the Lua package path. You can just require those modules: local myModule = require('myModule')
I placed my module in /opt/domoticz/config/scripts/dzVents/modules, but that doesn't seem to work. Do I need to create a volume in docker-compose.yml to achieve this?

Thanks
User avatar
waltervl
Posts: 5775
Joined: Monday 28 January 2019 18:48
Target OS: Linux
Domoticz version: 2024.7
Location: NL
Contact:

Re: Path to require your own modules in docker

Post by waltervl »

Domoticz running on Udoo X86 (on Ubuntu)
Devices/plugins: ZigbeeforDomoticz (with Xiaomi, Ikea, Tuya devices), Nefit Easy, Midea Airco, Omnik Solar, Goodwe Solar
Post Reply

Who is online

Users browsing this forum: No registered users and 1 guest