Read the statement by Michael Teeuw here.
MMM-Strava
-
Hello,
I have the problems that with the following config the module is always “loading…”.Can someone help me?
{ module: 'MMM-Strava', position: 'top_left', config: { strava_id: 'xxx1, xxx2', access_token: 'xxx1, xxx2', activities: 'run', athlete_text: 'Tine, Basti', auto_rotate: 'true' } },
-
try it with the missing brackets:
{ module: 'MMM-Strava', position: 'top_left', config: { strava_id: ['xxx1', 'xxx2'], access_token: ['xxx1', 'xxx2'], activities: ['run'], athlete_text: ['Tine', 'Basti'], auto_rotate: 'true' } },
-
Unfortunately, no solution
-
your setup works for me, changed only strava_id’s and access_token’s.
Did you put every single strava_id and every single access_token in single quotes as provided in my example? In your post you put 2 things in one single quote …
Other possibilities: Wrong strava data (id/token)? Did you read the documentation how to get strava_id?
Did you take a look in the logs?
If I test it with your testdata xxx I find these lines in the logs:Error performing request: Unauthorized. Access Token will be reset. Error while fetching new athlete stats.
-
It works. Despite control I had the wrong API sorry
-
Hi guys, i am using the Strava-Module and over the Winter i am doing a lot of indoor-cycling with Zwift. I was wondering if it is possible to integrate “virtual cycling” into the module and if it’s possible, then how. Hope anyone can answer this. I don`t need the “swim” anyway, so i would like to interchange it with “virtual ride”
-
You should be able to hide swim activities by adding the following to your config
activities: ["ride", "run"]
Adding other activity types will need some investigation of the Strava API as ActivityStats only returns totals for the three activity types currently available.
I need to look at the module again shortly as there is an change to the API which requires a different authentication mechanism so I’ll try an pick this up then
-
@ianperrin said in MMM-Strava:
You should be able to hide swim activities by adding ‘’‘activities: [“ride”, “run”]’‘’ to your config
Adding other activity types will need some investigation of the Strava API as ActivityStats only returns totals for the three activity types currently available.
I need to look at the module again shortly as there is an change to the API which requires a different authentication mechanism so I’ll try an pick this up then
Thanks for your reply. I know that i can hide “swim”, but just wanted to change it to “virtual ride”. So i just wait until you have looked at the API.
Thanks in advance for your support. -
@zerodegree79 great - wasn’t sure from your comment whether you’d spotted the option on the config.
After a quick look, I’ve pushed a change to the module which includes
virtual
activities in the chart stats. Take a look and let me know if this works as expected. -
@ianperrin hi, thanks for the fast response. I tried to update, but now it is stuck in loading activities. I changed the MMM-Strava.js. What else do i need to edit? Below is my config:
// Default module config. defaults: { strava_id: ['XXXXXX'], // List of strava_id's, could get this from current athlete - https://strava.github.io/api/v3/athlete/#get-details access_token: ['XXXXXXXXXXXXXXXXX'], // List of acces_token's (corresponding to the strava_id's), see https://www.strava.com/settings/api athlete_text: [''], // List of athlete_text's (corresponding to the strava_id's), will be diplayed instead of ativity_text mode: 'table', // Possible values "table", "chart" elevation: true, // Shows elevation in "table" mode activities: ["ride", "run", "virtual"], // Possible values "ride", "run", "swim" period: "all", // Possible values "recent", "ytd", "all" auto_rotate: true, // Rotate stats through each period starting from specified period locale: config.language, units: config.units, fade: false, fadePoint: 0.1, // Start on 1/4th of the list. reloadInterval: 5 * 60 * 1000, // every 5 minutes updateInterval: 600 * 1000, // 10 seconds animationSpeed: 10 * 1000, // 2.5 seconds debug: false, // Set to true to enable extending logging },
No idea whats wrong. Thanks in advance.