• 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.

Help! Probem using PIR Sensor on raspberry pi zero to turn on/off screen

Scheduled Pinned Locked Moved Troubleshooting
15 Posts 5 Posters 6.4k Views 5 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.
  • P Offline
    Petal0u @Petal0u
    last edited by May 25, 2017, 8:40 PM

    Pir sensor module works fine. Screen wakes up.
    I stil have nothing on screen, no smart mirror.

    M 1 Reply Last reply Apr 1, 2018, 1:19 AM Reply Quote 0
    • M Offline
      Mikgabo @Petal0u
      last edited by Apr 1, 2018, 1:19 AM

      @Petal0u did u ever get to solve the problem? I’m currently in the same boat.

      Cheers,
      Mike

      1 Reply Last reply Reply Quote 0
      • R Offline
        randomnoise
        last edited by Apr 1, 2018, 8:50 AM

        Have you disabled screensaver? That can cause the screen to remain blank.

        Easiest way is to install xscreensaver then disable it from the desktop (yes this seems counterintuitive but it works)

        M 1 Reply Last reply Apr 1, 2018, 11:47 AM Reply Quote 0
        • M Offline
          Mikgabo @randomnoise
          last edited by Apr 1, 2018, 11:47 AM

          @randomnoise
          Hey! Thanks for getting back to me.
          My MM works pretty well, can’t get MMM stock to work though.
          My major problem is getting my PIR sensor to function properly. I have it working properly on a pi3 but not the zero.
          What code did u use for your PIR?

          Thanks,
          Mike

          M N 2 Replies Last reply Apr 1, 2018, 12:05 PM Reply Quote 0
          • M Offline
            Mykle1 Project Sponsor Module Developer @Mikgabo
            last edited by Apr 1, 2018, 12:05 PM

            @Mikgabo said in Help! Probem using PIR Sensor on raspberry pi zero to turn on/off screen:

            can’t get MMM stock to work though.

            If I remember correctly, that module’s API is no longer working, thus, killing the module. :-(

            Create a working config
            How to add modules

            M 1 Reply Last reply Apr 1, 2018, 12:35 PM Reply Quote 0
            • M Offline
              Mikgabo @Mykle1
              last edited by Apr 1, 2018, 12:35 PM

              @Mykle1 Good day!

              That’s interesting, I have MMM stock working on my Pi3. I am running an older version of Jessie though.
              For you know of any stock ticker that would work on Pi Zero?

              Thanks,
              Mike

              M 1 Reply Last reply Apr 1, 2018, 12:42 PM Reply Quote 0
              • M Offline
                Mykle1 Project Sponsor Module Developer @Mikgabo
                last edited by Apr 1, 2018, 12:42 PM

                @Mikgabo

                Obviously, I am mistaken then, and I apologize for an old man’s faulty memory. :-/

                I don’t know if this is what you are looking for or if it works
                on a Pi zero

                https://github.com/alexyak/stocks

                Create a working config
                How to add modules

                M 1 Reply Last reply Apr 1, 2018, 12:44 PM Reply Quote 0
                • M Offline
                  Mikgabo @Mykle1
                  last edited by Apr 1, 2018, 12:44 PM

                  @Mykle1 Many thanks, I’ll give it a try!

                  I have a few more avenues to explore I respect to the PIR sensor and will report back if successful.

                  Cheers,
                  Mike

                  1 Reply Last reply Reply Quote 0
                  • N Offline
                    NoNameRo @Mikgabo
                    last edited by Apr 1, 2018, 12:55 PM

                    @Mikgabo said in Help! Probem using PIR Sensor on raspberry pi zero to turn on/off screen:

                    My major problem is getting my PIR sensor to function properly. I have it working properly on a pi3 but not the zero.
                    What code did u use for your PIR?

                    for the Pi Zero use the PIR script from @cruunnerr --> point 2.2 Using PIR script

                    maybe this is helpful

                    The very important thing is, that your monitor supports HDMI-CEC or ARC. Otherwise u will not be able to turn it on or off via HDMI.
                    To reassure you, most monitors do this ;)
                    To check if it works just go into terminal via ssh and type:
                    
                    sudo tvservice -o to turn off
                    sudo tvservice -p to turn on
                    
                    edit: for some monitors the following commands work better. Please use them if your monitor needs it:
                    
                    vcgencmd display_power 0 to turn off
                    vcgencmd display_power 1 to turn on
                    
                    M 2 Replies Last reply Apr 1, 2018, 12:57 PM Reply Quote 0
                    • M Offline
                      Mikgabo @NoNameRo
                      last edited by Apr 1, 2018, 12:57 PM

                      @NoNameRo Hi!

                      Thanks for the reply :)
                      I’ll give it a try later when the kids are sleeping.

                      Cheers,
                      Mike

                      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 Sam, technical setup by Karsten.
                      This forum is using NodeBB as its core | Contributors
                      Contact | Privacy Policy