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.

    GoogleFit - Kg's to lbs

    Scheduled Pinned Locked Moved Unsolved Troubleshooting
    4 Posts 3 Posters 966 Views 3 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.
    • F Offline
      Fulcrum1973
      last edited by

      Hi all,

      I hope this is an easy one but I have Googlefit up and working just fine, I just wanted to change the way it is displaying my weight to move from Kilograms to Pounds (well Stones and Pounds if possible). I am not sure where in the code to do this. Many thanks in advance.

      thedoorsfanaticT 1 Reply Last reply Reply Quote 0
      • thedoorsfanaticT Offline
        thedoorsfanatic @Fulcrum1973
        last edited by

        @Fulcrum1973
        Have you configured the units in your config.js?
        https://github.com/MichMich/MagicMirror#configuration

        My Smart Mirror YouTube playlist: https://www.youtube.com/playlist?list=PL9Iv_4Mvy6o2tnvdhNBstVWNefgUP9ELp

        1 Reply Last reply Reply Quote 0
        • F Offline
          Fulcrum1973
          last edited by

          Hi @thedoorsfanatic,

          I have them as ‘metric’ in the main config file. Which in the main I would like to keep, just want my weight to be in lbs.

          S 1 Reply Last reply Reply Quote 0
          • S Offline
            sonicgoose @Fulcrum1973
            last edited by

            @Fulcrum1973 In Terminal, edit MMM-GoogleFit.js and locate the line that starts with:

            if (weight) {
            

            Insert the following after that line:

             
            config.units = "imperial";
            
            

            So that’s a blank line, followed by the above code, followed by another blank line. Restart MM and voilà, pounds instead of kilograms.

            1 Reply Last reply Reply Quote 0
            • 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