Page 1 of 1

domoticz scripts

Posted: Wednesday 26 February 2020 21:01
by webrazor
Hello,

My domoticz is broken after a update to the latest version. Now i want to do a compleet reinstall of raspbian and domoticz.
I have had some scripts running that where made in domoticz using lua. Is there a location on the sd-card where i can find these scripts to make a backup?

thank you

Re: domoticz scripts

Posted: Wednesday 26 February 2020 21:26
by freijn
/home/pi/domoticz/scripts/lua

if you do not see them there, they are in your database.

Re: domoticz scripts

Posted: Wednesday 26 February 2020 21:27
by jvdz
They are either in the domoticz.db when created through the webinterface or in e directory /home/pi/domoticz/scripts/lua

Jos

Re: domoticz scripts

Posted: Wednesday 26 February 2020 21:38
by webrazor
i made them in the web interface, any way to get them out of the database i still have a backup image of my Sd-card?

Re: domoticz scripts

Posted: Wednesday 26 February 2020 22:26
by freijn
webrazor wrote: Wednesday 26 February 2020 21:38 i made them in the web interface, any way to get them out of the database i still have a backup image of my Sd-card?
if you restore your last working domoticz.db into your fresh build image you will have your scripts back.
To be 100% save , grab the domoticz.db from your broken sd card as well. If you are lucky and nothing has changed in the .db you
also have your data history back.

Re: domoticz scripts

Posted: Saturday 29 February 2020 21:02
by webrazor
freijn wrote: Wednesday 26 February 2020 22:26 if you restore your last working domoticz.db into your fresh build image you will have your scripts back.
To be 100% save , grab the domoticz.db from your broken sd card as well. If you are lucky and nothing has changed in the .db you
also have your data history back.
That sounds like a good plan, will try that. thx

Re: domoticz scripts

Posted: Sunday 01 March 2020 21:34
by psubiaco
Hi.
Most probably your problem is caused by missing lib. I had the same problem.
The new versions of Domoticz required some libs from Raspbian Buster: to solve this issue, just follow the easy instructions at
https://www.domoticz.com/forum/viewtopi ... 40#p236428
Then you'll get everything working, without the need to reinstall Domoticz!
Paolo

Re: domoticz scripts

Posted: Monday 02 March 2020 10:28
by webrazor
psubiaco wrote: Sunday 01 March 2020 21:34 Hi.
Most probably your problem is caused by missing lib. I had the same problem.
The new versions of Domoticz required some libs from Raspbian Buster: to solve this issue, just follow the easy instructions at
https://www.domoticz.com/forum/viewtopi ... 40#p236428
Then you'll get everything working, without the need to reinstall Domoticz!
Paolo
Will try that also, to get my data back and old image working. Thx.
That Dombus1 board that you are using sound really interesting. Are you happy with it?

Re: domoticz scripts

Posted: Monday 02 March 2020 10:29
by webrazor
freijn wrote: Wednesday 26 February 2020 22:26 if you restore your last working domoticz.db into your fresh build image you will have your scripts back.
To be 100% save , grab the domoticz.db from your broken sd card as well. If you are lucky and nothing has changed in the .db you
also have your data history back.
Is that the only file i need to restore all the old data?

Re: domoticz scripts

Posted: Monday 02 March 2020 14:44
by freijn
Can't tell you.......

I do have lots of other script in other places....

If you only created lua scripts from the webinterface the answer is yes.
But again.. doing so at your own risk!

I always have an aditional sd card. I leave the old card as it is. Re-building a fresh card.
If something is missing... Swap the old card back in , grab the required and go back to the new.

For a while I now have a production Raspberry and test lab... Makes live so much easier...

Re: domoticz scripts

Posted: Wednesday 04 March 2020 16:09
by webrazor
I need something like that, because of domoticz is not working alot of stuff in the house is not working so thats a problem.
Better to make a backup first before update or change something.