Page 1 of 1
directory of snap script ?
Posted: Tuesday 29 June 2021 21:01
by ricco75
Hello
i would like to test lua script
but every time i find tutorial directory is always : /home/pi/domoticz/scripts/ or /home/"user"/domoticz/scripts/
in my case it's a snap install and not same directory i think
for me its (i'am no sure) :
/var/lib/snapd/snap/domoticz-gm
but i don't see a script repository ??
is it good ?
Thanks
Re: directory of snap script ?
Posted: Tuesday 29 June 2021 21:40
by psubiaco
LUA scripts must be placed in the directory DOMOTICZ_DIR/scripts/lua where DOMOTICZ_DIR is the directory where Domoticz is installed (i.e. /home/pi/domoticz ).
The script have to be named script_TYPE_name.lua , for example script_time_heatpump.lua (executed every 1 minute) or script_device_alarm.lua (executed when a event occurrs).
Hoping to have answered.
Paolo
Re: directory of snap script ?
Posted: Tuesday 29 June 2021 21:50
by waltervl
Perhaps you can better use a docker installation instead of snap. This one
https://snapcraft.io/domoticz-gm is really old v4.1xxxx We are now 4 major versions further...
On what base OS and hardware are you running?
Re: directory of snap script ?
Posted: Tuesday 29 June 2021 22:05
by ricco75
Hello i'am using archlinux
Re: directory of snap script ?
Posted: Tuesday 29 June 2021 22:24
by waltervl
ricco75 wrote: ↑Tuesday 29 June 2021 22:05
Hello i'am using archlinux
Then you should be able to use a normal install
https://www.domoticz.com/wiki/Raspberry_Pi
Or use Docker
https://www.domoticz.com/wiki/Docker