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.0k 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 @zerodegree79
      last edited by ianperrin

      @zerodegree79

      You should avoid editing the module files and place your configuration in the config.js file - check the readme file for installation, update and configuration notes

      Once you’ve reverted your changes to the module files, pull the latest version of the module and make sure config.js is correctly configured.

      There is no need to add anything special to the config to include virtual activities as these will be rolled up into the ride and run totals in the chart like the table mode and your dashboard on the Strava website

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

      zerodegree79Z 1 Reply Last reply Reply Quote 0
      • zerodegree79Z Offline
        zerodegree79 @ianperrin
        last edited by

        @ianperrin thanks for your help, changed back and now it`s working fine. Just one Question left. Is there a way to “isolate” the virtual rides? To show them separately in the charts?

        1 Reply Last reply Reply Quote 0
        • zerodegree79Z Offline
          zerodegree79
          last edited by

          HEy @ianperrin, since Strava changed their API- Refreshing, i need to put in the Access Token manually every 6 hours. Can you change this in your module? Here is the API Handbook from Strava. I have no idea how this wors, so maybe you can fix it. https://developers.strava.com/docs/authentication/#Refresh expired

          Thanks in advance.

          C 1 Reply Last reply Reply Quote 0
          • C Offline
            ctatos @zerodegree79
            last edited by

            @zerodegree79 I temporarily solved the problem with an external python script found at https://github.com/hozn/stravalib . The script retrieves a newly generated access token every 4-5h and find/replaces it in the config.js file. I then have a crontab that recycles the Magic Mirror.

            There must be a better way, but I can’t complain for now…

            I zerodegree79Z 2 Replies Last reply Reply Quote 0
            • I Offline
              ianperrin @ctatos
              last edited by

              @ctatos could you send me a pm with details of the script and cron setup you are using?

              "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
              • zerodegree79Z Offline
                zerodegree79 @ctatos
                last edited by

                @ctatos said in MMM-Strava:

                @zerodegree79 I temporarily solved the problem with an external python script found at https://github.com/hozn/stravalib . The script retrieves a newly generated access token every 4-5h and find/replaces it in the config.js file. I then have a crontab that recycles the Magic Mirror.

                There must be a better way, but I can’t complain for now…

                That’s way over my head, but great effort. Maybe @ianperrin can implement this.

                V 1 Reply Last reply Reply Quote 0
                • V Offline
                  Val07300 @zerodegree79
                  last edited by

                  @zerodegree79 Any news about New Strava API integration ?

                  zerodegree79Z 1 Reply Last reply Reply Quote 0
                  • zerodegree79Z Offline
                    zerodegree79 @Val07300
                    last edited by

                    @val07300 no, waiting for @ianperrin and @ctatos giving a response

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

                      Not as yet I’m afraid.

                      Hoping to work on it in the coming weeks - work and other commitments permitting.

                      PRs welcome from those who might have the know how 😉

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

                      zerodegree79Z 1 Reply Last reply Reply Quote 0
                      • zerodegree79Z Offline
                        zerodegree79 @ianperrin
                        last edited by

                        @ianperrin said in MMM-Strava:

                        No as yet I’m afraid.

                        Hoping to work on it in the coming weeks - work and other commitments permitting.

                        PRs welcome from those who might have the know how 😉

                        No worries, take your time. Meanwhile i just update manually

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