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 or MMM-PIR-Sensor issues...

    Scheduled Pinned Locked Moved Unsolved Troubleshooting
    17 Posts 7 Posters 6.9k Views 8 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.
    • O Offline
      onis_uk
      last edited by onis_uk

      Hi all, I’ve been building in the background for some time now but I’ve come across a problem trying to install a PIR.

      My MM project all set up and running great, but I wanted to turn off the display with either of the above PIR modules and I’ve come across some issues.

      When I add this code to my config.js after installing MMM-PIR-Sensor

              {
      	module: 'MMM-PIR-Sensor',
      	config: {
      		     sensorPin: 14,
      		     powerSaving: true,
      	             powerSavingDelay: 40,
      	}
      	}
      

      My MM won’t load, I get a white screen which says;

      “localhost refused to connect”

      ERR_CONNECTION_REFUSED

      I’ve followed the install exactly and can’t see what’s going wrong!

      cheers onis

      cowboysdudeC 1 Reply Last reply Reply Quote 0
      • O Offline
        onis_uk
        last edited by

        This post is deleted!
        1 Reply Last reply Reply Quote 0
        • O Offline
          onis_uk
          last edited by

          Fixed it by running a script outside the modules using this method!

          https://github.com/cowboysdude/Pir-Sensor

          cheers
          onis

          cowboysdudeC 1 Reply Last reply Reply Quote 1
          • M Offline
            MacMirror
            last edited by

            Hi Onis, I got the module running without a script. Did you add the user to the GPIO group and executed the command for turning the HDMI on/off?

            1 Reply Last reply Reply Quote 0
            • cowboysdudeC Offline
              cowboysdude Module Developer @onis_uk
              last edited by

              @onis_uk what’s funny is that I cannot get it work any longer… since Buster came out and I upgraded it turns off but not back on…LOL

              S 1 Reply Last reply Reply Quote 1
              • S Do not disturb
                sdetweil @cowboysdude
                last edited by sdetweil

                @cowboysdude someone had to add a parm to the command

                Either way, i found another way which is using the command 'vcgencmd display_power 0 2' and
                'vcgencmd display_power 1 2' 
                where the 0 stands for Off and 1 stands for On and the 2 stands for my display ID. 
                

                Sam

                How to add modules

                learning how to use browser developers window for css changes

                cowboysdudeC 2 Replies Last reply Reply Quote 1
                • cowboysdudeC Offline
                  cowboysdude Module Developer @sdetweil
                  last edited by

                  @sdetweil Thank you!! Been looking all day… gonna try this right now!

                  1 Reply Last reply Reply Quote 0
                  • cowboysdudeC Offline
                    cowboysdude Module Developer @sdetweil
                    last edited by

                    @sdetweil My old Pir Sensor does not work at all on Buster.

                    S 1 Reply Last reply Reply Quote 0
                    • S Do not disturb
                      sdetweil @cowboysdude
                      last edited by

                      @cowboysdude eh?

                      Sam

                      How to add modules

                      learning how to use browser developers window for css changes

                      S 1 Reply Last reply Reply Quote 0
                      • S Do not disturb
                        sdetweil @sdetweil
                        last edited by

                        @sdetweil if u ssh in do the two commands work?

                        Sam

                        How to add modules

                        learning how to use browser developers window for css changes

                        1 Reply Last reply Reply Quote 0
                        • cowboysdudeC Offline
                          cowboysdude Module Developer @onis_uk
                          last edited by

                          IN case anyone is still looking for a way to do this since they updated the PI4 it’s easier:

                          You can use 1 of 2 methods here:

                          https://github.com/cowboysdude/Pir-Sensor

                          or [even better solution IMO]

                          https://github.com/bugsounet/MMM-NewPIR

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

                            @cowboysdude

                            • Thanks to don’t to advertise any of my modules on this forum
                            • Thanks to not offer any support of my modules on this forum

                            I repeat again (again, again ?):

                            • I am not a reference in this forum
                            • I’m a VERY BAD guys in this forum
                            • That’s why any of my modules is not on the 3rd party modules
                            S FoziF 2 Replies Last reply Reply Quote 0
                            • S Do not disturb
                              sdetweil @bugsounet
                              last edited by

                              @bugsounet said in MMM-PIR or MMM-PIR-Sensor issues...:

                              I am not a reference in this forum

                              only because you choose it to be that way.

                              Sam

                              How to add modules

                              learning how to use browser developers window for css changes

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

                                @sdetweil sure and i assume it :)
                                [and i will continue… on this way there]

                                1 Reply Last reply Reply Quote 0
                                • FoziF Offline
                                  Fozi Project Sponsor @bugsounet
                                  last edited by

                                  • I’m a VERY BAD guys in this forum

                                  …and in your own forum, too.

                                  HowTo: Replace PIR Sensor with a RCWL-0516 Microwave Sensor

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

                                    @fozi I know… and I don’t know how code something and blah blah blah …

                                    Mykle1M 1 Reply Last reply Reply Quote 0
                                    • Mykle1M Offline
                                      Mykle1 Project Sponsor Module Developer @bugsounet
                                      last edited by

                                      Gee, I’ve missed this place.

                                      No, really.

                                      Create a working config
                                      How to add modules

                                      1 Reply Last reply Reply Quote 1

                                      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