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 3.8k 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

      @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 Online
        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 Online
            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 Online
                  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
                        • 1
                        • 2
                        • 2 / 2
                        • 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