• 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 stopped updating

Scheduled Pinned Locked Moved Unsolved Troubleshooting
19 Posts 5 Posters 1.9k Views 5 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.
  • M Offline
    mumblebaj Module Developer @levon
    last edited by Aug 12, 2021, 11:30 AM

    @levon I think check if it is successfully hitting the API on Strava. Check https://www.strava.com/settings/api.

    c19513f0-dcd4-4f9d-ade5-4699fbe644a8-image.png

    Also check if the Authorization Callback Domain matches your MM IP.

    Check out my modules at: https://github.com/mumblebaj?tab=repositories

    L 1 Reply Last reply Aug 12, 2021, 6:22 PM Reply Quote 1
    • L Offline
      levon @mumblebaj
      last edited by Aug 12, 2021, 6:22 PM

      @mumblebaj Yes, it is doing that for sure, I had kept an eye on that.

      I think I finally tracked down the problem, however I don’t understand why it broke. The problem is with one of the options in the config.js file. I had used mode “chart” successfully since early June (ie for almost 2 months) as it also gave me stats on walks too, but for some reason the updates stopped happening with this mode (rather than the default “table” mode)

      a12a4857-dcfd-4639-a8a6-64f52bac54b8-image.png

      If I comment out the mode, or explicitly specify the default mode of “table”, I get the correct stats for runs, but it ignores the walk (as documented, it will only do run, swim, ride in “table” mode)

      3a5bc429-75c5-4674-94f3-4a5c23a7ab0d-image.png

      4af8ff8d-3288-4263-9002-bfabc4c16e41-image.png

      I think I will open an issue with this.

      I appreciate all of your help/suggestions. Perhaps the code author can shed some light on this.

      M 1 Reply Last reply Aug 12, 2021, 6:25 PM Reply Quote 0
      • M Offline
        mumblebaj Module Developer @levon
        last edited by mumblebaj Aug 12, 2021, 7:19 PM Aug 12, 2021, 6:25 PM

        @levon Awesome. Glad you found the issue. The code uses the npm module strava-v3. It looks like the method used does not return walking.

        Check out my modules at: https://github.com/mumblebaj?tab=repositories

        L 1 Reply Last reply Aug 12, 2021, 7:14 PM Reply Quote 1
        • L Offline
          levon @mumblebaj
          last edited by Aug 12, 2021, 7:14 PM

          @mumblebaj Thank again for your help and everyone else. I definitely learned more about the software and how everything is connected. I’m sure that will come in handy down the line.

          1 Reply Last reply Reply Quote 0
          • I Offline
            ianperrin
            last edited by Sep 8, 2021, 6:01 PM

            Hi all, sorry for the delayed response

            @levon looking at the screen shot of your stats from the python module, the total number of activities you have logged this year exceeds 200. Whilst the module will continue to work (making api calls and updating the tokens file) only the first 200 activities are summarised in the chart.

            There is an issue relating to this bug ion GitHub, but I’ve not had the time to delve deeper.

            To confirm, can you set the period to “recent” and confirm the latest activities are included in the chart?

            "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