Read the statement by Michael Teeuw here.
MMM-Strava
-
@ianperrin Hi, I add Strava rotate like below, but only this module stopped(blank) after 7 hours running. all modules still running well, but Strava, please suggest a hint to solve this issue, thank you very much.
iMAGiCJAKE
{ module: 'MMM-Strava', position: 'top_right', header: 'STRAVA ACTIVITY', config: { strava_id: 'xxxxxxx', access_token: 'xxxxxxxxxx', auto_rotate: true } }, -
@iMAGiC are you able to share the contents of your log at the time the module stopped refreshing?
-
@ianperrin sorry for late reply, it was quite busy this week, I will try it again in this week.
btw, could this module run and show two people record? for ex. one for me, one for my wife. -
@ianperrin sorry for late reply, it was quite busy this week, I will try it again in this week.
btw, could this module run and show two people record? for ex. one for me, one for my wife.The module doesn’t currently support multiple people. However you could try adding the module twice to your
config.jsfile. -
@ianperrin
I tried that(add twice), both aren’t show any record. -
@ianperrin add twice will cause 2 modules won’t work. and after I tested in an all new Raspbian Jessie installation, it still happen abnormal flashing in rotate mode or stop showing anything after 10 mins or more, but every time happened.
in pm2 log won’t show anything error on this module. I will turn it to no rotate mode anyway. -
@ianperrin I made a video for saying abnormal flashing in table rotate mode, if like like to see it.
https://goo.gl/KNdkk7 -
-
Great module! I tried to implement but my module is stuck at “Loading…”
Guessing it has something to do with the API creation. I have my athlete ID that I see when I look at my Strava profile.
I ended up with a Client ID, Client Secret and Access Token when I created the API. Guessing I should be using only the Access Token?
Also, when I created the API, I had to put in a website and authorization callback domain. Not sure if these have an affect but I used the internal IP for the raspberry pi for both. Is that right? Thanks!
-
Hi
Did you get a resolution to your issue as I seem to have similar issue with module stuck at Loading…
When I look at the terminal window I am getting error:
Error performing request: Unauthorized. Access Token will be reset.
Error while fetching new athlete stats.Look at code this is a 401 error.
I am getting confused as I thought the Strava API key was public but from this error it looks as though it wants to authorise API Key.
As this is an old post I will create a new post this evening with some more detail.
-
Hi Ian
Can you help as I think I am getting confused.
I carried out the following steps:
- Imported MMM-Strava into my modules folder.
- Logged into my Strava account and navigated ->Settings->My API Application
- Created an application icon
- Completed fields, Application Name = MyData, Category = Other, Website = https://Strava.com, Authorization Callback Domain = 127.0.0.1
- Click update button
- Copied Client ID and Your Access Token (?) (permissions: public)
- Update MagicMirror config.js with Client ID and Your Access Token
- Restarted MagicMirror
When MagicMirror displays the Strava modules says Loading… and looking at the terminal window I can see errors:
Error performing request: Unauthorized. Access Token will be reset.
Error while fetching new athlete stats.Which looks to be a 401 error from code that, access token has not been authorised.
Can anybody point me to what I am doing wrong.
-
Hi,
sounds you took the client id from the strava api page as input for strava_id of the module?
Input of strava_id: https://support.strava.com/hc/en-us/articles/216928797-Where-do-i-find-my-Strava-ID-
Karsten.
-
Hi
Firstly thank you for your reply.
You are correct I used the client id and when I replaced this with the strava id as your link described all works great.
Thanks again.
-
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
Hello! It looks like you're interested in this conversation, but you don't have an account yet.
Getting fed up of having to scroll through the same posts each visit? When you register for an account, you'll always come back to exactly where you were before, and choose to be notified of new replies (either via email, or push notification). You'll also be able to save bookmarks and upvote posts to show your appreciation to other community members.
With your input, this post could be even better 💗
Register Login