MagicMirror Forum
    • Recent
    • Tags
    • Unsolved
    • Solved
    • MagicMirror² Repository
    • Documentation
    • 3rd-Party-Modules
    • Donate
    • Discord
    • Register
    • Login
    1. Home
    2. ninjabreadman
    3. Best
    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: Newbie to Pi looking to start a MM

      Welcome, @torc! You might also check out this thread from @3DPrintedWaffles.

      1. Automatic timed shutdown and boot up (no point it being on at night when nobody is there to benefit).

      This requires added hardware, as the RPi doesn’t have the internal capacity. See this thread on StackExchange. Given you’ll already have the monitor going into standby, you’ll need to determine whether the added cost, work and potential complications are worth the effort.

      1. motion sensor to activate display.

      @cruunnerr is the village expert. Check out this very thorough walkthrough to get started.

      1. small LEDs on back of frame that change with certain outside temperature changes.

      You can start at this post and module. However, there are endless articles on how to connect an RBG LED light strip to an RPi, etc.

      1. map display of selected mobile devices by clicking a button on another device (eg if I want to see where my kids mobiles are, click a button on mine and a map would appear in the mirror with theirs.

      You can trigger displaying modules via a phone/tablet/computer with MMM-Remote-Control, or a button with MMM-Buttons – both by @Jopyth. The harder part will be the map. It’s true that Apple and Google have something like Find My Friends (or Find My Phone for devices connected to your account) but I don’t know of any available APIs for those services. (There are apparently some unofficial Node.js clients.)There is tracking software you can install on Android, but it tends to be insecure garbage.

      posted in General Discussion
      N
      ninjabreadman
    • RE: Error in config file when adding modules, looking for another set of eyes

      Anyone having config.js issues can first copy/paste the module config (or whole thing) into JSHint (removing any API secrets or passwords). It will immediately draw attention to any syntax issues.

      posted in Troubleshooting
      N
      ninjabreadman
    • RE: How to best process an [object Promise]?

      @E3V3A I don’t think there’s a reload mechanism in MM’s config.js. For example, you can have an updateInterval variable in the module config, but it’s the module’s job to then implement the refresh – it isn’t done automagically by MM.

      See the code for the default compliments module for where it uses this.config.updateInterval to call setInterval() with updateDom() (to set a timer to reload the DOM after a delay) all within its start() function.

      posted in Development
      N
      ninjabreadman
    • RE: Should be an easy one: module_center stretches the entire width of the screen. How do I resize this?

      @beeficecream Add this in your custom.css in MagicMirror/css:

      .module.newsfeed {
      max-width: 500px; // adjust px to taste, or use %, em, etc
      }
      

      You can learn more about CSS units here. I think that’s the right selector for newsfeed, but may be mistaken.

      posted in Development
      N
      ninjabreadman
    • RE: Multiple screens fo MM.

      @Mykle1 I know, but I figured as the author of MMM-Hello-Lucy you might be able to explain how (and if) it could help (because it wasn’t apparent to me). I only meant to mention you so that you got a notification; it definitely wasn’t meant to be accusatory.

      posted in General Discussion
      N
      ninjabreadman
    • RE: npm start and black screen

      @dexterbeng I would guess 15-30 seconds. pm2 has to detect that the process has terminated and restart. It depends on the polling interval for pm2 (which, as far as I can tell from their docs/issues, is 100ms, and cannot be changed – seems more frequent than I expected).

      Why are you killing mm with Ctrl+Q? Better to use pm2 restart mm or even pm2 start mm --watch which will also restart mm after file system changes (you may need to configure which directories to watch).

      posted in Troubleshooting
      N
      ninjabreadman
    • RE: Raspberry Pi 0w Module Errors

      @elaniobro IIRC, your folder and filename should match the Module.register() call exactly. So your folder should be MMM-my-module (and NOT MMM-MY-module). You also have an error in loader.js so that’s my guess. It’s doesnt look like loader.js does any manipulation except to add/compare to loadedFiles.

      posted in Development
      N
      ninjabreadman
    • RE: Use MMM-Buttons to hide/show modules

      Hi @cruunnerr,

      payload.module isn’t part of payload.action, but should be a separate key:

      shortPress: {
        notification: "REMOTE_ACTION",
        payload: {
          action: "HIDE",
          module: "module_0_MMM-GoogleMapsTraffic"
        }
      },
      

      Hope that helps.

      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: How to update the master branch?

      @mochman Thanks! Sorry I subposted on you; I was writing on my phone (so didn’t see your post), plus Mobile Safari really hates the compose window of NodeBB, so it takes forever to post anything decent). That and autocorrect really hates git and npm. Cheers. ;)

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