Read the statement by Michael Teeuw here.
MMM-Strava only shows achievements, nothing else?
-
Problem of strava api https://developers.strava.com/docs/reference/#api-Athletes-getStats
Get Athlete Stats (getStats) Returns the activity stats of an athlete. Only includes data from activities set to Everyone visibilty.
-
@karsten13 @nakulbende The Strava API is becoming more and more useless on several endpoints.
You have to think about it. With this endpoint, you can only draw YOUR OWN data (the data of the authenticated athlete), not of any other athlete, but it does NOT include private data.
Does not make any sense at all.I’m still working on a bigger Strava module (which takes some more time after I needed to amend to further destructive API changes).
The data could also be gathered from the “getActivities” endpoint, which includes private activities. Maybe the stats need to be created from that in future.
This API call is however not included in MMM-Strava. -
did already a PR for this for MMM-Strava, but still not merged: https://github.com/ianperrin/MMM-Strava/pull/38
-
@karsten13 Great contribution!
I might need to “borrow” some of that for my module :-) -
IMO this PR is only a workaround of a missing strava api function, I think they use it internally on their website, but they dont publish it … the workaround to calculate on your own is slow, loading my > #680 activities needs 20 sec. But I’m no js expert, may you can speed things up …
-
@karsten13 and @lavolp3 Thanks both of you for your contributions!!
I know strava is having issues, and is pushing a lot pf services to paid customers only. I dont mind not being able to see any other athletes, I mostly use it for my own tracking, and so I just keep it private. I do know that the random changes in their API caused a lot of trouble for you guys.
So - is there a way to checkout the PR - and use private activities? Can I use something like
git checkout pr 38
and it will be the version @karsten13 PRed? -
you have to use my fork of MMM-Strava.
First goto yourmodules
folder and remove the currentMMM-Strava
subfolder (or rename it).
Then in yourmodules
folder executegit clone -b stats_incl_private_acts https://github.com/khassel/MMM-Strava.git
.
You can use your current config in yourconfig.js
and addshowprivatestats: true
to use this new feature. -
You all are just wizards!!
-
Tried that - authenticated again. I have some public and some private activities now. But now it does not show anything.
Here is my config file:
// Strava { module: "MMM-Strava", position: "bottom_right", config: { client_id: "XXXXXX", client_secret: "XXXXXXXXXXXx", mode: "table", activities: "ride", reloadInterval: 1000*60*30, stats: ["count", "distance", "moving_time", "achievements"], showprivatestats: true, } },
I deleted the old folder too.
-
what means
anything
? Remains in loading state?Here the brackets are missing:
activities: ["ride"],
And now the old wizard is tired and has to go to bed …