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 only shows achievements, nothing else?

    Scheduled Pinned Locked Moved Troubleshooting
    16 Posts 4 Posters 5.0k Views 4 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.
    • lavolp3L Offline
      lavolp3 Module Developer @karsten13
      last edited by lavolp3

      @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.

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

      1 Reply Last reply Reply Quote 0
      • karsten13K Offline
        karsten13
        last edited by

        did already a PR for this for MMM-Strava, but still not merged: https://github.com/ianperrin/MMM-Strava/pull/38

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

          @karsten13 Great contribution!
          I might need to “borrow” some of that for my module :-)

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

          1 Reply Last reply Reply Quote 0
          • karsten13K Offline
            karsten13
            last edited by

            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 …

            1 Reply Last reply Reply Quote 0
            • N Offline
              nakulbende
              last edited by

              @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?

              lavolp3L 1 Reply Last reply Reply Quote 0
              • karsten13K Offline
                karsten13
                last edited by

                you have to use my fork of MMM-Strava.
                First goto your modules folder and remove the current MMM-Strava subfolder (or rename it).
                Then in your modules folder execute git clone -b stats_incl_private_acts https://github.com/khassel/MMM-Strava.git.
                You can use your current config in your config.js and add showprivatestats: true to use this new feature.

                1 Reply Last reply Reply Quote 0
                • N Offline
                  nakulbende
                  last edited by

                  You all are just wizards!!

                  1 Reply Last reply Reply Quote 0
                  • N Offline
                    nakulbende
                    last edited by

                    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.

                    1 Reply Last reply Reply Quote 0
                    • karsten13K Offline
                      karsten13
                      last edited by

                      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 …

                      1 Reply Last reply Reply Quote 0
                      • N Offline
                        nakulbende
                        last edited by

                        Yeah that did it! Thanks - again, wizardry appreciated!

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

                          @nakulbende the worst thing is that they have removed some functions in the api even for paid subscriptions. Club activities endpoint unusable. Current segment leaderboard entries not available to anyone. It’s a mess.

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

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

                            Hi all, slightly late to the party, but to add to the comments above…

                            This module started out using the Get Athlete Stats endpoint in the Strava api to generate the table. This continues to be the case today, but as noted above, this api does not include private activities.

                            In chart mode the module uses the List Athlete Activities. Providing access to private activities is granted when authorising the module, these activities will be included.

                            I’m considering removing the use of the Get Athlete Stats endpoint and aggregating the data from the List Athlete Activities endpoint within the module. This would resolve this problem and allow more activity types to be supported.

                            In the meantime, the options for displaying private activities are to use chart mode (and grant access during authorisation) or use are to use the forked module.

                            "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

                            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
                            • 1 / 1
                            • 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