Domoticz 4.10717 on Synology scripts location

Topics (not sure which fora)
when not sure where to post, post here and mods will move it to right forum.

Moderators: leecollings, remb0

Post Reply
Apievuisy
Posts: 11
Joined: Tuesday 13 August 2019 20:22
Target OS: -
Domoticz version:
Contact:

Domoticz 4.10717 on Synology scripts location

Post 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
User avatar
waaren
Posts: 6028
Joined: Tuesday 03 January 2017 14:18
Target OS: Linux
Domoticz version: Beta
Location: Netherlands
Contact:

Re: Domoticz 4.10717 on Synology scripts location

Post 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;
Debian buster, bullseye on RPI-4, Intel NUC.
dz Beta, Z-Wave, RFLink, RFXtrx433e, P1, Youless, Hue, Yeelight, Xiaomi, MQTT
==>> dzVents wiki
Apievuisy
Posts: 11
Joined: Tuesday 13 August 2019 20:22
Target OS: -
Domoticz version:
Contact:

Re: Domoticz 4.10717 on Synology scripts location

Post 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.
User avatar
waaren
Posts: 6028
Joined: Tuesday 03 January 2017 14:18
Target OS: Linux
Domoticz version: Beta
Location: Netherlands
Contact:

Re: Domoticz 4.10717 on Synology scripts location

Post 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
Debian buster, bullseye on RPI-4, Intel NUC.
dz Beta, Z-Wave, RFLink, RFXtrx433e, P1, Youless, Hue, Yeelight, Xiaomi, MQTT
==>> dzVents wiki
Apievuisy
Posts: 11
Joined: Tuesday 13 August 2019 20:22
Target OS: -
Domoticz version:
Contact:

Re: Domoticz 4.10717 on Synology scripts location

Post by Apievuisy »

I am trying to call a script from an other script.
User avatar
waaren
Posts: 6028
Joined: Tuesday 03 January 2017 14:18
Target OS: Linux
Domoticz version: Beta
Location: Netherlands
Contact:

Re: Domoticz 4.10717 on Synology scripts location

Post 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.
Debian buster, bullseye on RPI-4, Intel NUC.
dz Beta, Z-Wave, RFLink, RFXtrx433e, P1, Youless, Hue, Yeelight, Xiaomi, MQTT
==>> dzVents wiki
Post Reply

Who is online

Users browsing this forum: Bing [Bot] and 1 guest