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

    Scheduled Pinned Locked Moved Health
    fitbithealthfitnesshealthywaterfoodtrackingactivity tracker
    98 Posts 21 Posters 156.5k Views 19 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.
    • V Offline
      Vizulize Module Developer @Stoffbeuteluwe
      last edited by

      @Stoffbeuteluwe This should not be the case. What are the logs saying?

      1 Reply Last reply Reply Quote 0
      • V Offline
        Vizulize Module Developer @aunrea
        last edited by

        @aunrea This should work - I have 2 accounts on my MagicMirror and they have worked together for some time. What are you seeing?

        1 Reply Last reply Reply Quote 0
        • M Offline
          mkufner24
          last edited by

          Hi, this module is great! It works almost perfectly, the only exception being inaccurate sleep time. Mine is underreporting my sleep time. Any ideas?

          V goldyfruitG 2 Replies Last reply Reply Quote 0
          • V Offline
            Vizulize Module Developer @mkufner24
            last edited by

            @mkufner24 I have explained what I am doing to retrieve sleep data in an earlier post. Beyond that, I’m not sure!

            I’m glad to hear you’re enjoying the module though 😄

            1 Reply Last reply Reply Quote 1
            • jonspragginsJ Offline
              jonspraggins
              last edited by

              I have dockerized my MM (https://github.com/bastilimbach/docker-MagicMirror) and having trouble getting MMM-Fitbit2 to work properly.

              Some things I’ve attempted:

              • I cannot launch a web browser from my container; it doesn’t have one.
              • SSHing into the container to launch auth.sh will not launch a web browser to finish the setup
              • Copying the token from my old MM doesn’t seem to work.

              Suggestions?

              1 Reply Last reply Reply Quote 0
              • goldyfruitG Offline
                goldyfruit Project Sponsor
                last edited by

                @Vizulize It would be great it you could allow the issue creation on GitHub, this will be easier to contribute and raise issue. :)

                Build smart things with magic and love! | https://smartgic.io

                V 1 Reply Last reply Reply Quote 0
                • goldyfruitG Offline
                  goldyfruit Project Sponsor @aunrea
                  last edited by goldyfruit

                  @aunrea I have the same behavior with a second account, like if some cache was used.
                  My workaround was to clone the repository on my laptop (not on my RPi) and run the Python script from there and then copy/paste the tokens-XXXXX.json file to my RPi.

                  Build smart things with magic and love! | https://smartgic.io

                  1 Reply Last reply Reply Quote 1
                  • goldyfruitG Offline
                    goldyfruit Project Sponsor @mkufner24
                    last edited by

                    @mkufner24 Same, sleep time is inaccurate.

                    Build smart things with magic and love! | https://smartgic.io

                    V 1 Reply Last reply Reply Quote 0
                    • V Offline
                      Vizulize Module Developer @goldyfruit
                      last edited by

                      @goldyfruit said in MMM-Fitbit2:

                      @Vizulize It would be great it you could allow the issue creation on GitHub, this will be easier to contribute and raise issue. :)

                      Done!

                      1 Reply Last reply Reply Quote 0
                      • V Offline
                        Vizulize Module Developer @goldyfruit
                        last edited by

                        @goldyfruit said in MMM-Fitbit2:

                        @mkufner24 Same, sleep time is inaccurate.

                        Unfortunately, this is what is returned from the Fitbit API. If you can figure out how to produce the data you want from what is returned from the API, then I am happy to take a look!

                        1 Reply Last reply Reply Quote 0
                        • D Offline
                          davidgeo
                          last edited by

                          Is it possible to display weight in pounds instead of kg? If yes, how?

                          V 1 Reply Last reply Reply Quote 0
                          • V Offline
                            Vizulize Module Developer @davidgeo
                            last edited by Vizulize

                            @davidgeo
                            This is currently not exposed to the user via the config.json (that feature is tracked here).
                            However, you can change this option to “US” in your installed module directory.
                            For more information about how units are handled by the Fitbit API, check out the unit system information detailed here.

                            1 Reply Last reply Reply Quote 0
                            • TipponT Offline
                              Tippon
                              last edited by

                              Sorry for replying to an old topic, but I thought it was best to keep this in the same place.

                              I realised today that I’m having a problem with MMM-fitbit2. I fixed the issue in my other thread here yesterday:

                              https://forum.magicmirror.builders/topic/14879/mmm-fitbit2-pythonshell-is-not-a-constructor?_=1617917654075

                              but updated Magic Mirror shortly after, so I’m not sure if the problem existed before the update or not.

                              The module loads and seems to work, but I’m only getting values returned for the calories I’ve burned water drank, and my weight. My food eaten isn’t updating, even though it’s showing in my Fitbit dashboard. I don’t have a Fitbit device so I’m not sure if the other values are flled in on my dashboard.

                              Please forgive me if I'm slow to reply, I'm currently experiencing memory issues, and sometimes forget that I've asked a question >.<

                              V 1 Reply Last reply Reply Quote 0
                              • V Offline
                                Vizulize Module Developer @Tippon
                                last edited by

                                @tippon Hopefully this is fixed: https://github.com/m-roberts/MMM-Fitbit2/commit/e958665dcf63900d38f5405961a1a176d5ba2fcf

                                TipponT 1 Reply Last reply Reply Quote 0
                                • J Offline
                                  JohnGalt
                                  last edited by

                                  I would love to try this module, but at stuck at the starting block of creating an app on the Fitbit site… When I go to Settings -> Applications on the FitBit site there is a place where it would list the authorized applications, but does not allow creation of a new application. I tried in Firefox and Chrome, but get the same output. My web searching seems to indicate most of the results are adding an app to the actual FitBit wearable, not to the account. This is an older ‘Alta’ model, and it has no fancy bells and whistles - just basic tracking which DOES show up on the FitBit web site. I feel like I am missing something very basic, but am just not seeing it.

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

                                    @johngalt u are going here, https://dev.fitbit.com/apps/new, right??

                                    have to go to the DEV site not normal fitbit.com

                                    Sam

                                    How to add modules

                                    learning how to use browser developers window for css changes

                                    J 1 Reply Last reply Reply Quote 0
                                    • J Offline
                                      JohnGalt @sdetweil
                                      last edited by

                                      @sdetweil: THANKS, I knew it was something simple… I guess i read the instructions [“Go to Fitbit …”] and just went to Fitbit, using my usual approach of launching it via my password manager. When I instead went to the dev site, it was straightforward to create an app. Thanks again!

                                      1 Reply Last reply Reply Quote 0
                                      • TipponT Offline
                                        Tippon @Vizulize
                                        last edited by Tippon

                                        @vizulize said in MMM-Fitbit2:

                                        @tippon Hopefully this is fixed: https://github.com/m-roberts/MMM-Fitbit2/commit/e958665dcf63900d38f5405961a1a176d5ba2fcf

                                        Thank you :)

                                        It seems to have solved the Python issue, but I’m still not seeing the calories I’ve eaten.

                                        I’m really sorry. Please ignore me, I’m an idiot! :confounded_face:

                                        I just noticed on the log that there was no figure set for my calorie goal, so I went through my profile on the Fitbit site, and the calorie goal wasn’t listed there either. I set it up sometime last year when I originally started trying to diet, but for some reason, the goal has gone and I have no idea why. It still shows up on my phone as I’ve got everything linked to everything else, so it must be populated from another app.

                                        I feel like a muppet, but on the bright side, I’ve probably just burned of a few hundred calories just from embarrassment :beaming_face_with_smiling_eyes:

                                        Please forgive me if I'm slow to reply, I'm currently experiencing memory issues, and sometimes forget that I've asked a question >.<

                                        1 Reply Last reply Reply Quote 0
                                        • TipponT Offline
                                          Tippon
                                          last edited by

                                          Sorry to be a pain, but my calories in is wrong again. I set a goal of 1,400 calories per day after my last post, and entered 51 calories of snacks to test it. It worked perfectly, and as well as showing my calories in on my mirror, the browser log showed the correct details being fetched (caloriesIn (data/goal): 51/1400). At some point today the goal has disappeared. It’s now showing caloriesIn (data/goal): 0/0.

                                          I’ve opened the Fitbit dashboard and set up a food plan, in case that was the issue, but it hasn’t made a difference. My food has been logged and is showing correctly in my Fitbit dashboard, but it’s not transferring to the module.

                                          I adjusted my weight and added some water, and both showed up immediately, so the module is obviously getting data, but I can’t figure out why it’s not getting my calories in.

                                          Thanks for looking :)

                                          Please forgive me if I'm slow to reply, I'm currently experiencing memory issues, and sometimes forget that I've asked a question >.<

                                          1 Reply Last reply Reply Quote 0
                                          • TipponT Offline
                                            Tippon
                                            last edited by

                                            Sorry, I can’t edit my last post.

                                            It’s past midnight, and my calorie in goal is showing again. It’s back to zero and showing the full amount of calories available for the 14th. I’ll check tomorrow and see if it changes or disappears, and see if it changes once I add my breakfast or dinner.

                                            Please forgive me if I'm slow to reply, I'm currently experiencing memory issues, and sometimes forget that I've asked a question >.<

                                            TipponT 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
                                            • 3 / 5
                                            • 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