do i need to store scripts in the script folder ?

Moderator: leecollings

Post Reply
User avatar
deejc
Posts: 168
Joined: Tuesday 22 September 2015 18:50
Target OS: Raspberry Pi / ODroid
Domoticz version: 3.5641
Location: UK
Contact:

do i need to store scripts in the script folder ?

Post by deejc »

i use domoticz in docker so i only have one folder mapped and its not the scripts folder, its a folder called config where the DB is stored, if create a scripts folder under the config folder and point the scripts like
script:///config/scripts/scripts.lua etc will it work correctly?
Domoticz 3.5641 on RPI (Raspbian GNU/Linux 8)
dannybloe
Posts: 1355
Joined: Friday 29 August 2014 11:26
Target OS: Raspberry Pi / ODroid
Domoticz version:
Location: Ermelo
Contact:

Re: do i need to store scripts in the script folder ?

Post by dannybloe »

You can easily add more folder mappings using Docker and have the script folder sit in the original location (domoticz/scripts/lua).
I used to do this:

Code: Select all

docker run -d -p 8080:8080 --restart=on-failure:10 --name=domoticz -v /volume1/docker/domoticz/data:/db -v /volume1/docker/domoticz/lua:/src/domoticz/scripts/lua -v /volume1/docker/domoticz/log:/log -v /etc/localtime:/etc/localtime:ro --device=/dev/ttyUSB0:/dev/ttyAMA0 domoticz
Creator dzVents - RPi3, loads of zwave devices, esp8266, evohome.
User avatar
deejc
Posts: 168
Joined: Tuesday 22 September 2015 18:50
Target OS: Raspberry Pi / ODroid
Domoticz version: 3.5641
Location: UK
Contact:

Re: do i need to store scripts in the script folder ?

Post by deejc »

I'll try it, thanks


Sent from my iPhone using Tapatalk
Domoticz 3.5641 on RPI (Raspbian GNU/Linux 8)
Post Reply

Who is online

Users browsing this forum: No registered users and 1 guest