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.

README.md 1.7KB

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