• 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

Scheduled Pinned Locked Moved Health
activity trackerhealthstrava
138 Posts 34 Posters 175.8k 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 @MisterT
    last edited by ianperrin Nov 4, 2019, 9:41 PM Nov 4, 2019, 3:43 PM

    @MisterT

    When creating your Strava API Application in Step 2, the key value is the Authorisation Callback Domain. This needs to the IP address or domain name you use to access the MagicMirror otherwise subsequent steps will fail. So in your case it looks like you should use 192.128.1.99

    Once the API Application is created, add the module to your config.js file with the client_id and client_secret then restart the mirror.

    The module should then state Client id unauthorised and provide a link to the authorisation process. At which point you should be able to follow step 5

    Here’s two screenshots which might help:
    Strava API Settings

    Strava API id and secret

    "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
    • M Offline
      MisterT
      last edited by Nov 5, 2019, 8:02 PM

      ok thanks ianperrin for your help
      Step 2 is ok because on magic mirror, i have the link on magic mirror : client unauthorized see /MMM-Strava/auth/

      but now in step 5, i make:
      in webpage, and magic mirror starting i put
      http://192.128.1.99:8080/MMM-Strava/Oauth/
      but nothing happen. The webpage says:
      host unreachable
      ERR_CONNECTION_REFUSED

      have you an idea?

      I 1 Reply Last reply Nov 5, 2019, 9:48 PM Reply Quote 0
      • I Offline
        ianperrin @MisterT
        last edited by ianperrin Nov 5, 2019, 9:51 PM Nov 5, 2019, 9:48 PM

        @MisterT is it possible you’re typing in the wrong url. Try using
        http://192.128.1.99:8080/MMM-Strava/auth/ or simply clicking the link displayed by the module on the mirror.

        If that fails, are you able to access your mirror via http://192.128.1.99:8080/ ?

        Finally, can you make sure you ran npm install --production in step 1 and restarted the mirror?

        "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
        • M Offline
          MisterT
          last edited by MisterT Nov 8, 2019, 12:48 PM Nov 8, 2019, 11:25 AM

          hI @ianperrin
          It Works !!!
          Nice explanations.
          My mistake is when i launched a webpage to write the url i stoped the MM by Ctrl+Q. Now with MM start and a webpage opened. Everything is alright

          Thanks for your help

          1 Reply Last reply Reply Quote 1
          • M Offline
            MisterT
            last edited by Nov 14, 2019, 11:14 AM

            hI @ianperrin
            I have another problem with MMM-Strava.
            I use it with MMM-Pages and MMM-Pages indicator. When i place the module in the config.js MMM-Pages settings, the Rotation of MMM-Pages doesn’t work and i have a error on Magic mirror when i press CTRL+SHIFT+i.
            See Thread below for mox explanations

            MMM-Pages no rotate

            Have you an idea?

            I 1 Reply Last reply Nov 17, 2019, 6:22 PM Reply Quote 0
            • I Offline
              ianperrin @MisterT
              last edited by Nov 17, 2019, 6:22 PM

              @MisterT thanks for the report.

              I don’t have any experience with MMM-Pages so will have to install it and take a look if I experience the same issues.

              Have you any idea what might be causing it?

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

              M 1 Reply Last reply Nov 18, 2019, 10:29 AM Reply Quote 0
              • I Offline
                ianperrin
                last edited by Nov 17, 2019, 11:32 PM

                An updated BETA version of MMM-Strava is available which includes a chartType option to toggle between classic bar chart and a new radial histogram

                Below is a sample config and screenshot - note the histogram will display in grayscale, colours can be achieved using custom.css

                {
                	module: "MMM-Strava",
                	header: 'Strava Radial Chart',
                	position: "top_right",
                	config: {
                		client_id: "xxxxx",
                		client_secret: "xxxxx",
                		mode: "chart",
                		chartType: "radial",
                		period: "ytd"
                	}
                },
                

                example-chart-radial.png

                Please report any comments/issues here, or on github

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

                W 1 Reply Last reply May 29, 2020, 4:36 PM Reply Quote 1
                • M Offline
                  MisterT @ianperrin
                  last edited by MisterT Nov 18, 2019, 10:30 AM Nov 18, 2019, 10:29 AM

                  @ianperrin thx for your reply, I’m the noob in .js but i tried to understand the problem and the report is about “toLowerCase”. In MMM-Strava.js, if i modify the three config lines witch contain the synthax “toLowercase”, the result on Magic Mirror is a rotation of MMM-Pages but a message “Undefined” for MMM-Strava

                      this.config.mode = this.config.mode.toLowerCase();
                      this.config.period = this.config.period.toLowerCase();
                      this.config.chartType = this.config.chartType.toLowerCase();
                  

                  hope these light explanations can help you :face_screaming_in_fear:

                  I 1 Reply Last reply Nov 18, 2019, 2:01 PM Reply Quote 0
                  • I Offline
                    ianperrin @MisterT
                    last edited by ianperrin Nov 18, 2019, 9:56 PM Nov 18, 2019, 2:01 PM

                    @MisterT can you post the modified versions of these lines which enabled MMM-pages to rotate, but caused the undefined error for MMM-Strava?

                    I’m also curious about the error you posted in the other thread as it seems to refer to a style sheet included by another module…

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

                    M 1 Reply Last reply Nov 19, 2019, 6:17 PM Reply Quote 0
                    • M Offline
                      MisterT @ianperrin
                      last edited by Nov 19, 2019, 6:17 PM

                      @ianperrin i don’t know what i write and the meaning but if i modified these 2 lines (i don’t have the third line), i have MM rotation but undefined on MMM-Strava

                         this.config.mode = this.config.mode.toLowerCase().mode;
                        this.config.period = this.config.period.toLowerCase().period;
                      

                      The other error in wallberry module is a css error but i don’t think that it’s the problem of rotation because MMM-pages works with this error

                      I 1 Reply Last reply Nov 19, 2019, 8:06 PM Reply Quote 0
                      • 1
                      • 2
                      • 7
                      • 8
                      • 9
                      • 10
                      • 11
                      • 12
                      • 13
                      • 14
                      • 9 / 14
                      9 / 14
                      • First post
                        90/138
                        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