jonasoreland / runnerup

A open source run tracker
GNU General Public License v3.0
742 stars 274 forks source link

Activity type is not set when upload in Strava #582

Closed filin2009 closed 7 years ago

filin2009 commented 7 years ago

RunnerUp_0079.zip

In RunnerUp - Running , in Strava - Cycling Example https://www.strava.com/activities/1094302547 OK: RunKeeper https://runkeeper.com/user/filin/activity/1022197656 Endomondo https://www.endomondo.com/users/12006801/workouts/967224361

gerhardol commented 7 years ago

The type is not changed, it is just not set. Strava will use the athlete's default activity type. The type could be set as done for Endomondo and RunKeeper. https://github.com/jonasoreland/runnerup/blob/master/app/src/org/runnerup/export/StravaSynchronizer.java#L213 https://strava.github.io/api/v3/uploads/

filin2009 commented 7 years ago

True. But could you please update runnerup/blob/master/app/src/org/runnerup/export/StravaSynchronizer.java and set parameter "activity_type" correspondently to activity type in RunnerUp while uploading to Strava? I am running and cycling sometimes, so changing activity type in Strava all the times is unconfortable.

https://strava.github.io/api/v3/uploads/ activity_type: string optional, case insensitive possible values: ride, run, swim, workout, hike, walk, nordicski, alpineski, backcountryski, iceskate, inlineskate, kitesurf, rollerski, windsurf, workout, snowboard, snowshoe, ebikeride, virtualride Type detected from file overrides, uses athlete’s default type if not specified

gerhardol commented 7 years ago

Included in upcoming v1.58