event script vs script/lua folder script

Moderator: leecollings

Post Reply
User avatar
emme
Posts: 909
Joined: Monday 27 June 2016 11:02
Target OS: Raspberry Pi / ODroid
Domoticz version: latest
Location: Milano, Italy
Contact:

event script vs script/lua folder script

Post by emme »

Ciao,

here I come with anther dumb question.....

Event Time Script = /script/lua/scipt_time_myScript.lua
Event Variable Script = /script/lua/scipt_variable_myScript.lua
Event Device Script = /script/lua/scipt_device_myScript.lua
Event Security Script = /script/lua/scipt_security_myScript.lua
Event All Script = /script/lua/scipt_????_myScript.lua

is that an _all_ ?
doesnt' work :(

wiki does not mention it in the event Page
The lua scripts folder has two demo scripts that can serve as a starting point. The script filename has 3 components each sub-divided by an underscore : script_trigger_name.lua Trigger can be 'time', 'device', 'variable' or 'security', name can be any string for your reference, script_device_MyOtherDeviceNameOnWhenMyDeviceNameOn.lua for instance.
ciao
M
The most dangerous phrase in any language is:
"We always done this way"
User avatar
jvdz
Posts: 2333
Joined: Tuesday 30 December 2014 19:25
Target OS: Raspberry Pi / ODroid
Domoticz version: 4.107
Location: Netherlands
Contact:

Re: event script vs script/lua folder script

Post by jvdz »

There no all option for LUA files.

Jos
New Garbage collection scripts: https://github.com/jvanderzande/GarbageCalendar
User avatar
emme
Posts: 909
Joined: Monday 27 June 2016 11:02
Target OS: Raspberry Pi / ODroid
Domoticz version: latest
Location: Milano, Italy
Contact:

Re: event script vs script/lua folder script

Post by emme »

..thanks for clarify....
I had that idea... but... just to be sure :P :P
The most dangerous phrase in any language is:
"We always done this way"
Post Reply

Who is online

Users browsing this forum: No registered users and 1 guest