pcolby / bipolar

Free your data from Polar FlowSync
GNU General Public License v3.0
115 stars 16 forks source link

Auto-detect sport types #12

Closed pcolby closed 10 years ago

pcolby commented 10 years ago

TCX files must specify the "Sport" for each activity, where the "Sport" value can be one of: Running, Biking, or Other.

Currently, Bipolar uses "Other" for all activities.

Ideally, Bipolar should be able to either detect the sport type (eg from the training-sessions-create request's "sport" field), or infer it (eg from the presence of certain types of cadence / footpod data).

pcolby commented 10 years ago

In release 0.1.0, the debug output will include lines like:

Sat Jul 26 16:02:04 2014 Debug sport 16

See if those number correlate with the activity you did. eg I suspect 16 = "Other Outdoor".

pcolby commented 10 years ago

I've put together a list of possible sport type mappings:

https://github.com/pcolby/bipolar/wiki/Polar-Sport-Types

Let me know if they do/don't appear to correlate well for your activities.

pcolby commented 10 years ago

Released in 0.1.1 :smile: