Code Monkey home page Code Monkey logo

mmm-ping's Introduction

MMM-ping GitHub license Build Status Code Climate Known Vulnerabilities

Ping Module for MagicMirror2

Example

Dependencies

Installation

  • Clone this repo into ~/MagicMirror/modules directory.
  • Configure your ~/MagicMirror/config/config.js:
{
    module: 'MMM-ping',
    position: 'bottom_right',
    config: {
        hosts: [
            // use host/IP only
            'www.github.com',
            // or specify a custom label for host/IP
            {
                label: 'MagicMirror Forums',
                host: 'forum.magicmirror.builders'
            }
        ]
    }
}
  • Run command npm install --production in ~/MagicMirror/modules/MMM-ping directory.

Config Options

Option Default Description
colored false show badge in color or not
display 'both' what should be displayed 'online', 'offline' or 'both'
hosts [] addresses to ping
updateInterval 300 how often the module should ping the hosts in seconds
font 'medium' font size 'xsmall', 'small', 'medium', 'large' or 'xlarge'
transitionTime 300 Time (in milliseconds) the transition for a new update in the DOM should take.

OPTIONAL: Voice Control and Modal

This module supports voice control by MMM-voice and MMM-Modal. In order to use this feature, it's required to install the voice and modal modules. There are no extra config options for voice control and modals needed.

Mode

The voice control mode for this module is PING

List of all Voice Commands

  • OPEN HELP -> Shows the information from the readme here with mode and all commands.
  • CLOSE HELP -> Hides the help information.
  • SHOW ALL HOSTS -> Shows a list of all hosts with online state online and offline.
  • HIDE HOSTS -> Hide the list.

Developer

  • npm run lint - Lints JS and CSS files.
  • npm run docs - Generates documentation.

mmm-ping's People

Contributors

fewieden avatar angeldeejay avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.