Skip to content
No description, website, or topics provided.
JavaScript
Branch: master
Clone or download
Mihai Rinzis
Latest commit 3f3696e Aug 12, 2019
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
LICENSE Initial commit Oct 13, 2018
MMM-wiki.js add 'did you know? category' Aug 12, 2019
MMM-wiki.png add module and readme Oct 13, 2018
README.md add 'did you know? category' Aug 12, 2019

README.md

A MagicMirror module that displays random Wikipedia snippets. It's a trimmed down version of Qwiki. The module uses the free Wikipedia api. Screenshot

Using the module

To use this module,

  • Clone the repo in the modules directory:
git clone https://github.com/mihairinzis/MMM-wiki
  • Add it to the modules array in the config/config.js file.

copy this to your config.js

"modules": [{
    module: "MMM-wiki",
    position: "bottom",
    config: {
        updateInterval: 30000,
        language: "en",
        characterLimit: 500,
        category: "DidYouKnow",
        badTitles: [
            "Graphical",
            "timeline",
            "List"
        ],
        badContents: [
            "This article",
            "See also",
            "redirects here",
            "The following outline",
            "may refer to"
        ],
    }
}]

Configuration options

The following properties can be configured:

Option Description
updateInterval How often do the articles change? (Milliseconds) Default value: 30000.
language The language of the articles. Default value: en.
characterLimit The maximum number of characters that will be displayed. Default value: 500.
category If category is set to "DidYouKnow" then the module will show random 'did you know?' items from Wikipedia. Otherwise it will show random articles. Currently did you know? only works for the English language. Default value: undefined.
badTitles Articles with the given keywords in the title will be omitted. Default value: [Graphical, timeline, List].
badContents Articles with the given keywords in the content will be omitted. Default value: [This article, See also, redirects here, The following outline, may refer to].
You can’t perform that action at this time.