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

Suunto Ambit Support #64

Open
SBrownAU opened this issue Sep 24, 2020 · 5 comments
Open

Suunto Ambit Support #64

SBrownAU opened this issue Sep 24, 2020 · 5 comments

Comments

@SBrownAU
Copy link

SBrownAU commented Sep 24, 2020

I'm trying to process a file that looks to be from a Suunto Ambit that I can view by uploading to https://www.fitfileviewer.com/ If I try to process using this library I get Undefined offset error @ $this->types = $this->endianness[$architecture];

$architecture is showing as 14. Obviously, the code expects zero or one. Any idea? Fit file attached.

68270818303.zip

@adriangibbons
Copy link
Owner

adriangibbons commented Sep 28, 2020

Hi, can you try commenting-out line 1343
https://github.com/adriangibbons/php-fit-file-analysis/blob/master/src/phpFITFileAnalysis.php#L1343

Appears to be a swimming file recorded with a Garmin 920XT. Were there any sensors attached e.g. HR strap?

@SBrownAU
Copy link
Author

Hmm yep looks like's a Garmin. Commenting out 1343 worked in allowing me to parse the file (and other similar ones I've had issue with). It's not my file so I'll try and find out whether the user had any sensors attached.

@adriangibbons
Copy link
Owner

No worries. As you can read from the comment on the line before it was a bit of a fudge to ensure all data is processed. Otherwise "buffered messages" were not being parsed. I haven't kept up with changes to the FIT protocol standard for some time. Out of interest, what are you using the PHP class for? Is there a URL of a site I could visit? To be honest, I thought this project had gone stale and is quite old / on the verge of being made read-only as I don't really maintain it any longer.

@SBrownAU
Copy link
Author

I'm using it to process FIT files from the Garmin API. The project I'm involved with does our own processing and analysis on the files (some of which Garmin doesn't provide hence why we're processing ourselves). Public/marketing site is https://athletica.ai/ private site in beta at the moment.

@adriangibbons
Copy link
Owner

adriangibbons commented Sep 28, 2020

Nice! Would you mind dropping me a line? I'm interested in knowing about the Garmin API. I plug into the Strava API for my main project. After access to the Strava API, I didn't really need to process FIT files myself, hence the drop-off in maintaining this project.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants