MagicMirror Forum

    • Register
    • Login
    • Search
    • Recent
    • Tags
    • Unsolved
    • Solved
    • MagicMirror² Repository
    • Documentation
    • Donate
    • Discord

    UNSOLVED MMM-PIR doesn´t work with MM 2.8

    Troubleshooting
    5
    13
    1862
    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.
    • S
      shgmongohh last edited by

      Hi,
      after a few years with a working MM 2.0 I want a fresh installed MM2.8 on my Pi3.
      The hardware configuration wasn´t changed. With MM2.0 MMM-PIR was working fine. After the fresh installation, without changing PINs or any other hardware, MMM-PIR doesn´t turn of the monitor.

      Has anybody an idea, why MMM-PIR doesn´t work on MM2.8

      Sebastian

      S 1 Reply Last reply Reply Quote 0
      • S
        sdetweil @shgmongohh last edited by

        @shgmongohh how did u update? 2.9 is the latest

        Sam

        Create a working config
        How to add modules

        1 Reply Last reply Reply Quote 0
        • S
          shgmongohh last edited by

          I delete MM folder from the pi and install it via

          bash -c "$(curl -sL https://raw.githubusercontent.com/MichMich/MagicMirror/master/installers/raspberry.sh)"
          
          S 1 Reply Last reply Reply Quote 0
          • S
            sdetweil @shgmongohh last edited by sdetweil

            @shgmongohh ok, then got 2.9…

            and then u installed the pir module and did an npm install in its folder (as it has dependencies above MM)…
            its package.json lists onoff module which is not part of MM…

            and if still problems, opened developers window, ctrl-shift-i, select the tab labeled console, and maybe add PIR to the filter field. to see any errors…

            2.0 to 2.9 is a BIG change, lots of non-MM code changed

            I have a new install script
            see https://forum.magicmirror.builders/topic/10171/anyone-want-to-try-updated-installer
            and an update script
            see https://forum.magicmirror.builders/topic/10859/new-update-upgrade-script-ready-for-testing

            both coming in the next release…
            but usable now

            Sam

            Create a working config
            How to add modules

            1 Reply Last reply Reply Quote 0
            • S
              shgmongohh last edited by

              I have update to 2.9. But unfortunaly its the same.

              I have tested the PIR. It detects motion, so the hardware is ok. I don´t understand why it doesn´t turn off the monitor.

              S 1 Reply Last reply Reply Quote 0
              • S
                sdetweil @shgmongohh last edited by

                @shgmongohh what did u configure for the callbackscripts config entry?

                Sam

                Create a working config
                How to add modules

                1 Reply Last reply Reply Quote 0
                • L
                  lxne Project Sponsor last edited by

                  Unfortunately getting MMM-PIR up and running on 2.8/2.9 is some kind of a mystery. It’s working on my setup now, but I honestly do not know why. You can read a bit about the odyssey over at github https://github.com/mboskamp/MMM-PIR/issues/10

                  1 Reply Last reply Reply Quote 0
                  • S
                    shgmongohh last edited by

                    The same as before when it was still working

                    {
                            module: 'MMM-PIR-Sensor',
                    			//https://github.com/paviro/MMM-PIR-Sensor
                            config: {
                              sensorPIN: 23,//18, //VCC 5V; BMC Pin: gpio readall
                    		powerSaving: true
                            }
                         },
                    
                    1 Reply Last reply Reply Quote 0
                    • pugsly
                      pugsly last edited by

                      I have been having the same problem kinda where my monitor goes to sleep and it never wakes back up. I know what needs to be added somewhere in order to fix it.

                      fbset -depth 8; fbset -depth 16

                      for some reason even after issuing a wakeup code to the HDMI the fbset command is needed in order for the screen to come back. No clue how to get that into the code at all.

                      1 Reply Last reply Reply Quote 0
                      • cowboysdude
                        cowboysdude Module Developer last edited by

                        Folks don’t want to make this terribly hard but I wrote this module way back when and it’s not dependent on MagicMirror. It runs in it’s own window all by itself. Keeping in mind that I am using a PIR sensor… it works and has for 3 years…

                        Simple Pir Sensor on/off

                        1 Reply Last reply Reply Quote 0
                        • 1
                        • 2
                        • 1 / 2
                        • First post
                          Last post
                        Enjoying MagicMirror? Please consider a donation!
                        MagicMirror created by Michael Teeuw.
                        Forum managed by Paul-Vincent Roll and Rodrigo Ramírez Norambuena.
                        This forum is using NodeBB as its core | Contributors
                        Contact | Privacy Policy