Page 1 of 1

Domoticz 4.10717 on Synology scripts location

Posted: Wednesday 20 November 2019 22:35
by Apievuisy
Hi,

I am trying to find my lua scripts. Did a "find" command on the entire file system but i could not locate the lua scripts.
I also looked at the domoticz.db, it does not seem that they are stored there.

Does anybody know where i can find my scripts?
Im asking this for backup purposes.

Kind regards,

Apie

Re: Domoticz 4.10717 on Synology scripts location

Posted: Thursday 21 November 2019 0:06
by waaren
Apievuisy wrote: Wednesday 20 November 2019 22:35 I am trying to find my lua scripts. Did a "find" command on the entire file system but i could not locate the lua scripts.
I also looked at the domoticz.db, it does not seem that they are stored there.

Does anybody know where i can find my scripts?
Lua scripts created with the integrated editor (both active and inactive) are stored in the domoticz database in table eventMaster;

Re: Domoticz 4.10717 on Synology scripts location

Posted: Thursday 21 November 2019 20:02
by Apievuisy
Thanks for the answer waaren. :)

Could you tell me how i can fire a script with dofile?
All the examples on the internet call a script from file. I can't find any example of people calling a lua script from the DB.

Re: Domoticz 4.10717 on Synology scripts location

Posted: Thursday 21 November 2019 22:57
by waaren
Apievuisy wrote: Thursday 21 November 2019 20:02 Thanks for the answer waaren. :)

Could you tell me how i can fire a script with dofile?
All the examples on the internet call a script from file. I can't find any example of people calling a lua script from the DB.
I don't understand your question. Did you see the wiki on this ? ( https://www.domoticz.com/wiki/Scripting_in_Domoticz

Re: Domoticz 4.10717 on Synology scripts location

Posted: Friday 22 November 2019 8:59
by Apievuisy
I am trying to call a script from an other script.

Re: Domoticz 4.10717 on Synology scripts location

Posted: Friday 22 November 2019 9:14
by waaren
Apievuisy wrote: Friday 22 November 2019 8:59 I am trying to call a script from an other script.
That is not directly possible in Lua nor in dzVents.

A possible way to accomplish the same effect in dzVents is to update a virtual device, -change a uservariable or force a callback from an openUrl and use those as trigger for the 'receiving' script.