MagicMirror Forum
    • Recent
    • Tags
    • Unsolved
    • Solved
    • MagicMirror² Repository
    • Documentation
    • 3rd-Party-Modules
    • Donate
    • Discord
    • Register
    • Login
    1. Home
    2. Tippon
    3. Posts
    A New Chapter for MagicMirror: The Community Takes the Lead
    Read the statement by Michael Teeuw here.
    Offline
    • Profile
    • Following 0
    • Followers 0
    • Topics 10
    • Posts 53
    • Groups 0

    Posts

    Recent Best Controversial
    • RE: How difficult would it be to change the data an existing module receives?

      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.

      posted in Development
      TipponT
      Tippon
    • RE: How difficult would it be to change the data an existing module receives?

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

      @Tippon you can clone (fork) the module and add on what you want…

      Sorry, I should have clarified - I know that I can fork the module, but I don’t have the skills or knowledge to keep up with any changes that might be made to the original. If there was a security update, for example, I wouldn’t know how to integrate that into my fork. Considering the dates of the last changes though, that might not be an issue in this case.

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

      there are two parts of the module… the browser/ui part MMM-Fitbit2.js
      and the helper, node_helper.js

      the MMM-Fitbit2.js cannot access hardware or files directly, so it has to call the helper

      so, you could add on access to the spreadsheet (csv)
      and send that data back as part of the response… the front end would never know

      one of my modules uses a csv

      in the node_helper
      (you have to npm install csvtojson in the module folder to be able to use it)

      const cvt = require("csvtojson");
      

      and then

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

      So, ignoring any possible updates for now, I could edit the node_helper.js and basically trick the rest of the module into using my chosen data instead? That sounds great, thanks :)

      I’ve found some apps that share data between Fitbit and Google Fit, so depending on how well they all work together, this might be a bit easier than I thought.

      I’ve just discovered a problem with the Fitbit data though. Until recently, MMM-Fitbit2 would pull a lot of my data and display it on my mirror. Today though it’s not displaying my calories in figure. Google has taken over Fitbit, and recently forced a change of login, from Fitbit’s old system to a Google login. I’m not sure if this problem started at the same time, or if there’s been a change in the API. I’m pottering around trying to figure it out, but it might take me a while to figure out what I’m doing, never mind what Fitbit / Google are doing >.<

      Thanks as always for your help :)

      posted in Development
      TipponT
      Tippon
    • How difficult would it be to change the data an existing module receives?

      I’m currently using the fantastic MMM-Fitbit2 module to display some of my fitness data. As I have a third party smart band though, Fitbit doesn’t accept all of my data. This then means that the module doesn’t have anything to pull for certain categories.

      How difficult would it be to tell the module to pull my steps and sleep from Google Fit, and my blood sugar readings from a spreadsheet? Would I be better off trying to create my own module so that I don’t break anything when MMM-Fitbit2 updates?

      I can’t do much in the way of programming, but I’m looking for a project to help me learn.

      posted in Development
      TipponT
      Tippon
    • RE: Where to find Pi 3B+ or Pi4

      I’m another one running on something other than a Pi.

      I’ve got a Xubuntu based media server, and it runs MM as well as the media centre software. I use an old Android tablet with a kiosk app to display the mirror around the house. The kiosk app lets the tablet load directly to a browser, set to the MM address :)

      posted in Hardware
      TipponT
      Tippon
    • RE: Permanent size for newsfeed box?

      @karsten13 said in Permanent size for newsfeed box?:

      .module.newsfeed {
      height: 200px;
      }

      That seems to be working perfectly, thank you :)

      posted in Troubleshooting
      TipponT
      Tippon
    • Permanent size for newsfeed box?

      Hi all :)

      I’ve got my mirror working pretty much exactly as I want it from the software side, so I thought I’d look at building one for my wife.

      I’ve set up the default newsfeed module, but noticed that it jumps. Whenever there’s a headline that spills onto the second line, the newsfeed module and anything directly above it get pushed up. I’ve got the newsfeed in the bottom bar, with the clock bottom center and weather bottom right, so all three modules move.

      Is there a way to fix the size of the newsfeed module so that it doesn’t have to expand when a longer headline is displayed?

      Some headlines take up the full two lines, so reducing the font size is not an option, unfortunately.

      posted in Troubleshooting
      TipponT
      Tippon
    • RE: MM@Android: Missing Modules - Kiosk Mode Browser Suggestions?

      @sdetweil said in MM@Android: Missing Modules - Kiosk Mode Browser Suggestions?:

      @ahoibrowse my guess is that Fully does support JavaScript es6 idioms. more and more modules are using them

      Hi both :)

      I don’t think that it’s a case of Fully not supporting JavaScript, as I’ve got an old tablet doing the same job using Fully Browser, and both the weather and calendar modules work perfectly.

      My original installation was running on a virtualised Pi, and I’ve just finished transferring it to an Xubuntu media PC (Ubuntu variant).

      posted in Troubleshooting
      TipponT
      Tippon
    • RE: Is cloning to a new OS possible?

      @sdetweil said in Is cloning to a new OS possible?:

      @tippon clone is ok, but. you will have to do npm install in all the places where there is a package.json file

      I had a feeling it would be something like that. At that point I may as well do a fresh installation and just copy the config.js over. No chance of missing a module’s dependencies then, or adding in a module that’s been commented out but not removed, for example.

      @bkeyport said in Is cloning to a new OS possible?:

      @tippon To speed reinstall - I have my config.js and custom.css symlinked to a common location outside the MagicMirror tree, and a bash script setup to clone and npm install every module I use, and reinstall the symlinks.

      easy peasy…

      My system backs that up nightly to a private github repository, and bam quick and dirty way to get my system back running when my pi crashes.

      That’s a good point, I didn’t think about using it for a backup. I’ve got Github set up, but I haven’t got into the habit of using it properly yet.

      A symlink would be really helpful for the MMM-Cryptocurrency module too. Someone’s made some mods to the MMM-Cryptocurrency.js to add functionality. It’s not merged yet, and that’s beyond me for now, so keeping the modified file outside of the folder would stop me from accidentally wiping it.

      I might try for a best of both worlds approach - fresh installations on the Xubuntu system, then set up some scripts.

      Thanks both :)

      posted in General Discussion
      TipponT
      Tippon
    • Is cloning to a new OS possible?

      This is more of a curiosity question than anything, but I was wondering how hard it would be to clone an MM install with dependencies to a new machine with a different OS.

      I’m trying out a few Linux distros, as I have a media server that’s currently running Windows 10. Windows is regularly updating, and the updates need more and more computing power. This obviously slows the server down for no benefit to me, so a switch seems to be in order.

      I have my existing MM installations running on my main PC through virtualisation, so every time I need to reboot or shut down, my mirrors get shut down too. Again, this obviously isn’t helpful.

      I’m thinking of switching to one of the Debian or Ubuntu variants (probably Xubuntu), and cloning my mirrors would be the easiest way to keep my existing setup.

      Has anyone done anything like this in the past, or have any thoughts on the process, or the Linux options etc?

      While help and advice would be welcome, I’ve put this thread in general discussion so that it can be used for a chat about the ideas, rather than focussing on how to do it.

      Let me know what you think :)

      posted in General Discussion
      TipponT
      Tippon
    • RE: Multiple instances

      @elmago said in Multiple instances:

      @tippon

      Hello

      I did like you and it works perfectly.

      Thank you so much.

      No problem, glad I could help :)

      posted in Tutorials
      TipponT
      Tippon
    • 1
    • 2
    • 3
    • 4
    • 5
    • 6
    • 2 / 6