Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/fewieden/MMM-ping
Ping Module for MagicMirror²
https://github.com/fewieden/MMM-ping
magicmirror modal offline online ping voice-control
Last synced: 3 months ago
JSON representation
Ping Module for MagicMirror²
- Host: GitHub
- URL: https://github.com/fewieden/MMM-ping
- Owner: fewieden
- License: mit
- Created: 2016-07-26T15:23:41.000Z (over 8 years ago)
- Default Branch: master
- Last Pushed: 2023-07-18T22:04:04.000Z (over 1 year ago)
- Last Synced: 2024-06-29T10:33:06.814Z (5 months ago)
- Topics: magicmirror, modal, offline, online, ping, voice-control
- Language: JavaScript
- Homepage:
- Size: 210 KB
- Stars: 8
- Watchers: 3
- Forks: 6
- Open Issues: 3
-
Metadata Files:
- Readme: README.md
- Changelog: CHANGELOG.md
- Contributing: .github/CONTRIBUTING.md
- Funding: .github/FUNDING.yml
- License: LICENSE
Awesome Lists containing this project
- awesome-mmm - **MMM-Ping**
README
# MMM-ping [![GitHub license](https://img.shields.io/badge/license-MIT-blue.svg?style=flat)](https://raw.githubusercontent.com/fewieden/MMM-ping/master/LICENSE) [![Build Status](https://travis-ci.org/fewieden/MMM-ping.svg?branch=master)](https://travis-ci.org/fewieden/MMM-ping) [![Code Climate](https://codeclimate.com/github/fewieden/MMM-ping/badges/gpa.svg?style=flat)](https://codeclimate.com/github/fewieden/MMM-ping) [![Known Vulnerabilities](https://snyk.io/test/github/fewieden/mmm-ping/badge.svg)](https://snyk.io/test/github/fewieden/mmm-ping)
Ping Module for MagicMirror2
## Example
![](.github/example.png) ![](.github/example2.png)
## Dependencies
* An installation of [MagicMirror2](https://github.com/MichMich/MagicMirror)
* OPTIONAL: [Voice Control](https://github.com/fewieden/MMM-voice) and [MMM-Modal](https://github.com/fewieden/MMM-Modal)
* npm
* [ping](https://www.npmjs.com/package/ping)## Installation
* Clone this repo into `~/MagicMirror/modules` directory.
* Configure your `~/MagicMirror/config/config.js`:```js
{
module: 'MMM-ping',
position: 'bottom_right',
config: {
hosts: [
'www.github.com',
'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` | `5` | how often the module should ping the hosts in minutes |
| `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](https://github.com/fewieden/MMM-voice) and [MMM-Modal](https://github.com/fewieden/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.