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 223.1k 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.
    • I Offline
      ianperrin @lavolp3
      last edited by

      @lavolp3 - thanks and good spot. Currently rotation is only supported for table mode. I’ve pushed a fix to the develop branch to enforce this behaviour. Please use git pull to get and test the changes.

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

      lavolp3L 1 Reply Last reply Reply Quote 0
      • lavolp3L Offline
        lavolp3 Module Developer @ianperrin
        last edited by

        @ianperrin Confirmed! Chart is not rotating anymore.
        However it might be worth to think about several rotating charts. Like for weekdays and a range of several months?

        How to troubleshoot modules
        MMM-soccer v2, MMM-AVStock

        I 1 Reply Last reply Reply Quote 0
        • I Offline
          ianperrin @lavolp3
          last edited by

          @lavolp3 said in MMM-Strava:

          @ianperrin … it might be worth to think about several rotating charts. Like for weekdays and a range of several months?

          Good idea, could you add it as an issue in the Github repository so I don’t forget it?

          "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
          • H Offline
            hattlegr @ianperrin
            last edited by

            @ianperrin I too am stuck on the authorization; I am not sure where to get a valid “web address” and “call back domain “ from to complete the API Application on the strava site To obtain my client ID and client secret numbers The local Host:8080/MMM-Strava/auto does bring up the same screen you posted, but the authorization process fails, I presume because I don’t have the correct client information.

            I lavolp3L 2 Replies Last reply Reply Quote 0
            • I Offline
              ianperrin @hattlegr
              last edited by

              @hattlegr thanks for testing and sorry to hear you’re having issues. Perhaps you can post your config and any logs from the mirror.

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

              H 1 Reply Last reply Reply Quote 0
              • H Offline
                hattlegr @ianperrin
                last edited by

                @ianperrin

                Here is my config file

                {
                			module: "MMM-Strava",
                			position:  "bottom_right",
                			config: {
                				client_id: "6054923"
                				// client_secret: "tokin"
                			}
                		},
                

                I got my client ID using the last series of numbers from the Strava URL after I log in.

                I am not sure how to get through the Strava API application. to get client secret code.

                Here is the error i get after running authorise from my localhost:8080 URL

                {"message":"Bad Request","errors":[{"resource":"Application","field":"client_id","code":"invalid"}]}
                
                1 Reply Last reply Reply Quote 0
                • lavolp3L Offline
                  lavolp3 Module Developer @hattlegr
                  last edited by

                  @hattlegr said in MMM-Strava:

                  I am not sure where to get a valid “web address” and “call back domain “ from to complete the API Application on the strava site To obtain my client ID and client secret numbers

                  On your personal Strava API website (strava.com/settings/api), you need to set a “callback domain” for your project. What did you set?

                  How to troubleshoot modules
                  MMM-soccer v2, MMM-AVStock

                  H 1 Reply Last reply Reply Quote 0
                  • H Offline
                    hattlegr @lavolp3
                    last edited by

                    @lavolp3 I am not sure how to setup a call back domain.

                    lavolp3L 1 Reply Last reply Reply Quote 0
                    • lavolp3L Offline
                      lavolp3 Module Developer @hattlegr
                      last edited by

                      @hattlegr You need to create an application in your strava account to use this module. Have you done that?

                      1. Go to www.strava.com/settings/api
                      2. Create an application. As far as I understand the only really important value is the callback domain. I GUESS (!!) this would need to be http://localhost OR the hostname (or IP) of your magicmirror, something like http://magicmirror
                      3. Then you get a client secret and access token, which you need for the further procedure.

                      How to troubleshoot modules
                      MMM-soccer v2, MMM-AVStock

                      I 1 Reply Last reply Reply Quote 0
                      • I Offline
                        ianperrin @lavolp3
                        last edited by ianperrin

                        @lavolp3 said in MMM-Strava:

                        @hattlegr You need to create an application in your strava account to use this module. Have you done that?

                        1. Go to www.strava.com/settings/api
                        2. Create an application. As far as I understand the only really important value is the callback domain. I GUESS (!!) this would need to be http://localhost OR the hostname (or IP) of your magicmirror, something like http://magicmirror
                        3. Then you get a client secret and access token, which you need for the further procedure.

                        The easiest way to authorise the module is

                        1. On the My API Application page update the application by entering localhost as the callback domain.

                        2. Once the Strava API application is updated, copy the client id and client secret from the same page, then use these to update the module configuration in the config.js file and restart the Magic Mirror.

                        3. Finally, on the Pi itself, browse to http://localhost:8080/MMM-Strava/auth/ and follow the steps.

                        If it helps, here are the settings I’ve been using to test the module:

                        Strava-API-Application-Settings.png

                        Strava-API-Application-Client-Details.png

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

                        H 1 Reply Last reply Reply Quote 0
                        • 1
                        • 2
                        • 5
                        • 6
                        • 7
                        • 8
                        • 9
                        • 13
                        • 14
                        • 7 / 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