Page 1 of 1
Where are Lua scripts stored
Posted: Sunday 25 November 2018 13:05
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..
Re: Where are Lua scripts stored
Posted: Sunday 25 November 2018 18:41
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.
Re: Where are Lua scripts stored
Posted: Monday 26 November 2018 23:22
by HFman
Thanks.. so sincd the database is corupt.. i means i lost them..

(yes.. i know i should back up.. )
Re: Where are Lua scripts stored
Posted: Monday 26 November 2018 23:35
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 ?
Re: Where are Lua scripts stored
Posted: Monday 26 November 2018 23:46
by HFman
sqlite say "can't read file". Any programm's to "repair" it ?
Re: Where are Lua scripts stored
Posted: Monday 26 November 2018 23:58
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.