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 12.3k 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.
    • 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
                • 1
                • 2
                • 1 / 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