• 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.

How difficult would it be to change the data an existing module receives?

Scheduled Pinned Locked Moved Development
13 Posts 2 Posters 2.2k Views 2 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.
  • T Offline
    Tippon @sdetweil
    last edited by Jan 8, 2024, 2:54 PM

    I found a post by @greenza21 on Reddit that suggested Health Sync for Android

    https://play.google.com/store/apps/details?id=nl.appyhapps.healthsync

    I’ve tested Health Sync over the last few days, and it’s successfully transferred my Steps, Activities, Sleep, and Weight data from Google Fit in to Fitbit. It can also transfer Nutrition and Water Intake directly, but I already input those directly into Fitbit. It can export some other data too, but Fitbit doesn’t accept those inputs.

    I’ve got everything I want other than my blood sugar / glucose readings showing up in the MMM-Fitbit2 module just from using Health Sync, so when I get a bit more time over the next few days, I’m going to try to replace the floors entry with my blood glucose data, then maybe look at exporting my heart rate or oxygen levels from my smartwatch, depending on whether they can be pulled from the watch app. Not everything gets pulled to Google Fit, so they may be a dead end.

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

    S 1 Reply Last reply Jan 8, 2024, 2:56 PM Reply Quote 0
    • S Away
      sdetweil @Tippon
      last edited by Jan 8, 2024, 2:56 PM

      @Tippon so, summary

      you use the app to push data to fitbit,

      where the existing Fitbit2 module can get the data from the existing fitbit api…

      Sam

      How to add modules

      learning how to use browser developers window for css changes

      T 1 Reply Last reply Jan 8, 2024, 3:12 PM Reply Quote 0
      • T Offline
        Tippon @sdetweil
        last edited by Jan 8, 2024, 3:12 PM

        @sdetweil That’s right, yes :)

        It’s ideal for me, and I have suspected ADHD, and don’t always remember to do things. I can just put the shortcut to this app next to my other health apps, and it acts as a reminder.

        I’ve decided to remove one of the MMM-fitbit2 default categories and replace it with a modified copy of the calorie goal category instead. The default shows the calories remaining until your calorie goal, but I also want to see how many calories I’ve consumed. I just had a quick play and it seems easy enough, but I need to make sure that it doesn’t break the existing categories too.

        Time for a break though, my kid’s about to get home from school, so any chance of peace and quiet is gone for the next few hours :D

        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
        • T Offline
          Tippon
          last edited by Jan 8, 2024, 10:09 PM

          Just to double check before I break anything, if I forked the repo and replaced the installed version of MMM-Fitbit2 with my own, would I need to change anything in my config.js? I’m assuming that if I kept the same repo name it would just work, but I want to make sure.

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

          S 1 Reply Last reply Jan 8, 2024, 10:34 PM Reply Quote 0
          • S Away
            sdetweil @Tippon
            last edited by sdetweil Jan 8, 2024, 10:59 PM Jan 8, 2024, 10:34 PM

            @Tippon no changes to config unless you added something

            Sam

            How to add modules

            learning how to use browser developers window for css changes

            T 1 Reply Last reply Jan 8, 2024, 10:47 PM Reply Quote 1
            • T Offline
              Tippon @sdetweil
              last edited by Jan 8, 2024, 10:47 PM

              @sdetweil Brilliant, thank you :)

              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
              • T Offline
                Tippon @sdetweil
                last edited by Jan 17, 2024, 2:14 AM

                @sdetweil said in How difficult would it be to change the data an existing module receives?:

                and then

                                               cvt().fromFile(payload.tmpfile) // input xls  // changed to tmpfile
                     				.subscribe((jsonObj, index) => { 
                                                       // handle each row
                                                   })
                

                Sorry, I forgot to ask, where does this go? Does it go into the node_helper.js with the other line?

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

                S 1 Reply Last reply Jan 17, 2024, 4:11 AM Reply Quote 0
                • S Away
                  sdetweil @Tippon
                  last edited by Jan 17, 2024, 4:11 AM

                  @Tippon it goes in the node_helper.

                  this is one way to process the csv file

                  Sam

                  How to add modules

                  learning how to use browser developers window for css changes

                  T 1 Reply Last reply Jan 17, 2024, 11:54 PM Reply Quote 1
                  • T Offline
                    Tippon @sdetweil
                    last edited by Jan 17, 2024, 11:54 PM

                    @sdetweil Thank you :)

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