MagicMirror Forum
    • Recent
    • Tags
    • Unsolved
    • Solved
    • MagicMirror² Repository
    • Documentation
    • 3rd-Party-Modules
    • Donate
    • Discord
    • Register
    • Login
    A New Chapter for MagicMirror: The Community Takes the Lead
    Read the statement by Michael Teeuw here.

    MMM-Pir Issue

    Scheduled Pinned Locked Moved Troubleshooting
    4 Posts 3 Posters 968 Views 3 Watching
    Loading More Posts
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes
    Reply
    • Reply as topic
    Log in to reply
    This topic has been deleted. Only users with topic management privileges can see it.
    • Feedy88F Offline
      Feedy88
      last edited by Feedy88

      Hi all,

      I have issues with the MMM-Pir module. I recently finished my mirror and put it onto the wall which all worked fine but it randomly shutdown. I have no idea why that happend but I found out it happend when I manage the start of Magic Mirror with pm2, but not when manually starting with “npm run” in a screen or with nohup, so I decided to move away from pm2 and created a systemd unit instad. So far, so good.

      As I didn’t need pm2 I removed it from the raspi. Starting the Mirror with the Unit work fine but on Startup I see an Error Message from the PIR module that 1 needed Library is not loaded. The popup on top on starting up shows it is onoff. I tried rebuilding MMM-Pir and also manually installing onoff with the global flag but no with no avail.

      So the main two changes between WAI and not working at all are

      • Uninstall of pm2
      • changing the address in the config from localhost to 0.0.0.0

      Config for Pir Module:

      {
      	module: 'MMM-Pir',
      	position: 'top_right',
      	config: {
      	  debug: false,
      	  delay: 2 * 60 * 1000,
      	  turnOffDisplay: true,
      	  mode: 9,
      	  ecoMode: true,
      	  displayCounter: true,
      	  displayBar: true,
      	  displayStyle: "Text",
      	  displayLastPresence: tru
      	  lastPresenceTimeFormat: 
      	  mode6_gpio: 20,
      	  mode6_clearGpioValue: tr
      	  pir_gpio: 18,
      	  pir_reverseValue: false,
      	  xrandrForceRotation: "no
      	  //wrandrForceRotation: "
      	}
        }, 
      

      Can anyone help how I can get the Pir Module woring again? Happy to provide logs and config if needed. Thanks!

      kayakbabeK 1 Reply Last reply Reply Quote 0
      • kayakbabeK Offline
        kayakbabe @Feedy88
        last edited by

        @Feedy88 said in MMM-Pir Issue:

        localhost to 0.0.0.0

        localhost is normally the same as 127.0.0.1 for most computers. Why are you wanting it to be 0.0.0.0?

        1 Reply Last reply Reply Quote 0
        • bugsounetB Offline
          bugsounet Banned
          last edited by

          Hi, npm run rebuild command inside MMM-Pir folder will help

          Feedy88F 1 Reply Last reply Reply Quote 0
          • Feedy88F Offline
            Feedy88 @bugsounet
            last edited by Feedy88

            This post is deleted!
            1 Reply Last reply Reply Quote 0

            Hello! It looks like you're interested in this conversation, but you don't have an account yet.

            Getting fed up of having to scroll through the same posts each visit? When you register for an account, you'll always come back to exactly where you were before, and choose to be notified of new replies (either via email, or push notification). You'll also be able to save bookmarks and upvote posts to show your appreciation to other community members.

            With your input, this post could be even better 💗

            Register Login
            • 1 / 1
            • First post
              Last post
            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