domoticz scripts

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
webrazor
Posts: 61
Joined: Monday 09 November 2015 9:33
Target OS: Raspberry Pi / ODroid
Domoticz version:
Location: The Netherlands
Contact:

domoticz scripts

Post 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
freijn
Posts: 536
Joined: Friday 23 December 2016 16:40
Target OS: Raspberry Pi / ODroid
Domoticz version: Stable
Location: Netherlands Purmerend
Contact:

Re: domoticz scripts

Post by freijn »

/home/pi/domoticz/scripts/lua

if you do not see them there, they are in your database.
User avatar
jvdz
Posts: 2445
Joined: Tuesday 30 December 2014 19:25
Target OS: Raspberry Pi / ODroid
Domoticz version: 4.107
Location: Netherlands
Contact:

Re: domoticz scripts

Post by jvdz »

They are either in the domoticz.db when created through the webinterface or in e directory /home/pi/domoticz/scripts/lua

Jos
webrazor
Posts: 61
Joined: Monday 09 November 2015 9:33
Target OS: Raspberry Pi / ODroid
Domoticz version:
Location: The Netherlands
Contact:

Re: domoticz scripts

Post 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?
freijn
Posts: 536
Joined: Friday 23 December 2016 16:40
Target OS: Raspberry Pi / ODroid
Domoticz version: Stable
Location: Netherlands Purmerend
Contact:

Re: domoticz scripts

Post 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.
webrazor
Posts: 61
Joined: Monday 09 November 2015 9:33
Target OS: Raspberry Pi / ODroid
Domoticz version:
Location: The Netherlands
Contact:

Re: domoticz scripts

Post 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
User avatar
psubiaco
Posts: 233
Joined: Monday 20 August 2018 9:38
Target OS: Raspberry Pi / ODroid
Domoticz version: Beta
Location: Italy
Contact:

Re: domoticz scripts

Post 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
Paolo
--
I use DomBus modules to charge EV car, get a full alarm system, control heat pump, fire alarm detection, lights and much more. Video
Facebook page - Youtube channel
webrazor
Posts: 61
Joined: Monday 09 November 2015 9:33
Target OS: Raspberry Pi / ODroid
Domoticz version:
Location: The Netherlands
Contact:

Re: domoticz scripts

Post 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?
webrazor
Posts: 61
Joined: Monday 09 November 2015 9:33
Target OS: Raspberry Pi / ODroid
Domoticz version:
Location: The Netherlands
Contact:

Re: domoticz scripts

Post 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?
freijn
Posts: 536
Joined: Friday 23 December 2016 16:40
Target OS: Raspberry Pi / ODroid
Domoticz version: Stable
Location: Netherlands Purmerend
Contact:

Re: domoticz scripts

Post 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...
webrazor
Posts: 61
Joined: Monday 09 November 2015 9:33
Target OS: Raspberry Pi / ODroid
Domoticz version:
Location: The Netherlands
Contact:

Re: domoticz scripts

Post 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.
Post Reply

Who is online

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