mvan231 / Scriptable

MIT License
115 stars 39 forks source link

Distance not according to Strava #1

Closed Flo-ris closed 3 years ago

Flo-ris commented 3 years ago

The distance in the widget is not the same as it is on Strava profile. I can compare on bikeing and running. Running has a deviation of 900km and biking 500km. Is there a difference between public and private activities in the API?

mvan231 commented 3 years ago

Thanks for the info about this. I just looked in the API documentation and it states this:

Get Athlete Stats (getStats) Returns the activity stats of an athlete. Only includes data from activities set to Everyone visibilty

Based on this note about the Get Athlete Stats endPoint, I can say yes, there is a difference. There is a way I could sum up all the activities manually that get returned. However, it also has a restriction for the "only me" tag unless using the read_all activity token

List Athlete Activities (getLoggedInAthleteActivities) Returns the activities of an athlete for a specific identifier. Requires activity:read. Only Me activities will be filtered out unless requested by a token with activity:read_all.

mvan231 commented 3 years ago

Based on the strava API documents, displaying the private activities could be possible but would require some different API calls to be made and would need some additional authorization. Are you okay if I close this issue?