I have an old Domoticz running on a Windows.
I started a new Domoticz on a RPi, few days ago.
Now I want to import data from Old to New.
I exported the data to CSV, change the IDx and then tried to import with Sqlite Browser but it doesnt work to import to an existing database(Temperature_Controller).
If I create a new database with a different name, e.g. Temp, i works.
Is there any other way to import from old to new with same database?
How to Import data from Domoticz to Domoticz[solved]
Moderators: leecollings, remb0
-
Flopp
- Posts: 279
- Joined: Sunday 03 January 2016 14:55
- Target OS: -
- Domoticz version:
- Location: Sweden
- Contact:
How to Import data from Domoticz to Domoticz[solved]
Last edited by Flopp on Saturday 02 July 2016 22:19, edited 1 time in total.
-
georgesattali
- Posts: 84
- Joined: Saturday 05 March 2016 16:40
- Target OS: Raspberry Pi / ODroid
- Domoticz version:
- Location: France
- Contact:
Re: How to Import data from Domoticz to Domoticz
hello,
you may try to import the whole database at once : select "Setup / Backup/Restore" and choose "Restore", select your previous db and upload.
Beware, that will destroy the new db - so either make a backup of the new db or be prepared to rewrite the sd card image ...
I must say I never tried this between Windows and RPI (but only from RPI to RPI). It would be interesting to know if it works fine.
See you,
GD
you may try to import the whole database at once : select "Setup / Backup/Restore" and choose "Restore", select your previous db and upload.
Beware, that will destroy the new db - so either make a backup of the new db or be prepared to rewrite the sd card image ...
I must say I never tried this between Windows and RPI (but only from RPI to RPI). It would be interesting to know if it works fine.
See you,
GD
-
Flopp
- Posts: 279
- Joined: Sunday 03 January 2016 14:55
- Target OS: -
- Domoticz version:
- Location: Sweden
- Contact:
Re: How to Import data from Domoticz to Domoticz
Thanks.
I don't want to destroy the whole DB in RPi, I have a lot of data already.
I think the DB looks the same from Windows.
I only want the data but it looks like I have to put them in one by one
I don't want to destroy the whole DB in RPi, I have a lot of data already.
I think the DB looks the same from Windows.
I only want the data but it looks like I have to put them in one by one
-
gcoupe
- Posts: 57
- Joined: Saturday 24 January 2015 14:43
- Target OS: Raspberry Pi / ODroid
- Domoticz version: v4.10717
- Location: The Netherlands
- Contact:
Re: How to Import data from Domoticz to Domoticz
I've backed up the DB on RPi and restored it on Windows - and vice versa - a couple of times. It works pretty well. However, I only have a Z-wave controller (USB stick) and a Smartmeter P1 interface.
You'll probably have to adjust some of the hardware settings (COM ports), because they're likely to be different, but other than that, the DBs seem to be compatible.
Merging DBs, however, is a whole other ball game, and not something that I've tried...
You'll probably have to adjust some of the hardware settings (COM ports), because they're likely to be different, but other than that, the DBs seem to be compatible.
Merging DBs, however, is a whole other ball game, and not something that I've tried...
-
dervogt
- Posts: 26
- Joined: Thursday 30 June 2016 9:00
- Target OS: Raspberry Pi / ODroid
- Domoticz version: BETA
- Location: Amsterdam
- Contact:
Re: How to Import data from Domoticz to Domoticz
I am not a database expert, but I can imagine that if you download both database files from the respective machines and manually merge the two db's, this should work out. I believe the domoticZ internal db is a sqlite db, so you can attach various opensource db managers to it and then merge the two.
-
Flopp
- Posts: 279
- Joined: Sunday 03 January 2016 14:55
- Target OS: -
- Domoticz version:
- Location: Sweden
- Contact:
Re: How to Import data from Domoticz to Domoticz
I was stupid and just tried with ONE editor, Sqlite Browser.
I google and found Sqlite Maestro and it worked. I used Sqlite Browser to export as CSV, edit all IDx so it fits the new DB then imported with Sqlite Maestro
https://www.sqlmaestro.com/products/sqlite/maestro/
It is a 30 day Trial so I will use i today so it is enough for me.
Thank you all for telling me your thoughts.
I google and found Sqlite Maestro and it worked. I used Sqlite Browser to export as CSV, edit all IDx so it fits the new DB then imported with Sqlite Maestro
https://www.sqlmaestro.com/products/sqlite/maestro/
It is a 30 day Trial so I will use i today so it is enough for me.
Thank you all for telling me your thoughts.
Who is online
Users browsing this forum: No registered users and 1 guest