Where are Lua scripts stored

Moderator: leecollings

Post Reply
HFman
Posts: 82
Joined: Thursday 02 March 2017 20:28
Target OS: Linux
Domoticz version: V4.1174
Location: Netherlands
Contact:

Where are Lua scripts stored

Post by HFman »

If you write the Lua scripts in domoticz, where does domoticz store them ?
I don't see them in "scripts/Lua" folder.

I would like to copy my old scripts form my old domoticz... but can't find them back..
Raspberry PI 3 - Opentherm Gateway + ESP8826 - EvoHome - ESPEasy CO2 + Fancontrol - RF-Link - zigbee2mqqt -
User avatar
waaren
Posts: 6028
Joined: Tuesday 03 January 2017 14:18
Target OS: Linux
Domoticz version: Beta
Location: Netherlands
Contact:

Re: Where are Lua scripts stored

Post by waaren »

HFman wrote: Sunday 25 November 2018 13:05 If you write the Lua scripts in domoticz, where does domoticz store them ?
I don't see them in "scripts/Lua" folder.

I would like to copy my old scripts form my old domoticz... but can't find them back..
Internal Lua scripts are now in the domoticz.db database in table EventMaster. Don't know if that also the case for your (previous) version.
Debian buster, bullseye on RPI-4, Intel NUC.
dz Beta, Z-Wave, RFLink, RFXtrx433e, P1, Youless, Hue, Yeelight, Xiaomi, MQTT
==>> dzVents wiki
HFman
Posts: 82
Joined: Thursday 02 March 2017 20:28
Target OS: Linux
Domoticz version: V4.1174
Location: Netherlands
Contact:

Re: Where are Lua scripts stored

Post by HFman »

Thanks.. so sincd the database is corupt.. i means i lost them.. :( (yes.. i know i should back up.. )
Raspberry PI 3 - Opentherm Gateway + ESP8826 - EvoHome - ESPEasy CO2 + Fancontrol - RF-Link - zigbee2mqqt -
User avatar
waaren
Posts: 6028
Joined: Tuesday 03 January 2017 14:18
Target OS: Linux
Domoticz version: Beta
Location: Netherlands
Contact:

Re: Where are Lua scripts stored

Post by waaren »

HFman wrote: Monday 26 November 2018 23:22 Thanks.. so sincd the database is corupt.. i means i lost them.. :( (yes.. i know i should back up.. )
How corrupt is your DB ? Are you sure it is beyond repair ?
Debian buster, bullseye on RPI-4, Intel NUC.
dz Beta, Z-Wave, RFLink, RFXtrx433e, P1, Youless, Hue, Yeelight, Xiaomi, MQTT
==>> dzVents wiki
HFman
Posts: 82
Joined: Thursday 02 March 2017 20:28
Target OS: Linux
Domoticz version: V4.1174
Location: Netherlands
Contact:

Re: Where are Lua scripts stored

Post by HFman »

sqlite say "can't read file". Any programm's to "repair" it ?
Raspberry PI 3 - Opentherm Gateway + ESP8826 - EvoHome - ESPEasy CO2 + Fancontrol - RF-Link - zigbee2mqqt -
User avatar
waaren
Posts: 6028
Joined: Tuesday 03 January 2017 14:18
Target OS: Linux
Domoticz version: Beta
Location: Netherlands
Contact:

Re: Where are Lua scripts stored

Post by waaren »

HFman wrote: Monday 26 November 2018 23:46 sqlite say "can't read file". Any programm's to "repair" it ?
Maybe not programs but certainly methods. Check this and scroll down to the solution with the replaced header.
It might work and depending on how much effort is needed to rebuild your database (including Lua scripts) it might be worth to invest some time.
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: No registered users and 1 guest