Copy Historical data (rra databases) between Toons

Everything about software tools, new software development and toolchains. For developers, mostly.

Moderators: marcelr, TerrorSource, Toonz, TheHogNL

Re: Copy Historical data (rra databases) between Toons

Postby ovdleun » Mon Jul 06, 2020 11:02 pm

Hi Marcelr,

The version from github, is that a working version?
https://github.com/ToonSoftwareCollective/transfer-logs

I'm having a hard time getting it to work ;) I can compile it under linux but it's, of course, not working on arm then:
# ./transfer-logs
./transfer-logs: line 1: syntax error: unexpected "("

I'd like to transfer the files from my old Toon1 to new Toon2, if even possible.
Any hints for me? Before I'm installing a full arm toolchain ;o)

Regards,
Onno.
ovdleun
Starting Member
Starting Member
 
Posts: 19
Joined: April 2016

Re: Copy Historical data (rra databases) between Toons

Postby marcelr » Tue Jul 07, 2020 5:39 pm

Hmmm .. apparently it has issues.
The best you can do is just copy the old rra databases + dat files to the new toon, together with the config_hcb_rrd.xml file and config_hcb_pwrusage.xml. These files hold all information regarding your history. And remember: Thou shalt make back-ups!
marcelr
Global Moderator
Global Moderator
 
Posts: 1152
Joined: May 2012
Location: Ehv

Re: Copy Historical data (rra databases) between Toons

Postby ovdleun » Tue Jul 07, 2020 9:31 pm

Tnx! Damn .. forgot about the layout files .. did copy the rra's but that doesn't work without the xml's of course. Fixed it.
ovdleun
Starting Member
Starting Member
 
Posts: 19
Joined: April 2016

Re: Copy Historical data (rra databases) between Toons

Postby Pieterraxis » Fri Jul 10, 2020 10:45 am

Maar....

Waar vind ik die bestanden?

Image
Pieterraxis
Starting Member
Starting Member
 
Posts: 14
Joined: June 2020

Re: Copy Historical data (rra databases) between Toons

Postby marcelr » Fri Jul 10, 2020 11:35 am

/mnt/data

and this thread is supposed to be English.
marcelr
Global Moderator
Global Moderator
 
Posts: 1152
Joined: May 2012
Location: Ehv

Re: Copy Historical data (rra databases) between Toons

Postby Pieterraxis » Fri Jul 10, 2020 2:44 pm

Tnx,

And do you guys have a samba server installed on the toon?

Can't get in with sftp
Code: Select all
Status:   Verbinden met 192.168.178.9...
Antwoord:   fzSftp started, protocol_version=9
Opdracht:   open "root@192.168.178.9" 22
Opdracht:   Pass: ****
Status:   Connected to 192.168.178.9
Fout:   FATAL ERROR: Received unexpected end-of-file from SFTP server
Fout:   Kan niet verbinden met server


I called the 2nd toon toon2 in smb.conf just in case.

But windows can't connect


Image
Pieterraxis
Starting Member
Starting Member
 
Posts: 14
Joined: June 2020

Re: Copy Historical data (rra databases) between Toons

Postby Pieterraxis » Tue Jul 14, 2020 11:49 am

voor sftp access :
Code: Select all
opkg install http://files.domoticaforum.eu/uploads/Toon/ipk/cortexa9hf-vfp-neon/openssh-sftp-server_6.7p1-r0_cortexa9hf-vfp-neon.ipk
Pieterraxis
Starting Member
Starting Member
 
Posts: 14
Joined: June 2020

Re: Copy Historical data (rra databases) between Toons

Postby Pieterraxis » Tue Jul 14, 2020 3:22 pm

I do have the file config_HAPP_pwrusage.xml but not config_HCB_pwrusage.xml

Searched all of "/" without capitals.
Pieterraxis
Starting Member
Starting Member
 
Posts: 14
Joined: June 2020

Re: Copy Historical data (rra databases) between Toons

Postby Toonz » Fri Jan 01, 2021 4:49 pm

Hi all,

happy to present a new python script to load historical usage data from an old Toon in to another Toon.
The old Toon doesn't need to be rooted, the target Toon must be rooted.

Usage:
- On the old Toon create the export.zip file via the Toon menu, 'Instellingen', 'Internet', 'Toon Data'.
- Download the newly created export.zip file from the old Toon.
- Extract the file usage.zip from the file export.zip
- Extract all files from usage.zip in a separate folder

- download the attached python script (tested with Python 3.7)
- edit the two variables in the script:
folderPath = "c:\\temp\\usage\\" -- replace this with the folder name where you extracted the files from usage.zip
toonIpAddress = "192.168.2.16" --replace this with the ip adress of the new target Toon

- start the script DataConv.py with python and get a coffee (could run for quite some time, progress bars are shown).

That's all folks.

Known limitations:
the file 'gas_flow_CurrentGasFlow_5min.csv' in the usage.zip file is empty on newer firmwares. This is an error in the Toon firmware.
I will look into a workaround for this but that will require the source Toon to be rooted as well.

Happy to take any feedback.

Kind regards and a happy 2021.

Toonz
Attachments
DataConv.zip
(1.14 KiB) Downloaded 77 times
member of the Toon Software Collective
User avatar
Toonz
Forum Moderator
Forum Moderator
 
Posts: 1637
Joined: December 2016

Re: Copy Historical data (rra databases) between Toons

Postby mogwai » Sun Mar 28, 2021 10:47 pm

I see multiple methods described in this thread and I'm not sure what to do. I have an (old) rooted Toon1 and a (new) rooted Toon2. I have gas/electricity/solar panels connected. What is the recommended method to transfer the data from the Toon1 to the Toon2?

Thanks :)
mogwai
Starting Member
Starting Member
 
Posts: 34
Joined: August 2018

Re: Copy Historical data (rra databases) between Toons

Postby Toonz » Mon Mar 29, 2021 12:08 am

the last method works best (above this post) and is replacing the old method which has quite some limitations
member of the Toon Software Collective
User avatar
Toonz
Forum Moderator
Forum Moderator
 
Posts: 1637
Joined: December 2016

Re: Copy Historical data (rra databases) between Toons

Postby mogwai » Tue Mar 30, 2021 11:05 pm

Thanks, that worked like a charm :)
mogwai
Starting Member
Starting Member
 
Posts: 34
Joined: August 2018

Previous

Return to Toon software development

Who is online

Users browsing this forum: No registered users and 1 guest

cron