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-GoogleFit

    Scheduled Pinned Locked Moved Health
    19 Posts 7 Posters 14.0k Views 8 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.
    • N Offline
      nitram
      last edited by

      Nice work. Do you know if it’d handle two instances - i.e. two google accounts? I can imagine some friendly competition in my house with this!

      1 Reply Last reply Reply Quote 1
      • A Offline
        amcolash
        last edited by

        I have not played around with multiple instances of a MM module, but I can take a look into it when I get some time this weekend. There are some assumptions that are made right now that prevent multiple instances from accessing different accounts. That being said, I am not sure how much work it would take to do but I am up for at least investigating this.

        1 Reply Last reply Reply Quote 0
        • N Offline
          nitram
          last edited by

          That’d be awesome! I hope it’s straightforward. Also, I’m using it currently on a pi zero W and had no issues with the authentication process. Cheers.

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

            @nitram, I made a github issue based off of your feedback - check for updates there :)

            https://github.com/amcolash/MMM-GoogleFit/issues/3

            1 Reply Last reply Reply Quote 0
            • N Offline
              nitram
              last edited by

              @amcolash Amazing!! Thanks so much. This all worked perfectly for me, with the exception that I also needed to rename the MMM-GoogleFit.js file in the second instance’s directory to MMM-GoogleFit2.js - nothing happened otherwise. I also took the opportunity to change the innerhtml content in that file to something more distinctive for each instance and now we can all see our steps. Super happy with this - even the wife thinks its good now!

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

                @nitram So glad to hear that things worked out smoothly - yeah forgot about renaming the file - sorry about that. Glad that you and your wife are liking this module! Cheers

                1 Reply Last reply Reply Quote 0
                • S Offline
                  StacheEnthusiast
                  last edited by StacheEnthusiast

                  I’m getting an auth error, “stats error”. I’ve followed the steps and MMM-GoogleFit shows up in my google apps with permissions. Any ideas?

                  Edit: Update, The issue has resolved without me doing anything different so I’m not quite sure what the issue was but the module is working great. Thank you for this!

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

                    @StacheEnthusiast: Made a github issue, I will respond in detail and help troubleshoot there.

                    https://github.com/amcolash/MMM-GoogleFit/issues/4

                    1 Reply Last reply Reply Quote 0
                    • T Offline
                      tismepaulo
                      last edited by tismepaulo

                      Thank you @amcolash I set this module up tonight. All working great, except when I edit chartWidth (to anything more than 360) to make it bigger, it cuts off part of the leftmost pie chart. It does this whether I’m using icons or not. I use it in bottom_center if that makes any difference. Any idea how to stop this happening? I’d like to have larger pies!

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

                        @tismepaulo: Please make a github issue so I can track this issue. Sorry for the late response, I just moved cross-country to Seattle.

                        1 Reply Last reply Reply Quote 0
                        • B Offline
                          banbutcher
                          last edited by

                          hi,
                          with the weights in Kgs… is it possible to have it to 1 decimal place?

                          Thank you

                          1 Reply Last reply Reply Quote 0
                          • MeidlmarkusM Offline
                            Meidlmarkus
                            last edited by

                            Hi,
                            open: /home/pi/MagicMirror/modules/MMM-GoogleFit/MMM-GoogleFit.js in a notepad.
                            Change line 112 from
                            total = total.toFixed(0);
                            to
                            total = total.toFixed(1);

                            Just tried it out, it works (I also like it ;-) )
                            But please note that any change in a module will be overwritten as soon as you do an update of the module.

                            Cheers
                            Markus

                            B 1 Reply Last reply Reply Quote 0
                            • B Offline
                              banbutcher @Meidlmarkus
                              last edited by banbutcher

                              @Meidlmarkus

                              Awesome… thanks I’ll try it out soon! 😊

                              … worked like a charm! :)

                              1 Reply Last reply Reply Quote 1
                              • B Offline
                                banbutcher
                                last edited by

                                another quick question… is it possible to have a graph of some sort weeky/monthly of weight?
                                i think i read on one of the new covid19 threads that this module has a graph function!?

                                thanks again

                                MeidlmarkusM 1 Reply Last reply Reply Quote 0
                                • MeidlmarkusM Offline
                                  Meidlmarkus @banbutcher
                                  last edited by

                                  @banbutcher cool that you got it to work :-)
                                  About weight graph: Well the GoogleFit module would have to be extended with this functionality, it would have to be coded (nothing that could be done with a quick fix, I’m afraid ;-) )

                                  B 1 Reply Last reply Reply Quote 0
                                  • B Offline
                                    banbutcher @Meidlmarkus
                                    last edited by

                                    @Meidlmarkus

                                    That’s what I thought, thanks for the reply!

                                    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 / 1
                                    • 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