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

    mab6435

    @mab6435

    0
    Reputation
    491
    Profile views
    4
    Posts
    0
    Followers
    0
    Following
    Joined
    Last Online

    mab6435 Unfollow Follow

    Latest posts made by mab6435

    • RE: MMM-PIR-SENSOR not working

      @cruunnerr I just deleted the entire module and downloaded it again, following the instructions directly from the page.

      To summarize, I know the sensor is working properly and connected to the right pin listed in the config file. I know nothing is wrong with the module i just downloaded it from github. I’ve posted the exact copy of my config file, no one seems to have a problem with that. What else could it be? For some reason the monitor wont shut off.

      Its a Benq monitor connected to the raspberry pi via an hdmi cord.
      Im not sure if this helps but when i type /opt/vc/bin/tvservice -s:
      state 0x12000a [HDMI CEA (16) RGB lim 16:9], 1920x1080 @ 60.00Hz, progressive

      posted in Troubleshooting
      M
      mab6435
    • RE: MMM-PIR-SENSOR not working

      @cruunnerr I’m using the correct pin. I made a python script shown below:

      from gpiozero import MotionSensor
      pir = MotionSensor(22)
      while True:
      if pir.motion_detected:
      print(“motion detected”)
      else:
      print(“NOTHING”)

      With this it will print nothing until i wave my hand in front of it then motion detected until i stop. So I know for a fact the PIR sensor is connected and working properly. Also there are no errors when I start magic mirror the only thing that is mentioned about MMM-PIR-Sensor is it says no helper found for module: MMM-PIR-SENSOR. Anyone have any idea

      posted in Troubleshooting
      M
      mab6435
    • RE: MMM-PIR-SENSOR not working

      Hi guys, thanks for the help. Unfortunately that did not fix the issue…
      I changed the code like you mentioned. Does anyone have any idea why the monitor never turns off. Googling the topic it seems other people have had a similar issue but no solutions ever been found.

      Its very strange to me because with a python script I have it printing out when it detects motion and when it detects none and it works flawlessly. I have a feeling that for some reason the MMM-PIR-SENSOR isn’t actually connecting with the rest of my magic mirror when I start things up. Below is my entire config.js file.

      modules: [

      	{
      		module: "clock",
      		position: "top_left"
      	},
      	{
      		module: "compliments",
      		position: "lower_center"
      	},
      	{
      		module: 'MMM-PIR-SENSOR',
      		config: {
      		sensorPIN: 22,
      		powerSavingDelay: 120 // in seconds 
      		}
      	},
      	{
      		module: "newsfeed",
      		position: "bottom_bar",
      		config: {
      			feeds: [
      				{
      					title: "New York Times",
      					url: "http://www.nytimes.com/services/xml/rss/nyt/HomePage.xml"
      				}
      			],
      			showSourceTitle: true,
      			showPublishDate: true
      		}
      
      	},
                  {
                          module: "MMM-NFL",
                          position: "bottom_left",                              
                  },
      ]
      

      };

      posted in Troubleshooting
      M
      mab6435
    • MMM-PIR-SENSOR not working

      I just got my mirror up and running and was trying to install the PIR sensor module provided by @paviro (https://github.com/paviro/MMM-PIR-Sensor) but it doesn’t seem to be working. I followed the step by step instructions as written and still the screen does not turn off.

      My modification to the modules config file looks like this.
      {
      module: “MMM-PIR-Sensor”,
      }
      I also ran the command /opt/vc/bin/tvservice -s and receive the output state 0x12000a [HDMI CEA (16) RGB lim 16:9], 1920x1080 @ 60.00Hz, progressive

      I created a short python script to test if the sensor works and it does. But for some reason when I start up MagicMirror (using npm start) my webpage display shows up but the screen or display never turns off.

      Anyone able to help?

      posted in Troubleshooting
      M
      mab6435