Giter Site home page Giter Site logo

Comments (21)

stevellion avatar stevellion commented on May 18, 2024 1

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!

from hitrava.

stevellion avatar stevellion commented on May 18, 2024 1

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

from hitrava.

CTHRU avatar CTHRU commented on May 18, 2024 1

@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.

from hitrava.

CTHRU avatar CTHRU commented on May 18, 2024 1

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.

from hitrava.

GeitV avatar GeitV commented on May 18, 2024

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

from hitrava.

CTHRU avatar CTHRU commented on May 18, 2024

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.

from hitrava.

CTHRU avatar CTHRU commented on May 18, 2024

@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.

from hitrava.

kosovarpt avatar kosovarpt commented on May 18, 2024

from hitrava.

kosovarpt avatar kosovarpt commented on May 18, 2024

from hitrava.

kosovarpt avatar kosovarpt commented on May 18, 2024

Can you confirm that you receive the files? Ty

from hitrava.

CTHRU avatar CTHRU commented on May 18, 2024

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.

from hitrava.

GeitV avatar GeitV commented on May 18, 2024

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

from hitrava.

CTHRU avatar CTHRU commented on May 18, 2024

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.

from hitrava.

CTHRU avatar CTHRU commented on May 18, 2024

@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

from hitrava.

GeitV avatar GeitV commented on May 18, 2024

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]

from hitrava.

kosovarpt avatar kosovarpt commented on May 18, 2024

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

from hitrava.

CTHRU avatar CTHRU commented on May 18, 2024

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.

from hitrava.

kosovarpt avatar kosovarpt commented on May 18, 2024

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

from hitrava.

CTHRU avatar CTHRU commented on May 18, 2024

@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.

from hitrava.

stevellion avatar stevellion commented on May 18, 2024

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.

from hitrava.

stevellion avatar stevellion commented on May 18, 2024

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.

from hitrava.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.