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: Touch Switch - Wakes From and Puts To Sleep

      @kumartrd Have a look at MMM-PIR-Sensor. You can customize it to suit your requirements. It normally triggers turning the monitor on, and sets a timer to turn the monitor off. Instead, you want to use button actions/notifications to do both, and not use a timer. Instead you can reuse the wake code for sleep. You’ll also need to add a logic test that a button press while asleep wakes, while a button press while awake sleeps. Have a look at this thread for a very thorough explanation.

      posted in Requests
      N
      ninjabreadman
    • RE: Slim display due to thin space

      @Kastore Why not just let the mirror extend past the back of the door? Are there shelves? Just let your mirror wear a backpack.

      posted in Hardware
      N
      ninjabreadman
    • RE: Permission Denied - Config File

      @KumarTRD It’s not executable. You need to use an editor to open it, like nano:

      nano ~/MagicMirror/config/config.js

      posted in Requests
      N
      ninjabreadman
    • RE: Changing units from 'metric' to 'imperial' breaks currentweather module

      @sefeing Use the instructions here. You want to git checkout the branch by name (in this case, run git checkout develop in the ~/MagicMirror folder).

      You might even be able to use git cherry-pick 10eb41d31943a4495bf4c4674d52d0b9631a7446 instead, to stay on master but incorporate that specific fix. YMMV.

      posted in Troubleshooting
      N
      ninjabreadman
    • RE: How to update the master branch?

      @e3v3a I take your point; in my case I’m running a reasonable size card and Raspbian/MM are all that is on the card. I do also mention to delete MM-Backup when they’re done. I really just wanted to give them the extra insurance of a full backup. Good call on tar, but they then need to know how to unpack it.

      @strawberry-3.141 If you’re using git to stash changes, then you’ve clearly modified other files (IIRC, config.js and maybe custom.css are ignored). As above, I just wanted to give extra assurance that they had a full copy if anything went totally awry.

      posted in Troubleshooting
      N
      ninjabreadman
    • RE: updating without losing settings in config, and js files?

      @navyvette87 @Cyberwrights is right, and where possible you should migrate your changes into config.js, custom.css, etc.

      When updating, git insists that your files not have changes that conflict with those of the repository. Use git stash as outlined here to store your local changes, pull updates from the repo, then restore your own changes.

      posted in General Discussion
      N
      ninjabreadman
    • RE: Exporting a file from Google Drive with specific mimeType

      @luckylooke Great news, is it up and working? Sorry, I never got mine working, but may now try again. Thanks!

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

      @wolkenaj /Test will tell the shell to look in the root of the filesystem (/) for Test. Instead, ./ will tell it to look in the current working directory (cwd), which I suspect is ~/MagicMirror. So ./Test is likely what you want.

      Worst case, you could use the complete path (~/MagicMirror/Test or /home/pi/MagicMirror/Test) which should also work. I also suggest renaming Test to test.sh, just so it’s always immediately apparent that it’s a shell script.

      posted in Development
      N
      ninjabreadman
    • RE: Request a Twitterfeed

      @mediathreat newsfeed will refresh the feeds based on the updateinterval, so it depends on whether (and how often) TwitRSS refreshes the feeds.

      posted in Requests
      N
      ninjabreadman
    • RE: Improve updatenotification module (to be module selective)

      Although I concede I’m not sure how to set the config parameters for updatenotification in config.js (whether you can set params without instantiating the module).

      posted in Development
      N
      ninjabreadman
    • 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 / 1