Huawei-TCX-Converter icon indicating copy to clipboard operation
Huawei-TCX-Converter copied to clipboard

Batch file processing

Open freddy6218 opened this issue 5 years ago • 2 comments

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

freddy6218 avatar Apr 06 '19 13:04 freddy6218

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

aricooperdavis avatar Apr 06 '19 13:04 aricooperdavis

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

Kind regards

freddy6218 avatar Apr 06 '19 14:04 freddy6218