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

working module Raspberry Pi 4 and PIR?

Scheduled Pinned Locked Moved Forum
13 Posts 8 Posters 3.0k 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.
  • D Offline
    DariBer
    last edited by Jun 8, 2022, 7:38 PM

    I’m looking for a way (module) if possible to somehow black the screen and then light it up with a motion sensor (PIR) together with Raspberry Pi 4, if that’s not possible, then is there any module that works with RPi 4 that turn of the HDMI and turns on the HDMI port with motion sensor.

    I have tried some but seems it doesn’t work with RPi4.

    M H P 3 Replies Last reply Jun 10, 2022, 12:40 AM Reply Quote 0
    • M Offline
      Murky3057 @DariBer
      last edited by Jun 10, 2022, 12:40 AM

      @DariBer
      The simplest way to do this is to use a presence sensor that lights up lamps, and connect the sensor to the monitor’s power.
      When someone approaches it turns on, and turns off the monitor when no one is around.
      It can be done in other ways, but it will be much more complex.

      D 1 Reply Last reply Jun 10, 2022, 1:03 AM Reply Quote 0
      • D Offline
        DariBer @Murky3057
        last edited by Jun 10, 2022, 1:03 AM

        @Murky3057
        Not sure I understand you here.
        Could you please describe the thing with “connect the sensor to the monitor’s power”? You mean to connect the monitor to a remote witch like a zigbee or z-wave (or wifi) and power on/off that switch? So basic cut the power to the monitor?

        M 1 Reply Last reply Jun 10, 2022, 1:28 AM Reply Quote 0
        • M Offline
          Murky3057 @DariBer
          last edited by Jun 10, 2022, 1:28 AM

          @DariBer
          Yes, that’s what I imagined.
          To be as simple as possible.

          Sorry for my english, I’m using a translator.

          D 1 Reply Last reply Jun 10, 2022, 1:31 AM Reply Quote 0
          • D Offline
            DariBer @Murky3057
            last edited by Jun 10, 2022, 1:31 AM

            @Murky3057

            OK, I had that in mind, my problem is, when my monitor turnes on, it start some kind of splash screen that is pink/purple with Benq logo before it’s totally tuned on, I find that so annoying to see. That’s the reason I’m not going that path :)

            M 1 Reply Last reply Jun 10, 2022, 2:20 AM Reply Quote 0
            • M Offline
              Murky3057 @DariBer
              last edited by Jun 10, 2022, 2:20 AM

              @DariBer
              Another solution is to create a script to run the command “xset dpms force off” to turn off the monitor and “xset dpms force on” to turn it on.
              Use this video as an example to create something similar.

              https://youtu.be/Tw0mG4YtsZk

              B 1 Reply Last reply Jun 10, 2022, 9:02 PM Reply Quote 2
              • B Offline
                bugsounet Banned @Murky3057
                last edited by Jun 10, 2022, 9:02 PM

                I give a lot of courage for find ;)

                S 1 Reply Last reply Jun 10, 2022, 9:24 PM Reply Quote 0
                • S Offline
                  sdetweil @bugsounet
                  last edited by Jun 10, 2022, 9:24 PM

                  @bugsounet your standalone solution is archived, so not very helpful .

                  Sam

                  How to add modules

                  learning how to use browser developers window for css changes

                  B 1 Reply Last reply Jun 11, 2022, 9:53 AM Reply Quote -1
                  • B Offline
                    bugsounet Banned @sdetweil
                    last edited by Jun 11, 2022, 9:53 AM

                    @sdetweil because I’m kind ;)

                    I purpose to try this

                    Work with rpi 3a -> rpi 4
                    (not tested with rpi < 3a)
                    tested OS : Buster and Bulleyes

                    My actual config is:
                    ce5e8b4f-7673-489e-8d5c-876dec5e6954-image.png

                    My actual modules and plugins are:
                    8037b242-a4ae-43b2-8c2e-89c7af1de8de-image.png

                    And works since 116 days on Bulleyes with an RPI 4 ;)

                    1 Reply Last reply Reply Quote 0
                    • H Offline
                      hpgraphia @DariBer
                      last edited by Jun 12, 2022, 5:21 AM

                      @DariBer

                      https://github.com/paviro/MMM-PIR-Sensor
                      I’m using it with raspi zero W with sensor and works great

                      D 1 Reply Last reply Jun 12, 2022, 9:55 AM Reply Quote 0
                      • 1
                      • 2
                      • 1 / 2
                      1 / 2
                      • First post
                        3/13
                        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