Port Checker Module for MagicMirror2 Based on MMM-Ping(https://github.com/fewieden/MMM-ping) by fewieden
- An installation of MagicMirror2
- npm
- tcp-ping
-
Clone this repo into
~/MagicMirror/modules
directory. -
Configure your
~/MagicMirror/config/config.js
:{ module: 'MMM-portcheck', position: 'bottom_right', config: { hosts: [ ['www.github.com','443','GIT'], ['magicmirror.builders','443','Magic Mirror'] ], font: 'small', updateInterval: 5, colored: true, display: 'both', alert: true, alertTime: 15, textAlign: 'left' } },
-
Run command
npm install
in~/MagicMirror/modules/MMM-portcheck
directory.
Option | Default | Description |
---|---|---|
colored |
false |
show badge in color or not |
display |
'both' |
what should be displayed 'online' , 'offline' or 'both' |
hosts |
[['www.github.com','443','GIT'],['magicmirror.builders','443','Magic Mirror']] |
['hostname','port','name'] |
updateInterval |
5 |
how often the module should ping the hosts in minutes |
font |
'medium' |
font size 'xsmall' , 'small' , 'medium' , 'large' or 'xlarge' |
alert |
true |
show an alert message when at least one host don't response |
alertTime |
15 |
time to show the alert message, in seconds |
textAlign |
'left' |
text align on the container |