CTHRU / Hitrava

Convert your Huawei Health sport activities and import them in Strava.
Other
352 stars 34 forks source link

[SUPPORT] Using .tar files #30

Closed dostick closed 4 years ago

dostick commented 4 years ago

Hi again,

I can't understand from the instructions if I have to crearte a .tar file with all my HiTrack files or if it is has a .tar file obtained from Huawei.

I've tried creating a .tar file with 7zip with all the Hitrack files and then execute the command as it is show in the instructions but is not working for me.

C:\Hitrava>python Hitrava.py -t huawei.tar
2020-09-24 11:03:32,720 - INFO - main - Hitrava version 3.6.1 (build 2009.1901) started with arguments ['-t', 'huawei.tar']
2020-09-24 11:03:32,720 - INFO - main - Running on Python version 3.8.6

C:\Hitrava>

The contents of the .tar file

image

Thanks for your fast answer

CTHRU commented 4 years ago

The tar function was designed to convert the Hitrack files in an Android tar backup format.

If you want to create your own tar file, you will have to mimic the correct directory and file structure as follows:

Alternatively, you could create a batch file that loops over all your HiTrack files and convert them using the --file option like you did for a single file.

dostick commented 4 years ago

I don't know how to create a batch file, but I've tested to mimic directory and file structure and works perfectly for me. Thanks again for you work and your fast support.