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: Positions of modules

      @jakuk Start at this post. The CSS will change the style of each module (size, font, etc) but to have them appear in the appropriate regions, it’s best to use your module configurations in config.js.

      posted in Troubleshooting
      N
      ninjabreadman
    • RE: Quick Question regarding Magic Mirror cache

      @chef The POST request isn’t sending it an image, it’s sending the URL to the image (e.g. http://192.168.2.18:9920/security/values/2). The problem is, it already has a cached copy of that image. I suggest you append a timestamp to trick electron into re-fetching the same image/resource.

      You want to pass it a URL-encoded value, so use %3F as ? and just append your timestamp, like so:

      http://192.168.2.48:8080/api/v1/modules/alert/show_ALERT?timer=10500&imageUrl=http://192.168.2.18:9920/security/values/2%3F
      {INSERT TIMESTAMP HERE}&imageHeight=220px
      
      posted in General Discussion
      N
      ninjabreadman
    • RE: Hey Guys, I need help

      @Shisim It is telling you what line it’s on (e.g. 56) and also why there’s a problem (e.g. Expected ']' to match '[' from line 28 and instead saw ':'). There were a handful of missing brackets and braces.

      I’ve fixed your errors and placed the file here. I’ll leave the link live for a week or so. I’ve also left comments where you were missing brackets or braces. You will need to learn what they do and how to balance them.

      posted in Troubleshooting
      N
      ninjabreadman
    • RE: Messed up CSS between Portrait and Landscape monitors

      @Damian Use the built-in DOM inspector to see what styles are currently applied. Right-click on the compliments module and select “Inspect”.

      Worst case, using !important should work:

      .module.compliments {
      font-size: 73% !important;
      }
      
      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: Magic mirror serving multiple clients

      @zack949 Not of which I’m aware. Most dev effort is spent on the display/features end. It would also have to track the config options for dozens of regularly changing modules, which presents its own challenges.

      I recommend using a syntax-highlighting code editor, like (the free) Atom. It will help with closing brackets/braces, and using the proper quotes. You can also run “Atom Beautify” in “Packages” regularly to keep formatting for legibility.

      posted in General Discussion
      N
      ninjabreadman
    • RE: Module Developer Challenge - I surrender!

      @Mykle1 It doesn’t seem that pc-stats has all the info you require. You might consider switching to the systeminformation package.

      You can then use si.cpu() for your CPU stats and si.cpuTemperature() to retrieve an object that (if I read the docs right) looks like { main: 0, max: 0, cores: [0, 0] } with your core temps. You can then combine the two responses (or you may be able to have it return all within one request) and return those in a single sendNotification() call.

      posted in Development
      N
      ninjabreadman
    • RE: MMM-ImagesPhotos - Show images from a directory

      @twosquirrels So, I suspect (but cannot be certain) that this is your problem. I’ve not found great browser support for EXIF image rotation. There are a variety of command line approaches available, and even some GUI apps.

      posted in Utilities
      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: Really confused

      @Duke86 Hi Duke, start with cd MagicMirror/ … you’re probably trying to start MM out of the wrong folder.

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