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 322 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.
    • thetobydeT Offline
      thetobyde
      last edited by

      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

      bheplerB 1 Reply Last reply Reply Quote 0
      • bheplerB Offline
        bhepler Module Developer @thetobyde
        last edited by

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