Read the statement by Michael Teeuw here.
[MMM-TouchButton] A module to add clickable buttons to send notifications or run commands
-
@Sierra0815 Great to hear that. I developed the module a view years ago to provide buttons to toggle some modules (like snowfall) and to realize user presence notifications via remote connection.
-
@wishmaster270 I am fairly new to MagicMirror, I have a touch screen without a keyboard, but I am unsure how to set the button up for it just to exit the MagicMirror and not reboot the whole thing? Could you help?
-
@BreanneDolphin how is MagicMirror started?
npm start
send a ctrl-q
to the MM UIor pm2 on boot
pm2’s JOB is to keep the app running… if it ends, pm2 will restart it…
so then you will have to issue a commandpm2 stop x
where x is the name or number on the line for the app you want to stop
from the output ofpm2 status
like this
┌────┬─────────────────────┬─────────────┬─────────┬─────────┬──────────┬────────┬──────┬───────────┬──────────┬──────────┬──────────┬──────────┐ │ id │ name │ namespace │ version │ mode │ pid │ uptime │ ↺ │ status │ cpu │ mem │ user │ watching │ ├────┼─────────────────────┼─────────────┼─────────┼─────────┼──────────┼────────┼──────┼───────────┼──────────┼──────────┼──────────┼──────────┤ │ 1 │ MagicMirror │ default │ 2.15.0 │ fork │ N/A │ 0 │ 27 │ stopped │ 0% │ 0b │ sam │ disabled │ │ 7 │ MagicMirror1 │ default │ 2.26.0 │ fork │ 0 │ 0 │ 9 │ stopped │ 0% │ 0b │ sam │ disabled │ │ 2 │ startspot │ default │ N/A │ fork │ 7510 │ 20D │ 418 │ online │ 0% │ 2.0mb │ sam │ disabled │ └────┴─────────────────────┴─────────────┴─────────┴─────────┴──────────┴────────┴──────┴───────────┴──────────┴──────────┴──────────┴──────────┘
so on line id =1 or name = MagicMirror
-
@sdetweil it’s just started with npm start
-
@BreanneDolphin so, then you have to run a command that can send a keystrokes to mm.
see xdotool