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..
Where are Lua scripts stored
Moderator: leecollings
-
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
Raspberry PI 3 - Opentherm Gateway + ESP8826 - EvoHome - ESPEasy CO2 + Fancontrol - RF-Link - zigbee2mqqt -
- 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
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.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..
Debian buster, bullseye on RPI-4, Intel NUC.
dz Beta, Z-Wave, RFLink, RFXtrx433e, P1, Youless, Hue, Yeelight, Xiaomi, MQTT
==>> dzVents wiki
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
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 -
- 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
How corrupt is your DB ? Are you sure it is beyond repair ?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.. )
Debian buster, bullseye on RPI-4, Intel NUC.
dz Beta, Z-Wave, RFLink, RFXtrx433e, P1, Youless, Hue, Yeelight, Xiaomi, MQTT
==>> dzVents wiki
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
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 -
- 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
Maybe not programs but certainly methods. Check this and scroll down to the solution with the replaced header.HFman wrote: Monday 26 November 2018 23:46 sqlite say "can't read file". Any programm's to "repair" it ?
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
dz Beta, Z-Wave, RFLink, RFXtrx433e, P1, Youless, Hue, Yeelight, Xiaomi, MQTT
==>> dzVents wiki
Who is online
Users browsing this forum: No registered users and 1 guest