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

    Posts

    Recent Best Controversial
    • RE: MMM-PiLights - Control a LPD8806 Led Strip on a Raspberry Pi

      @schmo90 It should work fine, there is no logic prior to that switch that filters possible values.

      What does the server console log report after the text [PiLights] Incoming: ?

      req.query.sequence should contain the string name of the sequence you’re requesting.

      posted in Utilities
      J
      jc21
    • RE: MMM-PiLights - Control a LPD8806 Led Strip on a Raspberry Pi

      Hi schmo90, good to see you’re contributing :)

      Assuming your tests with curl -X GET "http://yourmagicmirror/PiLights?sequence=blue_pulse" still don’t work, I think I’d need to see all of your changes. If you’ve forked my repo on github can you please link it?

      posted in Utilities
      J
      jc21
    • RE: MMM-PIR-Sensor tuning

      Great stuff. People shouldn’t discount a faulty PIR either. The one I had on the shelf for ages wasn’t detecting quite right so I ordered another one and the difference in detection is huge. I’m not sure if these have a shelf life or what but yeah, that was my recent experience.

      posted in Troubleshooting
      J
      jc21
    • RE: MMM-PIR-Sensor tuning

      Sounds like you’re on top of that then.

      Just fyi, the latest code for the original pir sensor module will rebuild the compiled dependencies for you as part of the npm install command in the module. There should be no reason to run npm rebuild manually unless you get those pesky “expected version xx but got xx” errors.

      posted in Troubleshooting
      J
      jc21
    • RE: MMM-PIR-Sensor tuning

      @open_book Very strange, it seems the module is trying to activate/deactive the monitor using the Relay, but you haven’t specified a relay to use.

      I have noticed however, that sensorPIN of 3 shouldn’t work. This variable is incorrectly named, it is not actually the pin number of the header, but the GPIO number instead. Refer to this Pi 3 image showing which “pins” correspond to “gpio” numbers. You should be using one of 4, 5, 6, 12, 13, 18, 22, 23, 24, 25, 26 or 27.

      For example, a sensorPIN of 4 would require the PIR io cable plugged in to pin header 7.

      posted in Troubleshooting
      J
      jc21
    • RE: MMM-PIR-Sensor tuning

      @open_book Few things,

      1. What version of Raspbian are you using? The onoffnpm module has issues with some releases.
        Hint: cat /etc/os-release
      2. What does your config look like for the pir module, exactly?
      posted in Troubleshooting
      J
      jc21
    • RE: Need help using an API

      A quick look on that website and I found an API they provide. When you get more advanced you can hook into that.

      posted in Feature Requests
      J
      jc21
    • RE: MMM-PIR-Senor shut off usb port(s)

      From the quick googling I’ve done, it may be possible to disable/enable raspberry pi usb power with commands:

      Disable

      echo 0x0 > /sys/devices/platform/bcm2708_usb/buspower
      

      Enable

      echo 0x1 > /sys/devices/platform/bcm2708_usb/buspower
      

      However I haven’t tested. I’d recommend writing a new module that handles this and listens for the USER_PRESENCE event notification that the Pir module triggers.

      posted in Development
      J
      jc21
    • RE: New Module Debugging

      Depends on your module I guess. If the part you want to debug is in the interface, turning dev console on is the way:

      electron js/electron.js dev
      

      But if you want to debug node_helper side, console.log everything.

      posted in Development
      J
      jc21
    • RE: MMM-IFTTT - If-This-Then-That Maker Notifications

      @paulocarrasco Pull again now.

      Made the noob mistake of not testing, I wasn’t near my mirror at the time. All good now.

      posted in Productivity
      J
      jc21
    • 1 / 1