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

[JSON] Huawei Watch 2 - wrong data output

Open ghost opened this issue 4 years ago • 2 comments

Hello, I guess that files from Huawei Watch 2 (WearOS based smartwatch) it's not fully supported by this tool. Can You please look at attached sample data, to fix it?

data.tar.gz

HuaweiHealth

Screenshot from sample run, imported to RunKeeper: Runkeeper

ghost avatar Oct 11 '19 19:10 ghost

@domryba - Thank you for providing the files. I can see what causes the issue in the HiTrack file. It starts with following 2 records with a timestamp of 1.570459597 (which is at 14:46:37 and about an hour later than the last records of the file that are at 1.570455402 (which is 13:36:44 or the actual time of the end of your activity). Now we can't just ignore these records as other devices seem to produce them in a random time order.

tp=lbs;k=0;lat=51.647061;lon=17.3814189;alt=0.0;t=1.570459597E12; tp=lbs;k=1;lat=51.647057;lon=17.381367;alt=0.0;t=1.570459598E12;

tp=lbs;k=2;lat=51.647064;lon=17.381321;alt=0.0;t=1.570452399E12;

tp=lbs;k=1498;lat=51.64845;lon=17.391971;alt=0.0; t=1.570455402E12; tp=lbs;k=1499;lat=51.648453;lon=17.391863;alt=0.0; t=1.570455404E12;

There can be multiple causes:

  • There's a bug in the converter when getting the HiTrack data from the exported JSON file (to find out, I would require that file or you could look into the JSON data yourself if the data is like that in the file)
  • There's an error in the export of the JSON in which case we can't do much about it.
  • Did you stop (not pause) the activity right at the endpoint marker or could it be that you stopped it an hour later? I think chance is small, but I thought I'd better ask.

In case you notice a difference in the originating JSON file, please keep me informed.

CTHRU avatar Oct 12 '19 14:10 CTHRU

Thanks for reply. I can send You JSON file, e.g. on e-mail.

Yes, I stop my activity just after its end. :)

ghost avatar Oct 12 '19 17:10 ghost