• Recent
  • Tags
  • Unsolved
  • Solved
  • MagicMirror² Repository
  • Documentation
  • 3rd-Party-Modules
  • Donate
  • Discord
  • Register
  • Login
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 103.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.
  • A Offline
    aunrea
    last edited by Aug 19, 2020, 3:35 PM

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

    V G 2 Replies Last reply Sep 4, 2020, 6:12 PM Reply Quote 0
    • V Offline
      Vizulize Module Developer @aunrea
      last edited by Sep 4, 2020, 6:09 PM

      @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 Sep 4, 2020, 6:11 PM

        @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 Sep 4, 2020, 6:12 PM

          @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 Sep 4, 2020, 6:12 PM

            @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 Oct 14, 2020, 7:40 PM

              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 G 2 Replies Last reply Oct 15, 2020, 8:01 AM Reply Quote 0
              • V Offline
                Vizulize Module Developer @mkufner24
                last edited by Oct 15, 2020, 8:01 AM

                @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
                • J Offline
                  jonspraggins
                  last edited by Oct 19, 2020, 8:35 AM

                  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
                  • G Offline
                    goldyfruit Project Sponsor
                    last edited by Nov 14, 2020, 10:30 PM

                    @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 Nov 17, 2020, 1:07 AM Reply Quote 0
                    • G Offline
                      goldyfruit Project Sponsor @aunrea
                      last edited by goldyfruit Nov 14, 2020, 10:46 PM Nov 14, 2020, 10:39 PM

                      @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
                      • 1
                      • 2
                      • 3
                      • 4
                      • 5
                      • 6
                      • 9
                      • 10
                      • 4 / 10
                      • 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