Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[BUG] Swim duration double duration in Strava #61

Open
serg703 opened this issue Mar 15, 2021 · 4 comments
Open

[BUG] Swim duration double duration in Strava #61

serg703 opened this issue Mar 15, 2021 · 4 comments
Assignees
Labels
bug Something isn't working

Comments

@serg703
Copy link

serg703 commented Mar 15, 2021

the total swimming time after uploading the .tcx file to STRAVA is almost twice as long as the swimming time shown by HUAWEI HEALTN

Honor band 6a

Strava:
as show in Strava

Huawei health:
as show in HH

@CTHRU CTHRU self-assigned this Mar 16, 2021
@CTHRU CTHRU added the bug Something isn't working label Mar 16, 2021
@CTHRU
Copy link
Owner

CTHRU commented Mar 16, 2021

Thank you for reporting the issue. Unfortunately, without the original json data of this single activity, I won't be able to see what's going wrong.

If you don't mind, would you (temporarily) share the json export data from that specific activity here?
If you ran the standard command for conversion with the --json_export argument, you will find the json export in the folder below
Please add the file below to a comment in this ticket (you can just drag and drop it into your new comment screen). I will inform you when i have a local copy, you can then remove it again from your comment.

{your Hitrava installation folder}\output\Hitrack_ {YearMonthDay HourMinuteSecond} .json

You can then drag and drop it into a new comment here. I will remove the link when I have a copy. I only use the file during the time necessary to find the issue.

@CTHRU CTHRU changed the title [BUG] [BUG] Swim duration double duration in Strava Mar 16, 2021
@serg703
Copy link
Author

serg703 commented Mar 16, 2021

Hello.
Original file :
[Link removed]

Command:
Hitrava.py --file HiTrack --sport Swim_Pool --pool_length 23

.tcx file:
[Link removed]

HH screenshot with segments
[Link removed]

And further. TCX file not loading into TrainingPeaks with error:
1

@CTHRU
Copy link
Owner

CTHRU commented Mar 16, 2021

Ok, got the files, thank you for the complete information. I see the error occurs using the legacy file method, I will have a look at it whether I can do something about it later, but I can't promise you anything, The data from the HiTrack file for swimming activities is unfortunately not all that consistent, hence the reason why the JSON/ZIP conversion uses the consistent JSON data.

For more info, see also the changelog here

In the meantime, you could give the JSON/ZIP conversion a try for this activity if you want your data in Strava.

@serg703
Copy link
Author

serg703 commented Mar 16, 2021

May be problem with TCX file.
Look at last LAP on it (line #2679):

Lap StartTime is "2021-03-09T16:35:36+00:00"

Time first "Trackpoint' with "DistanceMeters" tag also is "2021-03-09T16:35:36+00:00"

but time of second "Trackpoint" with "HeartRateBpm"tag is "2021-03-09T16:33:26+00:0"

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants