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
directory of snap script ?
Moderator: leecollings
- psubiaco
- Posts: 222
- Joined: Monday 20 August 2018 9:38
- Target OS: Raspberry Pi / ODroid
- Domoticz version: Beta
- Location: Italy
- Contact:
Re: directory of snap script ?
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
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
Paolo
--
I use DomBus modules to charge EV car, get a full alarm system, control heat pump, fire alarm detection, lights and much more. Video
Facebook page - Youtube channel
--
I use DomBus modules to charge EV car, get a full alarm system, control heat pump, fire alarm detection, lights and much more. Video
Facebook page - Youtube channel
- waltervl
- Posts: 5908
- Joined: Monday 28 January 2019 18:48
- Target OS: Linux
- Domoticz version: 2024.7
- Location: NL
- Contact:
Re: directory of snap script ?
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?
On what base OS and hardware are you running?
Domoticz running on Udoo X86 (on Ubuntu)
Devices/plugins: ZigbeeforDomoticz (with Xiaomi, Ikea, Tuya devices), Nefit Easy, Midea Airco, Omnik Solar, Goodwe Solar
Devices/plugins: ZigbeeforDomoticz (with Xiaomi, Ikea, Tuya devices), Nefit Easy, Midea Airco, Omnik Solar, Goodwe Solar
Re: directory of snap script ?
Hello i'am using archlinux
- waltervl
- Posts: 5908
- Joined: Monday 28 January 2019 18:48
- Target OS: Linux
- Domoticz version: 2024.7
- Location: NL
- Contact:
Re: directory of snap script ?
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
Domoticz running on Udoo X86 (on Ubuntu)
Devices/plugins: ZigbeeforDomoticz (with Xiaomi, Ikea, Tuya devices), Nefit Easy, Midea Airco, Omnik Solar, Goodwe Solar
Devices/plugins: ZigbeeforDomoticz (with Xiaomi, Ikea, Tuya devices), Nefit Easy, Midea Airco, Omnik Solar, Goodwe Solar
Who is online
Users browsing this forum: No registered users and 1 guest