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.

    Wake MM with pir Module from the shell...

    Scheduled Pinned Locked Moved General Discussion
    3 Posts 3 Posters 1.6k 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.
    • K Offline
      kiki99
      last edited by

      Hi Forum,
      i have the Magic Mirror running with the Module “MMM-PIR-Sensor”. Until here no problem.
      In the Background there is running the alexa-avs-sample app. Until here even no problem ;)
      But no to the Problem:
      Alexa heres me via a usb Mikro, so this works at every time. But: Alexa speaks via hdmi and the monitor. So when the pir module puts the monitor off i can’t here anything of course.

      The alexa wakeword engine runs via a shell console. I can see actions there, every time the wakeword is recognized. I’ve send a request to the alxa Furum, how to send any notification in this moment. I’m shure there is a way ;)

      And now the real Problem: What command i have to send at this moment? The command has to put the monitor on and to restart the timer in the pir module maybe via a command to the core module? Or can i simulate an Hardware action from the pir Sensor? Only to put the Moniror on would not be enough. The Pir-Module has to restart the timer, so that the Moniros doesn’t run until anyone stands in front of the mirror.

      Many thanks for every Tip :)

      best Regards.

      1 Reply Last reply Reply Quote 0
      • saljokeS Offline
        saljoke
        last edited by

        Hello
        I think one solution is to hide all modules. Don’t turn off HDMI monitor, your audio on.
        link
        Anyway I don’t know how to turn on PIR from remote shell.

        1 Reply Last reply Reply Quote 0
        • N Offline
          ninjabreadman
          last edited by ninjabreadman

          Hi @kiki99:

          You can send the SCREEN_WAKEUP notification to MMM-PIR-Sensor via MMM-Remote-Control (some details how to structure the GET request here): https://forum.magicmirror.builders/topic/6106/use-mmm-buttons-to-hide-show-modules).

          If you can get the Alexa wakeword to send the notification, it should wake the monitor as though you triggered the PIR.

          Problem with config or JavaScript? Copy/paste it into JSHint.
          Check out the detailed walkthroughs on install, config, modules, etc.

          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