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 257.5k 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.
    • M Offline
      mike2323
      last edited by

      When using table or chart the activities config seems to be ignored, and just shows ride, run and swim. However, if I used the radial option, then it respects the config and just shows the rides. Is there another setting I’m missing to just shows rides in chart view?

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

        @mike2323 the activities option should work for the table and chart modes. Could you check you are using the latest version and post your config for the module (removing or masking the client id and secret)?

        Here’s a working example

                {
                    module: "MMM-Strava",
                    position: "top_right",
                    header: "Strava",
                    config: {
                        client_id: "000000",
                        client_secret: "z793xxxxxxxxxxxxxxxxxxxx498d2",
                        mode: "chart",
                        activities: ["ride"],
                        period: "ytd"
                    }
                }
        

        If you want two activities, you can enter them as follows: activities: ["ride", "run"]

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

        A M 2 Replies Last reply Reply Quote 0
        • A Offline
          antsve @ianperrin
          last edited by

          @ianperrin Have been trying to set up multiple instances of the module but which ever user is authenticated last will be the one whos stats are shown in all (both) the instances. Tried autheniticating, resstarting container and authenticating other module but with no sucess. Do you know where I’m going wrong or could you aid me in some direction?

          ps. both modules use the same client_id and client_secret, but that shuld not matter right?

          GREAT module by the way !

          A 1 Reply Last reply Reply Quote 0
          • A Offline
            antsve @antsve
            last edited by

            here’s my config:

            {
                module: "MMM-Strava",
                    position: "bottom_right",
                    header: "Anton",
                    config: {
                        client_id: "23___",
                        client_secret: "a9ea3d50442______________72f4ca93a792",
                        activities: ["run", "ride"],
                        mode: "chart",
                        chartType: "bar",
                        period: 'ytd',
                        updateInterval: 5000000,
                    },
            },
            {
                module: "MMM-Strava",
                    position: "bottom_right",
                    header: "Sofia",
                    config: {
                        client_id: "23___",
                        client_secret: "a9ea3d50442______________72f4ca93a792",
                        activities: ["run", "ride"],
                        mode: "chart",
                        chartType: "bar",
                        period: 'ytd',
                        updateInterval: 5000000,
                    },
            },
            
            1 Reply Last reply Reply Quote 0
            • M Offline
              mike2323 @ianperrin
              last edited by

              @ianperrin Sorry for the delayed reply, I’ve just got around to looking at my Mirror config again. Have updated to the latest version and here is the config for MMM-Strava:

               {  
              			  module: "MMM-Strava",
              			   position: "bottom_left",
              			   header: "Michael's Garage Rides",
              			   config: {
              			        client_id: "00000",
              			        client_secret: "cxxxxxxxxxxxxxxxxxxxxxxxxxb",
              				mode: "chart",
              				activites: ["ride"],
              				period: "ytd",
              					   
              }
              		       },
               {
              			   module: "MMM-Strava",
              			   position: "bottom_right",
              			   header: "Stephen's Garage Rides",
              			   config: {
              			       client_id: "00000",
                          			client_secret: "cxxxxxxxxxxxxxxxxxxxxxxxxxb",			
              				mode: "chart",
              				activites: "ride",
              				period: "ytd",
              }
              		       },
              

              And here is a photo of how it appears on the Mirror (showing ride, run and swim instead of just ride).
              alt text

              Thanks for the help (and the great module)

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

                Hey @ianperrin.
                First of all thx for you wonderful module. I have one question - I have added “rowing” as activity which works fine - excepted the symbol for rowing is not working. Is it possible to reference that symbol more or less easy in the sourcecode ?
                Thx in advance
                Jan

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

                  @jan support for additional activities in chart mode is in the works, keep an eye out for updates ;)

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

                  1 Reply Last reply Reply Quote 2
                  • I Offline
                    ianperrin @mike2323
                    last edited by

                    @mike2323 said in MMM-Strava:

                    If this is still causing problems, can you try making sure the activities option is specified as an array, even if only one activity type is required? It looks like you haven’t done this in the options for the second module definition

                    In other words:

                    activites: ["ride"],
                    

                    "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
                    • J Offline
                      Jan
                      last edited by

                      @ianperrin thx so much!!! Works fine, looks amazing!

                      1 Reply Last reply Reply Quote 1
                      • joela85J Offline
                        joela85
                        last edited by

                        My Strava module needs to be re-authorised every few days or at least once a week. I’m not sure what is causing this. Has anyone else had a similar issue?

                        1 Reply Last reply Reply Quote 0
                        • foxF Offline
                          fox
                          last edited by

                          Can we aggregate virtual ride together with ride for the mirror?

                          Issues With MMM-WatchDog known?

                          https://forum.magicmirror.builders/post/29827

                          Useful for PIR-Sensor: https://forum.magicmirror.builders/post/21299

                          1 Reply Last reply Reply Quote 0
                          • K Offline
                            kevmang
                            last edited by

                            Great app @ianperrin. Looks slick on the mirror too!

                            M 1 Reply Last reply Reply Quote 1
                            • M Offline
                              MisterT @kevmang
                              last edited by

                              @ianperrin i use Strava module for my mirror but recently Strava update api and now I have the message : 429 limits exceed. I changed reloadinterval to 15601000 and updateinterval to 60*1000 but still the same message.
                              Have you an idea ?
                              Thx for next answer

                              S 1 Reply Last reply Reply Quote 0
                              • S Offline
                                sdetweil @MisterT
                                last edited by sdetweil

                                @MisterT 60*1000 is every minute,
                                1440 times a day

                                their limit us 100/15 minutes and 1000/ day
                                Screenshot_20240320_130602_Chrome.jpg

                                Sam

                                How to add modules

                                learning how to use browser developers window for css changes

                                1 Reply Last reply Reply Quote 0

                                Hello! It looks like you're interested in this conversation, but you don't have an account yet.

                                Getting fed up of having to scroll through the same posts each visit? When you register for an account, you'll always come back to exactly where you were before, and choose to be notified of new replies (either via email, or push notification). You'll also be able to save bookmarks and upvote posts to show your appreciation to other community members.

                                With your input, this post could be even better 💗

                                Register Login
                                • 1
                                • 2
                                • 3
                                • 4
                                • 5
                                • 6
                                • 7
                                • 7 / 7
                                • 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