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

    Posts

    Recent Best Controversial
    • RE: GIF update from URL with MMM-EyeCandy

      @Mykle1 @JRWJR

      I think this should work; add the following at the bottom of the start function in MMM-EyeCandy.js:

        start: function () {
        
          ...
            
          // ADDED: Schedule update timer
          setInterval(function() {
          self.updateDom(self.config.fadeSpeed || 0); // use config.fadeSpeed or revert to zero
          }, this.config.updateInterval);
      
        }, // this was line 83
      
      posted in Troubleshooting
      N
      ninjabreadman
    • RE: access filesystem

      @MichaelTomTom @Leobaillard Is it possible fs is already defined (as a constant)? Are you getting any error messages in the logs?

      posted in Development
      N
      ninjabreadman
    • RE: change font of modules (local fonts)

      @bekirs My first question: Is Verdana actually located in ~/MagicMirror/fonts/Verdana.ttf? If so, you might try url("file:///home/pi/MagicMirror/fonts/Verdana.ttf"). When you run npm start dev in Terminal while in ~/MagicMirror, are there any console errors (in Terminal or Electron)?

      posted in Custom CSS
      N
      ninjabreadman
    • RE: worldclock - nobody made this, so I did.

      @Peter This should work:

      .worldclock {
        font-size: 73%; /* adjust value as needed */
      }
      
      posted in Productivity
      N
      ninjabreadman
    • RE: Schedule Module with XML/Feed source

      Hi @shakir, I suggest you switch to using a JSON (vs XML) response. You just need to add &format=json to your query URL, according to the API documentation from CTA. Then you can look at any of the transit modules for MM, most of which handle a JSON response. It might even be easier to modify one of those than MMM-WeeklySchedule. Personally, I did something similar with MMM-json-feed customizing the output to show what I wanted from the json feed for my nearest bus stop.

      posted in Requests
      N
      ninjabreadman
    • RE: Not reading RSS

      @goncalovsc Is that your full newsfeed.js file? That is definitely not the complete file. Suggest running git checkout ~/MagicMirror/modules/newsfeed.js in Terminal.

      Best practice is to not edit your module files (e.g. newsfeed.js). Instead, override the defaults with your own settings in config/config.js.

      posted in Troubleshooting
      N
      ninjabreadman
    • RE: change font of modules (local fonts)

      @bekirs @font-face is not a style rule, but declaration (“at-rule”). Here’s an explanation of how it works.

      So your code should instead be:

      @font-face {
        font-family: Verdana;
        font-style: normal;
        font-weight: 100;
        src:
          local("Verdana"),
          url("/home/pi/MagicMirror/fonts/Verdana.ttf") format("truetype");
      }
      
      .newsfeed {
        font-family: Verdana;
      }
      

      This avoids using the local version of the Verdana font. Why not use the local Verdana font (or install your desired alternative) and use the below instead?

      .newsfeed {
        font-family: Verdana;
      }
      
      posted in Custom CSS
      N
      ninjabreadman
    • RE: Not reading RSS

      @goncalovsc That was just to check that the MM could reach cmjornal.pt.

      Hmm, if it works with NYT, it may have a problem parsing your RSS feed. Start your MM with npm start dev to see errors in both Terminal and the Chrome/Electron JavaScript console.

      The RSS feed contains errors, but it still loads for me:

      0_1521165345095_Screen Shot 2018-03-15 at 9.54.56 PM.png

      posted in Troubleshooting
      N
      ninjabreadman
    • RE: MMM-CalendarExt

      @simzdk Seems @nn1mda is having the same problem here. @Sean is busy, but maybe we can convince him to have a look. As @modderhut suggests, best to open an issue on Github.

      posted in Productivity
      N
      ninjabreadman
    • RE: How much cpu/ram usage does mm use

      Hey @robmcc83,

      There’s not really a right answer; it will depend on the configuration of MM and what modules you have installed. Because the RPi runs both the server and client, either the front or back end can be processor or memory intensive.

      For reference, I have reasonable MM load on an RPi3B … in fact, low CPU usage but mid memory use (945K total, 304K used, 505K cache). I admit I’ve not even tried to optimize it and likely have more running than I need. But I’m not sure that I would try to also stream video or transfer large files as well.

      For that, I would look at more powerful RPi alternatives or scrounge up some outdated laptop hardware.

      posted in General Discussion
      N
      ninjabreadman
    • 1 / 1