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

Wake MM with pir Module from the shell...

Scheduled Pinned Locked Moved General Discussion
3 Posts 3 Posters 1.4k 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 Dec 30, 2017, 12:30 AM

    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
    • S Offline
      saljoke
      last edited by Jan 17, 2018, 12:05 AM

      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 Jan 17, 2018, 12:35 AM Jan 17, 2018, 12:34 AM

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