trackerproject / trackeR

Infrastructure for Running, Cycling and Swimming Data from GPS-Enabled Tracking Devices
http://cran.r-project.org/package=trackeR
90 stars 7 forks source link

Garmin .fit files #4

Open datawookie opened 6 years ago

datawookie commented 6 years ago

Hi Hannah,

A colleague just brought this package to my attention. As a runner this is really interesting to me! I use a Garmin and have loads of .fit files stashed on my laptop. I see that these are not currently handled by trackeR. Would you be interested in a contribution to handle this format?

Best regards, Andrew.

ikosmidis commented 6 years ago

Hi Andrew,

.fit support is in our wishlists for a while. So, feel free to have a go with it; a fork, a branch and a pull request would be most convenient, and a few examples to test things out will help Hannah and I to test things out.

Here are some resources, in case you haven't seen them already:

Figure 1 of the package vignette shows where a readFIT function should be in the package hierarchy, Section 3 explains the structure that the resulting data frame should have for the trackeRdata constructor function, and Table 3 shows the currently supported units including the default units that trackeRdata uses when units = NULL.

Thanks, Ioannis

hfrick commented 6 years ago

Hi @DataWookie

what @ikosmidis said - support for .fit would be great! 🙌

Hannah

datawookie commented 6 years ago

Great. I'll try to carve out some time to work on this.

krissen commented 4 years ago

+1, .fit -support would be great. There is an archived project, fitdc which seems to work on .fit files I have before ca. 2014. For files created after that, it does not.

ikosmidis commented 4 years ago

We have plans for a way to support fit files (and many more). Though, this will take some time as it requires a whole new package.

Direct .fit support in trackeR is tricky because of licencing and can be a tough maintenance (if G decides to change things).