sweatpy icon indicating copy to clipboard operation
sweatpy copied to clipboard

GoldenCheetah OpenData Project compatibility

Open AartGoossens opened this issue 6 years ago • 6 comments

It would be nice if sweatpy supports working with data from the GoldenCheetah OpenData Project right out of the box. Probably could be a separate module in sweat.io, similar to sweat.io.strava, and sweat.io.fit.

Resources: https://osf.io/6hfpz/ https://github.com/GoldenCheetah/OpenData

AartGoossens avatar Apr 03 '18 14:04 AartGoossens

There is a python lib for working with osf too https://github.com/osfclient/osfclient

liversedge avatar Apr 03 '18 22:04 liversedge

Thanks for pointing to the osfclient, that could provide a really seamless experience without having to download any files manually. Will look into it.

AartGoossens avatar Apr 04 '18 06:04 AartGoossens

I'd be really interested to get some thoughts on what kind of 'index' or 'metadata' we should generate to help folks navigate across what is likely to be a big bunch of zipfiles.

.. but perhaps some of this work belongs in the OpenData project not sweatpy, so will add you and Maksym to that project too.

liversedge avatar Apr 04 '18 13:04 liversedge

I think there is already enough metadata: the name of the zip file matches the athlete id and the json contains enough information to do things like "get the latest activity" or "list the activities that contain power". I started working on a POC that you can view here. For me it would make sense to let sweatpy handle opendata directly via osfclient. But maybe you think this should be handled in https://github.com/GoldenCheetah/OpenData, possibly with a dependency on sweatpy? Can you explain the purpose of this OpenData repo?

AartGoossens avatar Apr 05 '18 06:04 AartGoossens

OpenData repo is for tooling to work with the opendata files; python, R, js

When/if there are hundreds of zip files you won't want to download and unzup them all .. some kind of index will help id athlete files that are relevant to your analysis e.g. cycling, have power and cadence, multi years...

liversedge avatar Apr 05 '18 19:04 liversedge

Clear.

True that. It might be useful to store a separate file with metadata in osf or somewhere else. Maybe even in the OpenData repo?

On 5 Apr 2018 at 21:17, Mark Liversedge [email protected] wrote:

OpenData repo is for tooling to work with the opendata files; python, R, js

When/if there are hundreds of zip files you won't want to download and unzup them all .. some kind of index will help id athlete files that are relevant to your analysis e.g. cycling, have power and cadence, multi years...

— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub https://github.com/GoldenCheetah/sweatpy/issues/22#issuecomment-379047156, or mute the thread https://github.com/notifications/unsubscribe-auth/AD4-vylmmE--pmttF_DDcBCk6h3_vdY2ks5tlm3JgaJpZM4TFKFj .

AartGoossens avatar Apr 05 '18 20:04 AartGoossens