No Description
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
rune 8617c445eb Edit text 11 months ago
.gitignore Initial commit 11 months ago
.npmignore Initial commit 11 months ago
LICENSE Update 'LICENSE' 11 months ago
MMM-ping2.js Removed unused code 11 months ago
README.md Edit text 11 months ago
mmm-ping2.png Added screenshot 11 months ago
node_helper.js changes 11 months ago
package.json Initial commit 11 months ago

README.md

MMM-ping2 GitHub license

Ping Module for MagicMirror2 Based on MMM-ping by fewieden

Dependencies

Installation

  1. Clone this repo into ~/MagicMirror/modules directory.
  2. 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'
                    }
            ]
        }
    }
    
  3. Run command npm install --productive in ~/MagicMirror/modules/MMM-ping2 directory.

  4. Run command sudo chmod u+s /bin/ping.

Config Options

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