Read the statement by Michael Teeuw here.
How to use the Alert module?
-
Hello,
Module: https://docs.magicmirror.builders/modules/alert.html
Is it possible to show an alert via notification?
I can send notifications with for example MMM-Buttons.
Is there an example anywhere?Thank you :)
-
@keineAhnung123 said in How to use the Alert module?:
MMM-Buttons
you could do something like this below. I did not tested it my self and it based on documentation of both MMM-Buttons and Alert module.
{ pin: 24, name: "alert", longPress: { title: "Show Alert", message: "Keep pressed for 3 seconds to show alert", imageFA: "alert image here", notification: "SHOW_ALERT", payload: { type: 'notification', title : 'Title of notification', message : 'Message text here', timer : 3000 } }, shortPress: undefined } -
@ashishtank
Thanks.
That worked fine :) -
@keineAhnung123 My pleasure.
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