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: Improve updatenotification module (to be module selective)

      @E3V3A But also means you lose the metadata stored in .git to manage (incl. update later) via .git without renaming the folder.

      Why not have updatenotification iterate over/skip modules on the blacklist? Something like changing this line in node_helper.js:

      if (defaultModules.indexOf(moduleName) < 0) {
      

      To the following?

      if (defaultModules.indexOf(moduleName) < 0 &&
      this.config.ignoreModules.indexOf(moduleName) < 0){
      

      This means if the module is either (1) in defaultModules or (2) in the (new) ignoreModules it gets skipped.

      Remember to also add ignoreModules: [] to defaults in updatenotification. You can then avoid altering the filesystem whatsoever.

      posted in Development
      N
      ninjabreadman
    • RE: Raspberry Pi 3's case and fan

      @Ismail Are there screw holes to mount on that cover under the Raspberry logo (holes)? There are plenty of videos to see how to connect the pins and secure the fan to the case.

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

      @bekirs Did you try using url("file:///home/pi/MagicMirror/fonts/Verdana.ttf")?

      posted in Custom CSS
      N
      ninjabreadman
    • RE: MMM-CalendarExt

      @abetterway I think you mean switch the origin branch of the MMM-CalendarExt repository to forRPI1.

      In this case, use git checkout forRPI1 within the ~/MagicMirror/modules/MMM-CalendarExt directory.

      posted in Productivity
      N
      ninjabreadman
    • RE: Displaying data from MySQL database

      @wolkenaj MMM-PIR-Sensor uses shell scripting in node_helper.js to turn the screen on and off with tvservice.

      posted in Development
      N
      ninjabreadman
    • RE: 3D Content

      @mirrX Follow your link, and click on Embed. They will give you the markup to create an iFrame.

      You can then integrate this with something like MMM-iframe or MMM-HTMLBox.

      You may however have to coax it into displaying VR; I note the iFrame markup provided by Sketchfab has a allowvr property.

      posted in Requests
      N
      ninjabreadman
    • RE: Todoist accesstoken

      @sizer Go here:

      1. Create an app (e.g. “My Private MagicMirror”) in the developer’s console. If you don’t have a website, use example.com.
      2. Then with your client ID and secret, construct an OAuth query (with whatever scope your app will need) and visit in a browser.
      3. It will then redirect you to your app’s website with a code parameter. (If using example.com, it will fail to reach the site; just look at the address bar and find the code parameter.)
      4. Use thecode parameter to exchange for an access token (e.g. using curl):
      $ curl "https://todoist.com/oauth/access_token" \
          -d "client_id=0123456789abcdef" \
          -d "client_secret=secret" \
          -d "code=abcdef" \
          -d "redirect_uri=https://example.com"
      
      posted in Troubleshooting
      N
      ninjabreadman
    • RE: How to autorestart MM once a day

      @MaxPower It stacks every 1-2 days? I don’t quite understand what that means.

      In any case, what command are you using to restart? Are you trying to restart MM (recommended) or the RPi? If you have pm2 installed and managing your MM process, I suggest using pm2 restart mm. Whatever commend you choose, run it in Terminal first to ensure it will do what you intend.

      There are lots of videos and walkthroughs available online on how to use crontab.

      I recommend you then add the following crontab task:

      * 4 * * * pm2 restart mm
      

      This will restart MM every day at 4am (when I assume you’re not using it) so that it’s ready in the morning.

      posted in Troubleshooting
      N
      ninjabreadman
    • RE: GIF update from URL with MMM-EyeCandy

      @Mykle1 Yep, just needs to be a ? before the first parameter. Anything after gets appended with an &, e.g. https://icons.wxug.com/data/weather-maps/radar/united-states/united-states-current-radar-animation.gif?seed=1521767776&otherseed=4846528&page=2.

      Making your code the following:

      ... // img creation, etc
      var getTimeStamp = new Date().getTime();
      img.src = "https://icons.wxug.com/data/weather-maps/radar/united-states/united-states-current-radar-animation.gif?seed=" + getTimeStamp;
      pic.appendChild(img);
      wrapper.appendChild(pic);
      
      posted in Troubleshooting
      N
      ninjabreadman
    • RE: GIF update from URL with MMM-EyeCandy

      @Mykle1 How did you seed the url with a timestamp? When I visit https://icons.wxug.com/data/weather-maps/radar/united-states/united-states-current-radar-animation.gif?1521767776, I get the image returned (not a 404).

      posted in Troubleshooting
      N
      ninjabreadman
    • 1
    • 2
    • 3
    • 4
    • 5
    • 6
    • 20
    • 21
    • 4 / 21