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] Cant use HITrava for the last 3 days #11

Closed
kosovarpt opened this issue May 14, 2020 · 21 comments
Closed

[BUG] Cant use HITrava for the last 3 days #11

kosovarpt opened this issue May 14, 2020 · 21 comments
Assignees
Labels
bug Something isn't working

Comments

@kosovarpt
Copy link

I've always used HiTrava with standard command "Run_Hitrava.cmd". For the last 3 days I cant use anymore.
I send a screenshot of the error!

Capture

@CTHRU CTHRU self-assigned this May 15, 2020
@CTHRU CTHRU added the bug Something isn't working label May 15, 2020
@GeitV
Copy link

GeitV commented May 15, 2020

Have the same error, if needed, can provide my zip file for debugging

@CTHRU
Copy link
Owner

CTHRU commented May 15, 2020

You stumbled upon an activity sport type that is currently unknown to Hitrava. You also discovered a small bug that the program doesn't accept unknown sport types when they appear in the header data of the activity. I will correct that.

As for the first part, I would like to investigate if this (unknown) sport type could be supported. You could help me with that by providing me additional information about your activity of May 5th, 2020.

  • Option 1 (easiest for me, but you need to feel alright with temporarily sharing that specific activity data with me, I use it only temporarily to debug/add the feature to support it): 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_20200505_101253.json

  • Option 2: Open the file above in a text editor (e.g. notepad). You should see something like:

[{"motionPathData": [{"sportType": ?,
I would require the number that appears where the question mark (?) is in the line above.

In both cases, please let me know what the sport type is of the activity as it appears in Huawei Health.

Thank you.

@CTHRU
Copy link
Owner

CTHRU commented May 15, 2020

@GeitV, I'm online now, if you could share your ZIP file or the .json file of the failing activity (see comment above), that would be great.

@kosovarpt
Copy link
Author

kosovarpt commented May 15, 2020 via email

@stevellion
Copy link

I'm also getting the same error.
Sport type is 117 - Recorded on Watch GT2 - It's marked as "Other".
(I think is was chasing the kids.... :-) ) - Sent you a coffee too!

@kosovarpt
Copy link
Author

kosovarpt commented May 15, 2020 via email

@kosovarpt kosovarpt reopened this May 15, 2020
@kosovarpt
Copy link
Author

Can you confirm that you receive the files? Ty

@CTHRU
Copy link
Owner

CTHRU commented May 15, 2020

I'm also getting the same error.
Sport type is 117 - Recorded on Watch GT2 - It's marked as "Other".
(I think is was chasing the kids.... :-) ) - Sent you a coffee too!

@stevellion Thank you so much for the coffee! Much appreciated.

Ok, so I officially add sport type 117 as 'Chasing the kids' then? :-)

I'll prepare the code to accept 117 and wait for an example file to see if additional changes would be necessary.

@GeitV
Copy link

GeitV commented May 15, 2020

"sportType": 103
Which corresponds to "indoor cycle"
Not something I want to sync with Strava, but might want to get fixed still 😄

@CTHRU
Copy link
Owner

CTHRU commented May 15, 2020

Can you confirm that you receive the files? Ty

@kosovarpt I'm sorry, I didn't receive the files (or must have missed them in one of your comments). I think you tried to reply via mail, unfortunately, that doesn't add the attachments on GitHub (I assume). Could you try again by going to the GitHub issue page and add a new comment there. You can drag the file to the comment window.

@CTHRU
Copy link
Owner

CTHRU commented May 15, 2020

@GeitV OK, thanks for the info for the 103 too. If you want, I can see whether it would be possible to sync any useful data (provided you're ok to temporarily share the JSON export of the activity as explained above

@GeitV
Copy link

GeitV commented May 15, 2020

I've never done indoor cycling so this must've been some kind of accidental activity start from my end. But here you go

[Once in awhile back, zip file lived here]

@kosovarpt
Copy link
Author

kosovarpt commented May 15, 2020

Screenshot_20200515_104550_com huawei health

Ok, I sent via email. I didn't no that was no possible. Here are them in comments. Ty

@CTHRU
Copy link
Owner

CTHRU commented May 15, 2020

I've never done indoor cycling so this must've been some kind of accidental activity start from my end. But here you go

@GeitV - got the file, you can remove it from your post if you want.

@kosovarpt
Copy link
Author

But now, I after thinking I will delete that activity "Croosfit" because I dont want that in my Strava too. :P

@CTHRU
Copy link
Owner

CTHRU commented May 15, 2020

@kosovarpt - OK, thank you, I got the file, you can remove it from your post if you want. Will see if anything is possible with the crossfit activity.

@stevellion
Copy link

I do also do quite a bit of Indoor Cycling (well, will, when the lockdown is over) - Trying to figure out what the JSON code is for you.

@stevellion
Copy link

Just found all the codes in my big 1 JSON file (ID'd versus the calories burned on my phone)
SportType Activity
3 Outdoor Cycle
5 Walk
4 Outdoor Run
102 Indoor Swim
103 Indoor Cycle
111 Cross Trainer/Elyptical
117 Other

@stevellion
Copy link

stevellion commented May 15, 2020

I'm also getting the same error.
Sport type is 117 - Recorded on Watch GT2 - It's marked as "Other".
(I think is was chasing the kids.... :-) ) - Sent you a coffee too!

@stevellion Thank you so much for the coffee! Much appreciated.

Ok, so I officially add sport type 117 as 'Chasing the kids' then? :-)

I'll prepare the code to accept 117 and wait for an example file to see if additional changes would be necessary.
Removed Zip

please remove when downloaded for debugging.

@CTHRU
Copy link
Owner

CTHRU commented May 15, 2020

@stevellion - thanks for the copy, I have a temp copy for the debugging. You can remove the link from your comment above. I will delete my temp copy after testing.

@CTHRU
Copy link
Owner

CTHRU commented May 15, 2020

Ok, an update on the situation. Your files helped me reproduce the error.
The good news, I will release a patch to resolve the issue that the programs stops when it encounters an activity type it doesn't recognize.
Unfortunately, none of the 'new' activity types you helped to discover (Indoor Cycle, Cross Trainer, Other, CrossFit) produces a usable result for now. I added them to the unsupported activity types for now and will look if adjustments can be made to support them in a future release (might take some time, though).

I propose to close this ticket with the release of the next version. I will create a separate ticket to analyze / implement support for the above mentioned activity types.

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

4 participants