Read the statement by Michael Teeuw here.
[MMM-TouchButton] A module to add clickable buttons to send notifications or run commands
-
Description:
If you control your mirror by mouse or with a touch panel and want to add buttons to send notifications or run commands this is your module.
The module can be added at different locations with different configurations and supports to change the classes and/or change the icons based on the output/return code of the called commands since version 0.0.2.Screenshots:
Download:
Download
[card:Tom-Hirschberger/MMM-TouchButton]
Version 0.0.8
- bumped version of jsonpath-plus library to 10.1.0
Version 0.0.7
- bumped jsonpath-plus library to version 10.0.1
Version 0.0.6
- classes now will be added to the title element, too
- fixed string handling in conditions
- it is possible to send notifications without payload now
Version 0.0.5
- fixed not running actions of Iconify icons
- added support to validate the payload of notifications as condition
- added support to parse the value of conditions with jsonpath-plus
Version 0.0.4
- added support of Iconify icons
Version 0.0.3
- fixed a bug which caused a black screen if no additional classes had been set
- prefixed all CSS configuration with the modules main class
Version 0.0.2
- configure multiple instances of the module at different positions with different configuration
- add additional classes to the elements
- hide/show buttons based on the current active profile
- change the icon or/and classes the the buttons based on the output and/or return code of the called commands
Version 0.0.1
- Add as much buttons as you like. Each with a unique css class and an Font Awesome (The build in version of MagicMirror, currently 4.7) icon assigned.
- If a button gets pressed either a command (with arguments) can be executed on the command line or an notification (with payload) can be send.
-
Thank you very much for this module.
These buttons finally behave like expected. I already tested MMM-Smarttouch and MMM-OnScreenMenu but never got it working in satisfying way with my infrared frame.Grüße aus Stuttgart
-
@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