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

    Posts

    Recent Best Controversial
    • RE: MM Update - GIT error

      Maybe this was the issue.
      https://www.geekwire.com/2018/github-recovering-widespread-outage-caused-networking-database-issues/

      posted in Troubleshooting
      mochmanM
      mochman
    • RE: MMM-Gas

      @rob73 I haven’t tried this to see how it looks, but you may just be able to comment out a few of the lines in MMM-Gas.js
      Try commenting out the last 2 lines of this code in the getDom() function.

       var td5 = document.createElement("td");
       td5.innerHTML = dist;
       TDrow.appendChild(td5);
       weatherTable.appendChild(TDrow);
      

      It should look like this when you’re done.

      var td5 = document.createElement("td");
      td5.innerHTML = dist;
      //TDrow.appendChild(td5);
      //weatherTable.appendChild(TDrow);
      

      You should also comment out this part as well.

      var bjumpy = document.createElement("th");
      bjumpy.setAttribute("style", "text-align:center");
      bjumpy.classList.add("xsmall");
      bjumpy.innerHTML = "Distance";
      //xFCRow.appendChild(bjumpy);
      //weatherTable.appendChild(xFCRow);
      
      posted in Transport
      mochmanM
      mochman
    • RE: MMM-Gas

      @3d Hmm, the code is supposed to use that variable as an integer. What kind of error were you getting when you had items: 10,?

      Edit: Guess it doesn’t matter. Math.min() still works using a string.

      posted in Transport
      mochmanM
      mochman
    • RE: MMM-Gas

      @cowboysdude I just sent you a pull request that should fix their new page.

      posted in Transport
      mochmanM
      mochman
    • RE: Applied change to config.txt, MM fails to boot.

      I had the same issue. I changed dtoverlay=vc4-kms-v3d to dtoverlay=vc4-fkms-v3d and was able to boot up again.

      posted in Troubleshooting
      mochmanM
      mochman
    • RE: MMM-Nest

      Please use these steps. If you have any questions after that, I’ll be happy to answer.

      posted in Utilities
      mochmanM
      mochman
    • RE: ipWhitelist HowTo

      That doesn’t sound like an ipWhitelist problem. Did you install MMM-Remote-Control per the instructions? If so, what exactly are you getting your error message on and what are the IPs of your magicmirror and device?

      posted in Tutorials
      mochmanM
      mochman
    • RE: Unable to display weather description

      Glad to hear it.

      posted in Requests
      mochmanM
      mochman
    • RE: Unable to display weather description

      Well I’m glad it started mostly working. Sorry about the array of weather I was talking about earlier. I though you were using the weatherforecast module to get this info, not currentweather. The way you’re describing the issue, it sounds like the updateDOM() function is getting called before that value is set. Where in the processWeather() function did you put this.desc = data.weather[0].description;? is it before this section?

      this.show(this.config.animationSpeed, {lockString:this.identifier});
      this.loaded = true;
      this.updateDom(this.config.animationSpeed);
      this.sendNotification("CURRENTWEATHER_DATA", {data: data});
      
      posted in Requests
      mochmanM
      mochman
    • RE: Unable to display weather description

      Yeah, it does look like the module gets back an array of weather data for each day. Have you tried putting some console.log() statements in your code to try and troubleshoot where the problem is. Like

      this.desc = data.weather[0].description;
      console.log("Description Var - " + this.desc); //See if anything is output
      

      At least then you’d know if the variable is correct and your div statement isn’t working, or the variable isn’t getting set correctly.

      posted in Requests
      mochmanM
      mochman
    • RE: Unable to display weather description

      Did you want to get the first day’s weather information only? Did you declare the variable this.desc in the start function first? If not, that may be your problem.

      posted in Requests
      mochmanM
      mochman
    • RE: npm install - electron fails to install

      What’s in that logfile that was created?

      posted in Troubleshooting
      mochmanM
      mochman
    • RE: npm install - electron fails to install

      Are you running it through an SSH connection? If so, try running DISPLAY=:0 nohup npm start &
      If that works, I recommend using pm2 to automatically start your mirror. You can find the guide to get pm2 to work with here.

      posted in Troubleshooting
      mochmanM
      mochman
    • RE: API requests stop firing after a couple hours for custom module

      @NateDee I tried the same thing. The weird thing is that all the other modules update normally, just the one weather one. Nay luck with your issue?

      posted in Troubleshooting
      mochmanM
      mochman
    • RE: API requests stop firing after a couple hours for custom module

      I have a similar issue with forecast-io. Sometimes it updates for days, sometimes it stops updating after an hour or so. I wish I could help fix your problem, but the only thing I did was add a small piece of text that shows when it was last updated so I can restart the mirror.

      posted in Troubleshooting
      mochmanM
      mochman
    • RE: Project overview - 09.02.2018 - revisited

      Looks nice! What does the hat you have on your pi do?

      posted in Show your Mirror
      mochmanM
      mochman
    • RE: How to update the master branch?

      Seems like you’ve changed some of the files in the MagicMirror directory. If you want to upgrade you’ll have to stash the changes. run git stash in your MagicMirror directory, then run git pull. Stashing wont affect your config.js or any modules you’ve installed into your modules directory.

      Edit
      @ninjabreadman’s has a better fix for you than I do.

      posted in Troubleshooting
      mochmanM
      mochman
    • RE: Updating to v2.2.0...

      okay, try running
      rm -f ~/MagicMirror/.git/index.lock
      then try git pull again. Hopefully you’ll see more than:
      Updating b799609..20823bf

      posted in Troubleshooting
      mochmanM
      mochman
    • RE: Updating to v2.2.0...

      Just trying to cover all the bases here, but are you on the master branch? You can run git branch to see. It should say something like:

      pi@Magic-Mirror:~/ $ cd MagicMirror
      pi@Magic-Mirror:~/MagicMirror $ git branch
      * master
      

      The asterisk denotes which branch is your current one.
      If for some reason you’re not on the master branch use git checkout master to switch back to the master branch.
      Then try running git pull and see if anything happens. Hopefully you get a list of files that have been changed. If not, and you don’t see an error messages try git pull -v to see what errors (if any) you are getting.
      Hopefully that all works out, then you can just run npm install and you should be all set.

      Good luck.

      posted in Troubleshooting
      mochmanM
      mochman
    • RE: MMM-Nest

      @pyrosmiley No, sorry. You’re doing it the way I would have recommended. If you want to throw a feature request on the githuib page, I’d be more than happy to try and figure something out.

      posted in Utilities
      mochmanM
      mochman
    • 1
    • 2
    • 3
    • 4
    • 5
    • 6
    • 7
    • 8
    • 1 / 8