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

VGA (not a HDMI) sleep via PIR-Sensor

Scheduled Pinned Locked Moved Show your Mirror
8 Posts 3 Posters 6.5k Views 2 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.
  • A Offline
    AxLed Module Developer
    last edited by Sep 7, 2019, 5:59 PM

    @bdream
    I use MMM-PIR-Sensor successful on my mirror (i also have a VGA Monitor connected via an HDMI Adapter) to safe power.

    For your “safe power in the night” you can use another module, check MMM-ModuleScheduler (for scheduling) in combination with MMM-Remote-Control (for interaktions like monitor on/off).

    AxLED

    1 Reply Last reply Reply Quote 0
    • B Offline
      bdream
      last edited by Sep 7, 2019, 6:02 PM

      Hi AxLED, many thanks for your replay!
      I’m off next two weeks and will try it afterwards.

      I thought it will not run with VGA connection :S
      So I’m happy with this information!

      Best regards, bdream

      –
      cheers, bdream

      1 Reply Last reply Reply Quote 0
      • B Offline
        bdream
        last edited by Sep 15, 2019, 12:26 PM

        Hi AxLED,
        may I ask you for help please?

        I did connect a PIR to my Rpi to PIN 40 / BCM 21

        git clone https://github.com/mboskamp/MMM-PIR.git
        cd MMM-PIR
        npm install
        

        Added the the config in the verry first line within the modules chapter

        {
                module: 'MMM-PIR',
                position: 'top_center',
                config: {
                        sensorPin: 21,
                        delay: 10000,
                        turnOffDisplay: true,
                        showCountdown: true,
        //                callbackScripts: ["callback.py"
                }
        },
        
        

        Nothing happen. No countdown starts. No Disply turn off.

        Wiring was inslalled already:

        pi@MagicMirror:~ $ gpio -v
        gpio version: 2.50
        Copyright (c) 2012-2018 Gordon Henderson
        This is free software with ABSOLUTELY NO WARRANTY.
        For details type: gpio -warranty
        
        Raspberry Pi Details:
          Type: Pi 3, Revision: 02, Memory: 1024MB, Maker: Sony
          * Device tree is enabled.
          *--> Raspberry Pi 3 Model B Rev 1.2
          * This Raspberry Pi supports user-level GPIO access.
        
        

        And I tried this command an a reboot:

        sudo usermod -a -G gpio pi
        

        Have you got any hints for me please?

        –
        cheers, bdream

        1 Reply Last reply Reply Quote 0
        • B Offline
          bdream
          last edited by Sep 24, 2019, 6:26 AM

          no idea what to do getting display off while noone is infront of it using PIR-Sensor?

          Cheers, bdream

          –
          cheers, bdream

          S 1 Reply Last reply Sep 24, 2019, 1:35 PM Reply Quote 0
          • A Offline
            AxLed Module Developer
            last edited by Sep 24, 2019, 1:05 PM

            @bdream
            There are two Pir Sensor Modules. I use MMM-PIR-Sensor. Maybe this helps.
            AxLED

            1 Reply Last reply Reply Quote 0
            • S Offline
              sdetweil @bdream
              last edited by Sep 24, 2019, 1:35 PM

              @bdream
              MMM-PIR uses the tvservice command (see MMM-PIR/callbackscripts/default for the two scripts)

              MMM-PIR-Sensor uses the /usr/bin/vcgencmd command

              YOU have to make sure the different approaches work

              my TV does NOT respond to ANY command…

              Sam

              How to add modules

              learning how to use browser developers window for css changes

              1 Reply Last reply Reply Quote 0
              • B Offline
                bdream
                last edited by Sep 24, 2019, 3:33 PM

                Good Info!
                Will play next days with MMM-PIR and MMM-PIR-Sensor investigating about needed scripts vs. /usr/bin/vcgencmd command

                If I can’t get it run mayby I will add an relais to turn off the display…

                At the moment I have to understand the both approaches and what my display is able to handle.
                Could be no way is possible as it’s an verry old one.

                Cheers, bdream

                –
                cheers, bdream

                1 Reply Last reply Reply Quote 0
                • 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