CTHRU / Hitrava

Convert your Huawei Health sport activities and import them in Strava.
Other
352 stars 34 forks source link

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

Closed kosovarpt closed 4 years ago

kosovarpt commented 4 years ago

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

GeitV commented 4 years ago

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

CTHRU commented 4 years ago

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.

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

Thank you.

CTHRU commented 4 years ago

@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 commented 4 years ago

I sent to you one printscreen of all my ativivities from Huawei Health and the zip file.

A sexta, 15 de mai de 2020, 10:43, Christoph Vanthuyne < notifications@github.com> escreveu:

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.

— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub https://github.com/CTHRU/Hitrava/issues/11#issuecomment-629140019, or unsubscribe https://github.com/notifications/unsubscribe-auth/APSWVCXUVKHXCN5GY6PHSUDRRUFCPANCNFSM4NA63WVQ .

stevellion commented 4 years ago

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 commented 4 years ago

One the activities from 05 of May was CrossFit. All the rest was exterior runinng

A sexta, 15 de mai de 2020, 10:43, Christoph Vanthuyne < notifications@github.com> escreveu:

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.

— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub https://github.com/CTHRU/Hitrava/issues/11#issuecomment-629140019, or unsubscribe https://github.com/notifications/unsubscribe-auth/APSWVCXUVKHXCN5GY6PHSUDRRUFCPANCNFSM4NA63WVQ .

kosovarpt commented 4 years ago

Can you confirm that you receive the files? Ty

CTHRU commented 4 years ago

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 commented 4 years ago

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

CTHRU commented 4 years ago

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 commented 4 years ago

@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 commented 4 years ago

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 commented 4 years ago

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 commented 4 years ago

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 commented 4 years ago

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

CTHRU commented 4 years ago

@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 commented 4 years ago

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 commented 4 years ago

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 commented 4 years ago

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 commented 4 years ago

@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 commented 4 years ago

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.