EXT-Alert is a plugins for displaying any warning, information or error on your screen
This module an Extented of all
EXT modules
It's really conseilled to install it !
Clone the module into your MagicMirror module folder and execute npm intall
in the module's directory.
cd ~/MagicMirror/modules
git clone https://github.com/bugsounet/EXT-Alert
cd EXT-Alert
npm install
insert your configuration in the config.js file of MagicMirror.
{
module: 'EXT-Alert',
config: {
debug: false,
style: 1,
ignore: []
}
},
Option Description Type Default debug enable or not debug mode Boolean false style displayer style Number 1 ignore Name of modules to displaying anything Array of String []
This module is designed to replace the default alert module !
Information sample:
Warning sample:
Error sample:
Information sample:
Warning sample:
Error sample:
EXT_ALERT
: for controling any messages to send on the screenEXT_ALERT
type
: type of alert, it can be notification
, warning
or error
message
: message to sendtimer
: display time on the screen in ms (5000 ms by default) [Optional]sender
: name of the sender (by default the module name sender) [Optional]icon
: the path of your personal icon [Optional]sound
: the path of your personal sound [Optional]icon
and sound
pathThe path must be from the
modules
directory of MagicMirror
Sample:modules/EXT-Alert/resources/information.gif
this.sendNotification("EXT_ALERT", {
type: "information",
message: "this a sample of notification displayer",
sender: "@bugsounet"
})
It will display with animation in/out:
Just use add sound: "none"
in your EXT_ALERT notification
sample:
this.sendNotification("EXT_ALERT", {
type: "information",
message: "this a sample of notification displayer",
sender: "@bugsounet",
sound: "none"
})
cd ~/MagicMirror/modules/EXT-Alert
npm run update