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

Start/Stop a pm2 script with Notifications of a module?

Scheduled Pinned Locked Moved Troubleshooting
2 Posts 2 Posters 353 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.
  • T Offline
    thetobyde
    last edited by Jun 11, 2020, 3:36 PM

    Hey guys :) I have a MM with a Pi Cam and two modules, that use the Cam. One Face-Rec-Module and a Selfie-Module.
    The cam cannot be used in two processes, right? The Face Reg Module does have a pm2 .sh script, that activates the Cam and uses it for all time. I was able to stop this pm2 thing to make a selfie and activate it after the Selfieshot. But is it possible to stop the pm2 face-rec.sh with button and MMM-OnScreenMenu? I could´t find a way to start/stop the pm2 with a notificatiion or something :)
    THX for help guys! :)
    Toby

    B 1 Reply Last reply Jun 12, 2020, 10:13 PM Reply Quote 0
    • B Offline
      bhepler Module Developer @thetobyde
      last edited by Jun 12, 2020, 10:13 PM

      @thetobyde - I think you can accomplish this with MMM-NotificationTrigger. That module lets you process notification messages and execute commands in response. It should be pretty easy to execute pm2 commands with it.

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