• Recent
  • Tags
  • Unsolved
  • Solved
  • MagicMirror² Repository
  • Documentation
  • 3rd-Party-Modules
  • Donate
  • Discord
  • Register
  • Login
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
  • Javascript Timing Events

    Gals/Guys,

    I don’t know if anyone else has been experiencing the same weird things that seem to be happening to a couple of my modules.
    In 2 modules, that used to work with no issue, they stopped updating. I checked them and one used setTimeout() while the other used setInterval() to refresh the data. These modules have been working for some time and all of a sudden they stopped. I reset my pi to see if that’d help, no luck. I apt-get update and rpi-update to see if that’d help. Didn’t help my issue. I’m running the latest non-develop build of MM.
    I tried some troubleshooting by using setInterval() with a 5 minute delay.
    I just had one of the faulty modules in my config.js so nothing else would mess with it.
    I had a counter that updated every time the function was supposed to run. It ran the first time, and never again. So I switched to setTimeout() with the same delay and counter. It runs 5-270 times randomly(random to me at least).
    I have a bunch of console.log()'s in my code to see if any part fails. Those never get triggered.

    So in summary, 2 of my 10 or so modules have started acting erratically with their timing events. SetInterval() stopped working for me all together, and setTimeout() stops updating at random times. The other modules I use all update fine with setTimeout().

    If anyone has seen this before and knows how to fix it, I’d be greatly appreciative. Thanks!

    P.S. I see the same freezes using MagicMirror’s built in browser as well as Chrome and Firefox from a separate computer.

    posted in Troubleshooting
    M
    mochman
    Feb 23, 2017, 10:44 PM
  • RE: MMM-Swipe: deprecated WARNINGS plus ERROR

    Thomas,

    I haven’t developed it since I first made it so I’m not sure if it still works with all the updates the pi & MM have gotten. Sorry.

    If you want to still try and get it to work, yes you do need 2 sensors to detect movement between them. You also need to run the MagicMirror with sudo to allow permissions to the GPIO pins in MagicMirror.

    posted in Troubleshooting
    M
    mochman
    Feb 5, 2017, 12:47 PM
  • RE: ipWhitelist HowTo

    @AAPS If /24 is working for you then stick with it. The /120 just allows less IPs the ability to access your mirror.

    If you aren’t forwarding your pi’s ports outside your local network it really shouldn’t matter.

    posted in Tutorials
    M
    mochman
    Feb 3, 2017, 1:09 AM
  • RE: Calendar config

    @JbeesonMagic16 Yeah, @in_a_days recommendation fixes the problems in the jshint. Hopefully that works for you.

    posted in Troubleshooting
    M
    mochman
    Jan 26, 2017, 5:32 PM
  • RE: Calendar config

    @JbeesonMagic16 No, it’s a general javascript problem finder. If you paste your config.js file in it’s entirety into http://jshint.com/. You should see it say “One undefined variable”. If you see

    Expected '}' to match '{' from line XXX and instead saw ']'
    

    You are missing a bracket. Look at line XXX and then follow the code down to see where the missing bracket is.

    posted in Troubleshooting
    M
    mochman
    Jan 26, 2017, 5:07 PM
  • RE: Calendar config

    Try putting your config.js in a website like http://jshint.com/. It should help you find any brackets you might be missing.

    posted in Troubleshooting
    M
    mochman
    Jan 26, 2017, 4:54 PM
  • RE: MMM-Nest

    @fox I don’t have a camera so I’m not too sure how to program for it. The API does allow you to get data from the camera as well as take snapshots. The API also gives you the video URL which I imagine you can use to get video on the mirror.

    posted in Utilities
    M
    mochman
    Jan 22, 2017, 10:14 PM
  • RE: MMM-Swipe - Hand gestures

    @Snille Yeah, this module requires root access. I haven’t developed it since I first made it so I’m not sure if it still works with all the updates the pi & MM have gotten. Sorry.

    posted in Troubleshooting
    M
    mochman
    Jan 20, 2017, 7:34 PM
  • RE: Magic Mirror With Amazon Alexa

    I’m not sure about MMM-Alexa, but MMM-AlexaPi needs AlexaPi installed and configured correctly to work.

    posted in Requests
    M
    mochman
    Jan 17, 2017, 2:19 AM
  • RE: Trying to write my own Module...

    You should just need to put

    var row = document.createElement("tr");
    var header = document.createElement("th");
    var header2 = document.createElement("th");
    header.innerHTML = "Load";
    row.appendChild(header);
    header2.innerHTML = "KWh";
    row.appendChild(header2);
    table.appendChild(row);
    

    before

    var channels = this.xml.getElementsByTagName("channel");
    

    You can add a title by modifying your config.js file to add a header.
    The documentation for that is here.

    posted in Development
    M
    mochman
    Jan 13, 2017, 7:29 PM
  • 1 / 1
Enjoying MagicMirror? Please consider a donation!
MagicMirror created by Michael Teeuw.
Forum managed by Sam, technical setup by Karsten.
This forum is using NodeBB as its core | Contributors
Contact | Privacy Policy