Read the statement by Michael Teeuw here.
Start/Stop a pm2 script with Notifications of a module?
-
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 -
@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.
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