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.

    MMM-Pir alternative for bookworm

    Scheduled Pinned Locked Moved System
    8 Posts 2 Posters 1.8k 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.
    • M Offline
      Muffex
      last edited by

      Hello everyone,

      I’ve been using MagicMirror for years and could almost always resolve my problems using the search functions.

      Currently I’m struggling to find a new module to use my PIR to turn the monitor on/off.

      The MMM-Pir module of bugsounet seems to be gone: https://github.com/bugsounet/MMM-Pir and the user @bugsoutnet is banned in MM forum.

      I’m on bookworm and have been using MMM-PIR-Sensor-Lite (https://github.com/grenagit/MMM-PIR-Sensor-Lite) in the past.

      Any help is highly appreciated.

      regards

      S M 2 Replies Last reply Reply Quote 0
      • S Do not disturb
        sdetweil @Muffex
        last edited by sdetweil

        @Muffex a couple other pir modules were added to the 3rd party list

        also see
        https://forum.magicmirror.builders/topic/19362/googleassistant-and-related-modules

        Sam

        How to add modules

        learning how to use browser developers window for css changes

        1 Reply Last reply Reply Quote 1
        • M Offline
          Muffex @Muffex
          last edited by

          Hello again.

          Thanks @sdetweil :)

          I’m now using MMM-Universal-Pir from here: https://gitlab.com/khassel/MMM-Universal-Pir

          This is my config to turn the screen (connected via HDMI) on/off :

          module: "MMM-Universal-Pir",
                          hiddenOnStartup: true,
                          config: {
                                  gpioCommand: "gpiomon -r -b gpiochip0 4",
                                  onCommand: "vcgencmd display_power 1",
                                  offCommand: "vcgencmd display_power 0",
                                  deactivateDelay: 60 * 1000,
                          }
          

          regards
          Muffex

          M 1 Reply Last reply Reply Quote 1
          • M Offline
            Muffex @Muffex
            last edited by

            After switching to “dtoverlay=vc4-kms-v3d” in /boot/firmware/config.txt the commands did not work anymore.

            This is my current config:

            module: "MMM-Universal-Pir",
                            hiddenOnStartup: true,
                            config: {
                                    gpioCommand: "gpiomon -r -b gpiochip0 4",
                                    onCommand: "echo on | sudo tee /sys/class/drm/card1-HDMI-A-1/status",
                                    offCommand: "echo off | sudo tee /sys/class/drm/card1-HDMI-A-1/status",                        
                                    deactivateDelay: 60 * 1000,
                            }
            
            S 2 Replies Last reply Reply Quote 0
            • S Do not disturb
              sdetweil @Muffex
              last edited by

              @Muffex yes the commands change. don’t know what to.

              Sam

              How to add modules

              learning how to use browser developers window for css changes

              1 Reply Last reply Reply Quote 0
              • S Do not disturb
                sdetweil @Muffex
                last edited by

                @Muffex do those work,

                Sam

                How to add modules

                learning how to use browser developers window for css changes

                M 1 Reply Last reply Reply Quote 0
                • M Offline
                  Muffex @sdetweil
                  last edited by

                  @sdetweil said in MMM-Pir alternative for bookworm:

                  @Muffex do those work,

                  Hey @sdetweil,

                  yes, now everything works as inteded. :)

                  I was just thinking of others who may read this thread at a later date. Since bookworm is in the title I didn’t want to mislead them with the old vcgencmd which does not work with wayland. (At least in my case it didn’t.)

                  regards

                  S 1 Reply Last reply Reply Quote 0
                  • S Do not disturb
                    sdetweil @Muffex
                    last edited by

                    @Muffex awesome! your prior post wasn’t clear to me

                    Sam

                    How to add modules

                    learning how to use browser developers window for css changes

                    1 Reply Last reply Reply Quote 0

                    Hello! It looks like you're interested in this conversation, but you don't have an account yet.

                    Getting fed up of having to scroll through the same posts each visit? When you register for an account, you'll always come back to exactly where you were before, and choose to be notified of new replies (either via email, or push notification). You'll also be able to save bookmarks and upvote posts to show your appreciation to other community members.

                    With your input, this post could be even better 💗

                    Register Login
                    • 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