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: Dynamic travel time

      There are a couple ways I can think of. The easiest one, that wouldn’t require recoding the traffic module would be to have 2 config.js files. One with the destination of town, and the other, work. You could set up a small bash script to switch the files and restart the mirror. You could then put that script in your crontab that runs it at the beginning of the weekend and then at the beginning of the week.

      A more lengthy way would be to have your traffic module take an array of origins/destinations/weekdays and then use it’s internal programming to display the correct commute.

      Another lengthy way would be to have the traffic module use a notificationReceived() with the payload being a origin/destination and then you creating another module that passes that info at a certain date/time.

      I’m sure there are may other ways this can be done, but those are the ones that come to mind.

      posted in Development
      mochmanM
      mochman
    • RE: MMM-Nest

      @willharwell Glad to hear it!

      posted in Utilities
      mochmanM
      mochman
    • RE: MMM-Swipe - Hand gestures

      I can’t help you then. That was my last option. I don’t receive that error nor do I know what that error means.

      posted in Troubleshooting
      mochmanM
      mochman
    • RE: MMM-Swipe - Hand gestures

      @BeLuGe Try running rm -rf node_modules/ inside the MMM-Swipe folder then running npm install again.

      posted in Troubleshooting
      mochmanM
      mochman
    • RE: MMM-Swipe - Hand gestures

      Can you make another config.js file with just the MMM-Swipe module in there? I don’t know what the:
      WARNING! Could not load config file. Starting with default configuration. Error found: Error: Module version mismatch. Expected 49, got 48. means.

      posted in Troubleshooting
      mochmanM
      mochman
    • RE: MMM-Swipe - Hand gestures

      No worries. Yeah the sensor looks like it has 2 detectors on it. I’m pretty sure one is the speaker and the other is the microphone detector.

      posted in Troubleshooting
      mochmanM
      mochman
    • RE: MMM-Swipe - Hand gestures

      @Mitchfarino

      Your left sensor

      Vcc goes to pin #2
      Gnd goes to pin #6
      Trig goes to physical pin #26 (Which is labeled GPIO 23)
      Echo goes to physical pin #18 (Which is labeled GPIO 24)

      Your right sensor

      Vcc goes to pin #4
      Gnd goes to pin #9
      Trig goes to physical pin #22 (Which is labeled GPIO 25)
      Echo goes to physical pin #37 (Which is labeled GPIO 26)

      You need both sensors if you want to detect movement.

      posted in Troubleshooting
      mochmanM
      mochman
    • RE: MMM-Swipe - Hand gestures

      @BeLuGe So I just tried this myself. When I created the module, I was connected to the pi to test. I just tried using SSH to start the program and got the same error you’re getting. Looks like it’s a issue with running a sudo command over SSH, the workaround I found was to run sudo cp ~/.Xauthority /root/ then run DISPLAY=:0 sudo npm start. The problem with this is that everytime you restart your mirror you will need to run the copy command again.

      @Mitchfarino You don’t need a breadboard. I just used one to test out my configuration. You can hook it up directly to the pi using those wires you have already connected. When I tested out my setup, I used these pins.

      echoLeftPin: 24,       
      triggerLeftPin: 23,     
      echoRightPin: 26,      
      triggerRightPin: 25,   
      

      Remember that those are the GPIO #'s and not the physical pin #.

      posted in Troubleshooting
      mochmanM
      mochman
    • RE: MMM-Swipe - Hand gestures

      @BeLuGe Have you run npm install in the MMM-Swipe folder? Are you running the mirror with sudo? If so would you mind posting your config.js file. Thanks.

      posted in Troubleshooting
      mochmanM
      mochman
    • RE: MMM-NEST

      I just updated the module to catch some problems. Can you go into the MMM-Nest module folder and run git pull. That should get the most updated version. If you are still having problems, can you run the following command
      rm ~/.pm2/logs/mm-error-0.log
      Restart your mirror then post the contents of both your console.log and the mm-error-0.log. Thanks.

      posted in Troubleshooting
      mochmanM
      mochman
    • 1 / 1