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

Scheduled Pinned Locked Moved Troubleshooting
16 Posts 4 Posters 2.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.
  • L Offline
    lavolp3 Module Developer @karsten13
    last edited by lavolp3 Jun 26, 2020, 7:58 AM Jun 26, 2020, 7:57 AM

    @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
    • K Offline
      karsten13
      last edited by Jun 26, 2020, 8:02 AM

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

      L 1 Reply Last reply Jun 26, 2020, 8:32 AM Reply Quote 0
      • L Offline
        lavolp3 Module Developer @karsten13
        last edited by Jun 26, 2020, 8:32 AM

        @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
        • K Offline
          karsten13
          last edited by Jun 26, 2020, 7:35 PM

          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 Jun 26, 2020, 8:07 PM

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

            L 1 Reply Last reply Jun 26, 2020, 11:52 PM Reply Quote 0
            • K Offline
              karsten13
              last edited by Jun 26, 2020, 8:16 PM

              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 Jun 26, 2020, 8:23 PM

                You all are just wizards!!

                1 Reply Last reply Reply Quote 0
                • N Offline
                  nakulbende
                  last edited by Jun 26, 2020, 9:27 PM

                  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
                  • K Offline
                    karsten13
                    last edited by Jun 26, 2020, 9:37 PM

                    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 Jun 26, 2020, 11:09 PM

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

                      1 Reply Last reply Reply Quote 0
                      • 1
                      • 2
                      • 1 / 2
                      1 / 2
                      • First post
                        9/16
                        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