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 131.0k 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.
    • 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
                    • TipponT Offline
                      Tippon @Tippon
                      last edited by

                      Seems to be working properly. Apparently Fitbit doesn’t like it when you set your own calorie goals.

                      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
                      • J Offline
                        JJW
                        last edited by

                        ./Init.sh ISSUE
                        I’m new to modules etc, so sorry if this is a dumb issue. When I run ./init.sh in the terminal I get the error message
                        "
                        npm ERR! must provide string spec

                        npm ERR! A complete log of this run can be found in:
                        npm ERR! /home/pi/.npm/_logs/2021-06-05T13_55_01_431Z-debug.log
                        "
                        The debug log
                        "
                        0 verbose cli [ ‘/usr/bin/node’, ‘/usr/local/bin/npm’, ‘install’ ]
                        1 info using npm@7.16.0
                        2 info using node@v10.23.1
                        3 timing npm:load:whichnode Completed in 8ms
                        4 timing config:load:defaults Completed in 11ms
                        5 timing config:load:file:/usr/local/lib/node_modules/npm/npmrc Completed in 11ms
                        6 timing config:load:builtin Completed in 13ms
                        7 timing config:load:cli Completed in 13ms
                        8 timing config:load:env Completed in 2ms
                        9 timing config:load:file:/home/pi/MagicMirror/modules/MMM-Fitbit2/.npmrc Completed in 2ms
                        10 timing config:load:project Completed in 6ms
                        11 timing config:load:file:/home/pi/.npmrc Completed in 1ms
                        12 timing config:load:user Completed in 1ms
                        13 timing config:load:file:/etc/npmrc Completed in 0ms
                        14 timing config:load:global Completed in 1ms
                        15 timing config:load:validate Completed in 2ms
                        16 timing config:load:credentials Completed in 9ms
                        17 timing config:load:setEnvs Completed in 7ms
                        18 timing config:load Completed in 66ms
                        19 timing npm:load:configload Completed in 67ms
                        20 timing npm:load:setTitle Completed in 2ms
                        21 timing npm:load:setupLog Completed in 12ms
                        22 timing npm:load:cleanupLog Completed in 17ms
                        23 timing npm:load:configScope Completed in 0ms
                        24 timing npm:load:projectScope Completed in 2ms
                        25 timing npm:load Completed in 113ms
                        26 timing config:load:flatten Completed in 18ms
                        27 timing arborist:ctor Completed in 5ms
                        28 timing idealTree Completed in 35ms
                        29 timing command:install Completed in 146ms
                        30 verbose stack TypeError: must provide string spec
                        30 verbose stack at new Edge (/usr/local/lib/node_modules/npm/node_modules/@npmcli/arborist/lib/edge.js:48:13)
                        30 verbose stack at Node.[_loadDepType] (/usr/local/lib/node_modules/npm/node_modules/@npmcli/arborist/lib/node.js:781:9)
                        30 verbose stack at Node.[Arborist.Node._loadDeps] (/usr/local/lib/node_modules/npm/node_modules/@npmcli/arborist/lib/node.js:765:23)
                        30 verbose stack at new Node (/usr/local/lib/node_modules/npm/node_modules/@npmcli/arborist/lib/node.js:232:20)
                        30 verbose stack at Arborist.[rootNodeFromPackage] (/usr/local/lib/node_modules/npm/node_modules/@npmcli/arborist/lib/arborist/build-ideal-tree.js:365:18)
                        31 verbose cwd /home/pi/MagicMirror/modules/MMM-Fitbit2
                        32 verbose Linux 5.10.11-v7+
                        33 verbose argv “/usr/bin/node” “/usr/local/bin/npm” “install”
                        34 verbose node v10.23.1
                        35 verbose npm v7.16.0
                        36 error must provide string spec
                        37 verbose exit 1
                        "
                        Any help with the issue would be greatly appreciated thank you.

                        V 1 Reply Last reply Reply Quote 0
                        • 1
                        • 2
                        • 6
                        • 7
                        • 8
                        • 9
                        • 10
                        • 9 / 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