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.2k 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 @Arno-Strasbourg
      last edited by

      @Arno-Strasbourg
      Seems like it’s possible to get a low-resolution status of device battery levels from the Fitbit API.
      It also seems as though the Python library supports this endpoint.

      However, because it returns a list of devices, targeting the right one may prove to be a little more complicated.
      Not much good if the battery level relates to a second tracker that you aren’t actually wearing!
      I could possibly do it based on the device with "type": "TRACKER" that has the most recent "lastSyncTime", but I will need to think about it.

      Arno-StrasbourgA 1 Reply Last reply Reply Quote 0
      • Arno-StrasbourgA Offline
        Arno-Strasbourg @Vizulize
        last edited by

        @Vizulize said in MMM-Fitbit2:

        @Arno-Strasbourg
        Seems like it’s possible to get a low-resolution status of device battery levels from the Fitbit API.
        It also seems as though the Python library supports this endpoint.
        However, because it returns a list of devices, targeting the right one may prove to be a little more complicated.
        Not much good if the battery level relates to a second tracker that you aren’t actually wearing!
        I could possibly do it based on the device with “type”: “TRACKER” that has the most recent “lastSyncTime”, but I will need to think about it.

        It would be very nice. Thank you

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

          I think this module is great! It works well and looks great.
          Is there a way to set it to imperial instead of metric measurements?

          A V 2 Replies Last reply Reply Quote 0
          • A Offline
            aunrea @aunrea
            last edited by

            I have also noticed that the sleep time is inaccurate. It currently says 08:04, but the Fitbit website says 07:10. I am not sure why it is adding 56mins to my sleep time.

            V 1 Reply Last reply Reply Quote 0
            • StoffbeuteluweS Offline
              Stoffbeuteluwe Project Sponsor
              last edited by

              My question is…after updating MM
              the module is not working.
              I must do the (auth.sh) again after every MM upgrade.
              Is that the same on your Mirrors??

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

                Is there a way to use more than 1 Fitbit account? I tried but the second one would not authorize.

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

                  @aunrea For now, to get Imperial measurements, remove this line:
                  https://github.com/m-roberts/MMM-Fitbit2/blob/master/python/get_data.py#L96

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

                    @aunrea The module is returning the sleep data from the web API directly, which can be found here: https://dev.fitbit.com/build/reference/web-api/sleep/

                    You can see in the code here that the result that is returned is “totalMinutesAsleep”:
                    https://github.com/m-roberts/MMM-Fitbit2/blob/master/python/get_data.py#L194

                    Beyond that, I am not sure why it is adding time to your records. Apologies!

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

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