directory of snap script ?

Moderator: leecollings

Post Reply
ricco75
Posts: 2
Joined: Tuesday 29 June 2021 20:55
Target OS: Linux
Domoticz version:
Contact:

directory of snap script ?

Post 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
User avatar
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 ?

Post 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
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
User avatar
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 ?

Post 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?
Domoticz running on Udoo X86 (on Ubuntu)
Devices/plugins: ZigbeeforDomoticz (with Xiaomi, Ikea, Tuya devices), Nefit Easy, Midea Airco, Omnik Solar, Goodwe Solar
ricco75
Posts: 2
Joined: Tuesday 29 June 2021 20:55
Target OS: Linux
Domoticz version:
Contact:

Re: directory of snap script ?

Post by ricco75 »

Hello i'am using archlinux
User avatar
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 ?

Post 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
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