• Recent
  • Tags
  • Unsolved
  • Solved
  • MagicMirror² Repository
  • Documentation
  • 3rd-Party-Modules
  • Donate
  • Discord
  • Register
  • Login
MagicMirror Forum
  • Recent
  • Tags
  • Unsolved
  • Solved
  • MagicMirror² Repository
  • Documentation
  • 3rd-Party-Modules
  • Donate
  • Discord
  • Register
  • Login
A New Chapter for MagicMirror: The Community Takes the Lead
Read the statement by Michael Teeuw here.

MMM-Strava

Scheduled Pinned Locked Moved Health
activity trackerhealthstrava
138 Posts 34 Posters 186.8k Views 35 Watching
Loading More Posts
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • D Offline
    dnovacik
    last edited by Sep 7, 2019, 5:58 AM

    @ianperrin gj then, can’t wait to try out the module!

    1 Reply Last reply Reply Quote 0
    • Z Offline
      zolabus
      last edited by Oct 19, 2019, 5:53 AM

      I can’t use the module anymore
      If I try to reauthorize i have this error

      {“message”:“Bad Request”,“errors”:[{“resource”:“Authorize”,“field”:“scope”,“code”:“invalid”}]}

      Any help please?
      Thanks

      I 1 Reply Last reply Oct 19, 2019, 12:27 PM Reply Quote 0
      • I Offline
        ianperrin @zolabus
        last edited by Oct 19, 2019, 12:27 PM

        @zolabus said in MMM-Strava:

        I can’t use the module anymore
        If I try to reauthorize i have this error

        {“message”:“Bad Request”,“errors”:[{“resource”:“Authorize”,“field”:“scope”,“code”:“invalid”}]}

        Any help please?
        Thanks

        @zolabus - I’ve just released version 2.0.0 of the plugin which is available via the Master branch. Can you try this version?

        When updating please make sure you run npm install --production from the MMM-Strava directory.

        If you continue to get these errors, please check the Authorization Callback Domain in your Strava API Settings (https://www.strava.com/settings/api) matches the IP address/URL used to access MagicMirror

        "Live as if you were to die tomorrow. Learn as if you were to live forever." - Mahatma Gandhi

        Z 1 Reply Last reply Oct 20, 2019, 8:40 AM Reply Quote 0
        • Z Offline
          zolabus @ianperrin
          last edited by Oct 20, 2019, 8:40 AM

          @ianperrin
          Hi I updated the module
          When I restart the Magic Mirror I receive this
          MMM-Strava: “Received notification: SET_CONFIG”
          MMM-Strava: “Legacy config in use for module_14_MMM-Strava”
          MMM-Strava: “Getting data for module_14_MMM-Strava”
          MMM-Strava: “Access token not found for module_14_MMM-Strava”

          Z 1 Reply Last reply Oct 20, 2019, 8:53 AM Reply Quote 0
          • Z Offline
            zolabus @zolabus
            last edited by Oct 20, 2019, 8:53 AM

            @ianperrin
            Issue resolved thanks

            1 Reply Last reply Reply Quote 1
            • M Offline
              MisterT
              last edited by Nov 4, 2019, 11:40 AM

              Hi everybody,
              I posted in troubleshooting section but i don’t know if it’s visible. That’s why i post here. I don’t understand the step 2 and the step 5 in Tutorial about MMM-Strava. I have a ID and a secret but i don’t know what i write in case:

              APi Name
              Category
              Club
              WebSite
              Description
              and Callback domain

              In Website and Callback domain what i write?
              In callback domain, i put my IP to my magic mirror like 192.128.1.99:8080 but nothing happen

              Can anybody help me please?

              I 1 Reply Last reply Nov 4, 2019, 3:43 PM Reply Quote 0
              • I Offline
                ianperrin @MisterT
                last edited by ianperrin Nov 4, 2019, 9:41 PM Nov 4, 2019, 3:43 PM

                @MisterT

                When creating your Strava API Application in Step 2, the key value is the Authorisation Callback Domain. This needs to the IP address or domain name you use to access the MagicMirror otherwise subsequent steps will fail. So in your case it looks like you should use 192.128.1.99

                Once the API Application is created, add the module to your config.js file with the client_id and client_secret then restart the mirror.

                The module should then state Client id unauthorised and provide a link to the authorisation process. At which point you should be able to follow step 5

                Here’s two screenshots which might help:
                Strava API Settings

                Strava API id and secret

                "Live as if you were to die tomorrow. Learn as if you were to live forever." - Mahatma Gandhi

                1 Reply Last reply Reply Quote 0
                • M Offline
                  MisterT
                  last edited by Nov 5, 2019, 8:02 PM

                  ok thanks ianperrin for your help
                  Step 2 is ok because on magic mirror, i have the link on magic mirror : client unauthorized see /MMM-Strava/auth/

                  but now in step 5, i make:
                  in webpage, and magic mirror starting i put
                  http://192.128.1.99:8080/MMM-Strava/Oauth/
                  but nothing happen. The webpage says:
                  host unreachable
                  ERR_CONNECTION_REFUSED

                  have you an idea?

                  I 1 Reply Last reply Nov 5, 2019, 9:48 PM Reply Quote 0
                  • I Offline
                    ianperrin @MisterT
                    last edited by ianperrin Nov 5, 2019, 9:51 PM Nov 5, 2019, 9:48 PM

                    @MisterT is it possible you’re typing in the wrong url. Try using
                    http://192.128.1.99:8080/MMM-Strava/auth/ or simply clicking the link displayed by the module on the mirror.

                    If that fails, are you able to access your mirror via http://192.128.1.99:8080/ ?

                    Finally, can you make sure you ran npm install --production in step 1 and restarted the mirror?

                    "Live as if you were to die tomorrow. Learn as if you were to live forever." - Mahatma Gandhi

                    1 Reply Last reply Reply Quote 0
                    • M Offline
                      MisterT
                      last edited by MisterT Nov 8, 2019, 12:48 PM Nov 8, 2019, 11:25 AM

                      hI @ianperrin
                      It Works !!!
                      Nice explanations.
                      My mistake is when i launched a webpage to write the url i stoped the MM by Ctrl+Q. Now with MM start and a webpage opened. Everything is alright

                      Thanks for your help

                      1 Reply Last reply Reply Quote 1
                      • 1
                      • 2
                      • 6
                      • 7
                      • 8
                      • 9
                      • 10
                      • 13
                      • 14
                      • 8 / 14
                      • First post
                        Last post
                      Enjoying MagicMirror? Please consider a donation!
                      MagicMirror created by Michael Teeuw.
                      Forum managed by Sam, technical setup by Karsten.
                      This forum is using NodeBB as its core | Contributors
                      Contact | Privacy Policy