• Recent
  • Tags
  • Unsolved
  • Solved
  • MagicMirror² Repository
  • Documentation
  • 3rd-Party-Modules
  • Donate
  • Discord
  • Register
  • Login
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.

PIR-Sensor - put your mirror to sleep if not used

Scheduled Pinned Locked Moved Troubleshooting
126 Posts 37 Posters 195.2k Views 20 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.
  • I Offline
    IngmarSwart @MechMatt
    last edited by May 19, 2016, 8:36 PM

    @MechMatt Have a look at the PowerSwitch Tail. If you live in the US, you can buy an assembled version from Adafruit. If you’re in 240V land (like me), you will have to do some (basic) soldering. Works like a charm for me. :-)

    1 Reply Last reply Reply Quote 0
    • K Offline
      KirAsh4 Moderator
      last edited by May 19, 2016, 8:36 PM

      That’s really odd that you have to go through all of that. On my rPi-3 with the most recent Raspbian Jessie release, I can use 'tvservice -o' and 'tvservice -p' and it just works. I don’t have to do anything else. It’s all running as the unprivileged user 'pi' (and without issuing 'sudo' before each command.) I wonder if it has something to do with the monitor and what it responds with when a signal is sent … Glad you figured it out though.

      A Life? Cool! Where can I download one of those from?

      I 1 Reply Last reply May 19, 2016, 8:41 PM Reply Quote 0
      • I Offline
        IngmarSwart @KirAsh4
        last edited by May 19, 2016, 8:41 PM

        @KirAsh4 I agree, it’s very strange. Like you, I am using a rPi-3 with the most recent version of Raspbian Jessie and run everything as user pi. So maybe it is the monitor (Philips 273V5l). Which one do you use?

        Although the problem is fixed, I would like to know what is going on.

        1 Reply Last reply Reply Quote 0
        • K Offline
          KirAsh4 Moderator
          last edited by May 19, 2016, 8:44 PM

          Let me get home and get you the details on it. It a monitor we had sitting around at the office, some high end graphic Pro monitor that wasn’t being used anymore. I also have a test I want to perform on it, see if that makes a difference in what I’m seeing. Stay tuned.

          A Life? Cool! Where can I download one of those from?

          1 Reply Last reply Reply Quote 0
          • J Offline
            joerod @paviro
            last edited by May 21, 2016, 2:38 AM

            @paviro I donwloaded to node 5.0.0 and I know get the following error

            Failed at the magicmirror@2.0.0 start script 'electron js/electron.js'.
            
            P 1 Reply Last reply May 21, 2016, 8:54 AM Reply Quote 0
            • P Offline
              paviro Admin @joerod
              last edited by May 21, 2016, 8:54 AM

              @joerod That’s all? Not a failure of my plugin. Any more logs?

              We're all stories in the end. Just make it a good one, eh?

              – The Doctor

              J 1 Reply Last reply May 21, 2016, 2:38 PM Reply Quote 0
              • T Offline
                Try2Fly
                last edited by May 21, 2016, 2:22 PM

                For people who are not confortable with programming this, or need to buy a pir sensor anyway

                You can also buy a pir with motionsensor like this

                1 Reply Last reply Reply Quote 0
                • J Offline
                  joerod @paviro
                  last edited by paviro May 21, 2016, 4:52 PM May 21, 2016, 2:38 PM

                  @paviro

                      9 verbose stack Error: magicmirror@2.0.0 start: `electron js/electron.js`
                      9 verbose stack Exit status 1
                      9 verbose stack     at EventEmitter.<anonymous> (/usr/local/lib/node_modules/npm/lib/utils/lifecycle.js:214$
                      9 verbose stack     at emitTwo (events.js:87:13)
                      9 verbose stack     at EventEmitter.emit (events.js:172:7)
                      9 verbose stack     at ChildProcess.<anonymous> (/usr/local/lib/node_modules/npm/lib/utils/spawn.js:24:14)
                      9 verbose stack     at emitTwo (events.js:87:13)
                      9 verbose stack     at ChildProcess.emit (events.js:172:7)
                      9 verbose stack     at maybeClose (internal/child_process.js:817:16)
                      9 verbose stack     at Process.ChildProcess._handle.onexit (internal/child_process.js:211:5)
                  

                  I’ve tested my PIR sensor with a Python script to make sure I’m using the proper GPIO and its functioning as it should. I do see 1 & 0 when I move near the sensor so I don’t think its the hardware.

                  I’d love to use this module, I was going to do it in python but since you have it in JS I figured why not use that.

                  P 1 Reply Last reply May 21, 2016, 4:55 PM Reply Quote 0
                  • P Offline
                    paviro Admin @joerod
                    last edited by May 21, 2016, 4:55 PM

                    @joerod please use Markdown on code snippets so it is easier to read! :) have you installed all the dependencies (also for the mirror itself?)
                    @MichMich any idea?

                    We're all stories in the end. Just make it a good one, eh?

                    – The Doctor

                    J 1 Reply Last reply May 21, 2016, 5:08 PM Reply Quote 0
                    • M Offline
                      MichMich Admin
                      last edited by May 21, 2016, 5:03 PM

                      Sorry, no clue. :(

                      1 Reply Last reply Reply Quote 0
                      • 1
                      • 2
                      • 5
                      • 6
                      • 7
                      • 8
                      • 9
                      • 12
                      • 13
                      • 7 / 13
                      7 / 13
                      • First post
                        68/126
                        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