Comments (5)
Will take a quick look now but I think the wife is expecting some of my attention, given what day it is :)
Might be the weekend before I get to take a proper look...
Is the FIT file recorded with a different device? Cheers
from php-fit-file-analysis.
from php-fit-file-analysis.
The Garmin Connect page can't be viewed any longer.
Try inserting the following at line 2703
// Manually scale timestamps (i.e. divide by 1024)
$last_event_timestamp = $this->data_mesgs['hr']['event_timestamp'];
if (is_array($last_event_timestamp)) {
$last_event_timestamp = $last_event_timestamp[0];
}
You might need to try $last_event_timestamp[1]
if heart rate isn't working.
If this works then I'll commit the change to the project. Cheers, Adrian.
from php-fit-file-analysis.
Hey @robthompsonweb - do thing now work as expected for the file(s) throwing the error?
Cheers, Adrian.
from php-fit-file-analysis.
Yes so I did try it with [0] and [1] (not sure what data this is) which removes the error but only seems to give HR for half the activity (but garmin connect displays it for the whole activity).
Looking at the field record->heart_rate the last timestamp is 1518258007 - which is only about 1/3 through the activity (record->timestamp[988] out out of 3424)
Json export of the data from the fit file in the original post.
The field hr->event_timestamp is a array with 2 elements which could have something to do with it (its only parsing the first event??) - looking at another file with HR hr->event_timestamp is a timestamp not array (attached
single_event_hr_fit.txt
).
Will try digging a bit to see if I can figure out why when got a second
from php-fit-file-analysis.
Related Issues (20)
- Problem with some latitude fields? HOT 13
- Notice: Undefined offset: 84 in phpFITFileAnalysis.php on line 1228 HOT 4
- Precision rounding of fields HOT 3
- data_mesgs['record'] null HOT 8
- getJSON function for laps or other fit sections HOT 2
- loadFromFile, loadFromData Suggestion... HOT 3
- incorrect speed values HOT 8
- pause or smart record HOT 1
- data_mesgs['session'] is null HOT 6
- example for leaflet js HOT 3
- Multiple sessions HOT 5
- Suunto Ambit Support HOT 5
- Garmin Product Information is incorrect HOT 2
- Help with corrupted FIT file HOT 7
- Multisport HOT 1
- Error processing FIT files caused by invalid $architecture variable
- Demo not working HOT 3
- Google Geocoding API: Error HOT 3
- [(Probably) since Garmin Edge 1040 Solar Firmware Update] Uncaught TypeError: end(): Argument #1 ($array) must be of type array, null given HOT 9
- Missing Data from Garmin FIT File - strengh_training
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 php-fit-file-analysis.