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

MMM-Pir toggling

Scheduled Pinned Locked Moved Solved Troubleshooting
22 Posts 3 Posters 1.2k Views 3 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 Online
    sdetweil @ttt126
    last edited by Oct 21, 2024, 12:18 PM

    @ttt126 best to ask the author

    Sam

    How to add modules

    learning how to use browser developers window for css changes

    1 Reply Last reply Reply Quote 0
    • T Offline
      ttt126
      last edited by Oct 21, 2024, 2:35 PM

      How can i do so?
      Is he actice on this forum?

      S 1 Reply Last reply Oct 21, 2024, 2:47 PM Reply Quote 0
      • S Online
        sdetweil @ttt126
        last edited by sdetweil Oct 21, 2024, 3:29 PM Oct 21, 2024, 2:47 PM

        @ttt126 generally youwould open an issue on the module githib page

        @bugsounet can you please add an issues tab to the module? so we can keep track of things like this without you having to troll the forum too…

        Sam

        How to add modules

        learning how to use browser developers window for css changes

        1 Reply Last reply Reply Quote 0
        • T Offline
          ttt126
          last edited by Oct 21, 2024, 3:24 PM

          Thanks for your answer. I don’t want to troll anything here.
          On Github I can make a pull request under mmm-pir. I think that’s not the point. I can’t find a new issue there.
          So here are my questions.

          S 1 Reply Last reply Oct 21, 2024, 3:30 PM Reply Quote 0
          • S Online
            sdetweil @ttt126
            last edited by Oct 21, 2024, 3:30 PM

            @ttt126 troll wasn’t indended for you. he is a busy guy. PIR is busted all over the place with bookworm.

            Sam

            How to add modules

            learning how to use browser developers window for css changes

            1 Reply Last reply Reply Quote 0
            • T Offline
              ttt126
              last edited by Oct 21, 2024, 3:47 PM

              Thanks, opened an issue here:

              https://github.com/KristjanESPERANTO/MagicMirror-3rd-Party-Modules/issues

              Will see

              B 1 Reply Last reply Oct 21, 2024, 4:05 PM Reply Quote 0
              • B Offline
                bugsounet Banned @ttt126
                last edited by Oct 21, 2024, 4:05 PM

                Hi,

                MMM-Pir v2 is under coding
                Unfortunately, it is not possible to use mode 6 and 7 at the same time (same GPIO)

                This module send USER_PRESENCE notification with trueor false payload (it’s the screen state)
                You can trigger it with this module MMM-NotificationTrigger and exec a personal script for this

                Note:

                • python RPi.GPIO will be deleted (in next release) because there is a compatibility problem with pi5 and with bookworm too.
                • I will try to recode it with gpiod library for both compatibility
                1 Reply Last reply Reply Quote 0
                • T Offline
                  ttt126
                  last edited by Oct 21, 2024, 5:15 PM

                  Would it be possible to create a mode in which a relay is switched when detected on the PIR and after the new timer has expired.
                  So an on off toggle, so to speak. This would make it possible to switch any monitor using the Stanfby button. HDMI on/off would then not be necessary, simply a relay on the monitor button and all monitors could be used.
                  Unfortunately, I’m not that good at cascading the module.
                  Thank you for your great work

                  1 Reply Last reply Reply Quote 0
                  • T Offline
                    ttt126
                    last edited by Oct 22, 2024, 3:04 PM

                    Thank you very much, I spent the whole day trying to understand notification triggers and producing a config, unfortunately without success.
                    Maybe you can help me out. how do I do the config so that the trigger can be taken over by mmmpir? I’ve already created a small py script with a gpio pin that goes on and off, it’s in the root directory.
                    But I just can’t get the execut function to be implemented.

                    {
                    module: “MMM-NotificationTrigger”,
                    config: {
                    triggers:[
                    {
                    trigger: “USER_PRESENCE”,
                    fires: [
                    {
                    exec: “/neu1.py”
                    }
                    ],
                    },
                    ]
                    }
                    },

                    S 1 Reply Last reply Oct 22, 2024, 3:07 PM Reply Quote 0
                    • S Online
                      sdetweil @ttt126
                      last edited by Oct 22, 2024, 3:07 PM

                      @ttt126 said in MMM-Pir toggling:

                      exec: “/neu1.py”

                      that means in the root system folder’if you meant YOUR home folder
                      that would be , replace username with really logged on user for home folder

                      /home/username/neu1.py

                      there may have been messages posted to the MM startup output

                      Sam

                      How to add modules

                      learning how to use browser developers window for css changes

                      1 Reply Last reply Reply Quote 0
                      • 1
                      • 2
                      • 3
                      • 1 / 3
                      1 / 3
                      • First post
                        6/22
                        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