Skip to content
Magic Mirror Module that displays Chuck Norris Facts from the public API https://api.chucknorris.io/
JavaScript CSS
Branch: master
Clone or download
Latest commit ba68b08 Nov 11, 2018

README.md

MMM-Chuck-Norris

MMM-Chuck-Norris is a module for the MagicMirror².

Description

Magic Mirror Module that displays Chuck Norris Facts from the free public API Chuck Norris API that requires no API key. This project is my first module based on the MagicMirror Template and my project is completed.

Installation

To install this module simply clone this repository into your modules folder and run npm install inside of MMM-Chuck-Norris once that has completed run grunt. Then add the config to your config/config.js file by entering this in the terminal nano ~/MagicMirror/config/config.js. Then run npm start in the root and you will start to see Chuck Norris Facts every 20 seconds (default). To update from the module's folder simply enter git pull origin master and restart MagicMirror.

TODO: add a config variable to change the time between new facts.

Using the module

requiresVersionOfMagicMirror: "2.1.0"

To use this module, add the following configuration block to the modules array in the config/config.js file:

var config = {
    modules: [
        {
            module: "MMM-Chuck-Norris",
            position: "bottom_bar",
            header: "Chuck Norris Facts"
        }
    ]
}

Configuration options

Option Description
header Can be changed to any string or left blank: ' '

alt text

You can’t perform that action at this time.