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 to turn monitor off. Nothing works :(

    Scheduled Pinned Locked Moved Troubleshooting
    magic mirro pirpir sensor
    31 Posts 8 Posters 12.4k Views 9 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.
    • S Offline
      sdetweil @elleclouds
      last edited by

      @elleclouds said in PIR sensor to turn monitor off. Nothing works :(:

      What am I doing wrong?

      please use the markup for code or config info

      mark the text, and hit the button above the editor </>

      Sam

      How to add modules

      learning how to use browser developers window for css changes

      E 1 Reply Last reply Reply Quote 1
      • E Offline
        elleclouds @sdetweil
        last edited by

        @sdetweil Did you change it for me, because it looks in the correct format? Any help with the code?

        S 1 Reply Last reply Reply Quote 0
        • S Offline
          sdetweil @elleclouds
          last edited by

          @elleclouds yes I changed it… know nothing about the module sorry

          Sam

          How to add modules

          learning how to use browser developers window for css changes

          S 1 Reply Last reply Reply Quote 1
          • S Offline
            sdetweil @sdetweil
            last edited by

            @sdetweil well, u have 1 more close brace } then u have opens {

            {
                    module: 'MMM-Screen-Powersave-Notification',
                    config: {
                        delay: 60,
                        hideInsteadShutoff:true,
                        }
                    }                  //  ---- what is that guy?
                }
            

            before u fix it run the config checker

            cd ~/magicMirror
            npm run config:check 
            

            so u can learn how to fix them

            Sam

            How to add modules

            learning how to use browser developers window for css changes

            1 Reply Last reply Reply Quote 1
            • uros76U Offline
              uros76
              last edited by uros76

              For those unsuccessfully trying to put the monitor to sleep and wake up with PIR, are you running MM on pi4 with Rapsberian?
              I never managed to get this combination to work. Instead I did succeed with Lubuntu on pi4.

              Currently I have working PIR on pi3 with Rapsberian. No issue with this one.
              Just the pi4 is so different and worse to configure sleep/wakeup.

              My magicmirror projects: https://forum.magicmirror.builders/post/79889, https://forum.magicmirror.builders/post/93241 and https://forum.magicmirror.builders/post/94586

              1 Reply Last reply Reply Quote 0
              • BKeyportB Offline
                BKeyport Module Developer
                last edited by

                Honestly, I would resort to an out-of-MagicMirror experience. I whipped up some python code using GPIOZero to replace MMM-Buttons, for instance…

                The "E" in "Javascript" stands for "Easy"

                1 Reply Last reply Reply Quote 0
                • E Offline
                  elleclouds @wishmaster270
                  last edited by

                  @wishmaster270 Can you help me out with this?

                  1 Reply Last reply Reply Quote 0
                  • R Offline
                    rafhtl
                    last edited by

                    I dont know if this is helpful but I use

                    /usr/bin/vcgencmd display_power 0
                    monitor off

                    /usr/bin/vcgencmd display_power 1

                    monitor on

                    works flawlessly
                    (ssh in pi and type the commands to try them)

                    r

                    E 1 Reply Last reply Reply Quote 0
                    • E Offline
                      elleclouds @rafhtl
                      last edited by

                      @rafhtl Can you give me more context on where to input this and where it should go?

                      1 Reply Last reply Reply Quote 0
                      • R Offline
                        rafhtl
                        last edited by

                        ok
                        if u are using MMM-PIR-Sensor
                        it should already be in the module
                        please try from ssh (you have to log in to the pi) and then type
                        /usr/bin/vcgencmd display_power 0
                        you should first try this to see if monitor responds to command
                        so first log in from a pc to your pi using putty
                        r

                        E 1 Reply Last reply Reply Quote 0
                        • 1
                        • 2
                        • 3
                        • 4
                        • 3 / 4
                        • 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