|
2 years ago | |
---|---|---|
.gitignore | 3 years ago | |
.npmignore | 3 years ago | |
LICENSE | 3 years ago | |
MMM-ping2.js | 2 years ago | |
README.md | 2 years ago | |
mmm-ping2.png | 3 years ago | |
node_helper.js | 3 years ago | |
package-lock.json | 2 years ago | |
package.json | 3 years ago |
Ping Module for MagicMirror2 Based on MMM-ping by fewieden
Clone this repo into ~/MagicMirror/modules
directory.
Configure your ~/MagicMirror/config/config.js
:
{
module: 'MMM-ping2',
position: 'bottom_right',
config: {
hosts: [
{
uri: 'github.com',
name: 'GitHub'
},
{
uri: '192.168.1.200',
name: 'The server',
color 'blue'
}
]
}
}
Run command npm install --production
in ~/MagicMirror/modules/MMM-ping2
directory.
Run command sudo chmod u+s /bin/ping
.
Option | Default | Description |
---|---|---|
display |
'both' | what should be displayed 'online', 'offline' or 'both' |
hosts |
[] | an array of addresses to ping e.g. { uri: 'gitlab.no', name: 'gitLab', color: '#B23A73'} uri can be either IP address or a FQDN The color is optional. If no color is given, the default (white) will be used. |
updateInterval |
5 | how often the module should ping the hosts in minutes |
size |
'24px' | font size in px or pt |