aricooperdavis / Huawei-TCX-Converter

A makeshift python tool that generates TCX files from Huawei HiTrack files
MIT License
121 stars 23 forks source link

Batch file processing #8

Open freddy6218 opened 5 years ago

freddy6218 commented 5 years ago

Hello, I wanted to process my generated HiTrack files from Huawei Health via Tasker on Android and the plugin QPyPlugin. Tasker finds every file with 'HiTrack' in it and writes a filelist. Then the QPyPlugin starts the Huawei-TCX-Converter. Therefore QPyPlugin doesn't support arguments I added a method to process a filelist if no inputfile was given.

I am a C++ programmer and never worked with Python maybe ther are some errors but it worked for me.

If no Input file ist given, the script reads out a filelist and converts every file in the filelist.

Maybe you can implement and rework this in your Source?

freddy6218-batch.zip

Screenshot_20190406-151320

aricooperdavis commented 5 years ago

Hi Freddy,

That's a handy feature, thank you for sharing that! I'm currently working on re-implementing the script in Dart so that it can be run as a native android app (built using Flutter). This would be a slightly more user friendly option than using Tasker, so for the moment I will focus my efforts there.

I would like to share your solution as a working option in the meantime on the ReadMe if that's okay?

Cheers, Ari

freddy6218 commented 5 years ago

I'd like to see it in the readme. A native app would be a nice solution.

Kind regards