Comments (21)
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.
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.
@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.
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.
Have the same error, if needed, can provide my zip file for debugging
from hitrava.
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.
@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.
from hitrava.
from hitrava.
Can you confirm that you receive the files? Ty
from hitrava.
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.
"sportType": 103
Which corresponds to "indoor cycle"
Not something I want to sync with Strava, but might want to get fixed still 😄
from hitrava.
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.
@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.
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.
Ok, I sent via email. I didn't no that was no possible. Here are them in comments. Ty
from hitrava.
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.
But now, I after thinking I will delete that activity "Croosfit" because I dont want that in my Strava too. :P
from hitrava.
@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.
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.
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)
- [SUPPORT] Getting an error during JSON parsing KeyError 'attribute' HOT 3
- [Mobile app] Mobile app with automatic activity upload to Strava HOT 1
- Error with Openwater Swimming Data HOT 12
- Help with web upload HOT 1
- Updates to HiTrack file format.
- How to get HiTrack files using Emu like BlueStacks+ or MEMu HOT 3
- question about pool length HOT 1
- Calories HOT 1
- Can't upload Workouts 2 last month - Hitrava Web trial limitations HOT 7
- extract only heart rate data HOT 7
- [BUG] Swim duration double duration in Strava HOT 4
- [SUPPORT] Converting Activities until a certain date HOT 2
- Different data retrieved using HiTrava Web and Python version HOT 5
- [BUG] Incorrect output dates (several years between data points) HOT 4
- [SUPPORT] file not found error HOT 3
- Activities grayed out in Hitrava web - can't conver them HOT 1
- [SUPPORT] Does not work on latest export? HOT 4
- [BUG] TypeError: descriptor 'replace' for 'datetime.datetime' objects doesn't apply to a 'NoneType' object HOT 2
- [BUG] - INFO - main error HOT 1
- [BUG] Error converting Open Water Swim activity HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from hitrava.