Olympic Games Module for MagicMirror²
- An installation of MagicMirror²
- npm
- node-fetch
- lodash
-
Clone this repo into
~/MagicMirror/modulesdirectory. -
Configure your
~/MagicMirror/config/config.js:{ module: 'MMM-OlympicGames', position: 'top_right', config: { // all your config options, which are different than their default values } } -
Run command
npm install --productionin~/MagicMirror/modules/MMM-OlympicGamesdirectory.
| Option | Default | Description |
|---|---|---|
locale |
undefined |
By default it is using your system settings. You can specify the locale in the global MagicMirror² config. Possible values are for e.g.: 'en-US' or 'de-DE'. |
To set a global config you have to set the value in your config.js file inside the MagicMirror² project.
| Option | Default | Description |
|---|---|---|
highlight |
false |
Which country (alpha-2 code) should be highlighted. E.g. 'DE' for Germany. You can find all alpha-2 codes here. |
maxRows |
10 |
How many countries should be displayed. Will be overwritten by config option countryList. |
title |
'Paris Summer Games 2024' |
The title above the medal table. |
reloadInterval |
1800000 (30 mins) |
How often should the data be fetched. |
provider |
'nbc' |
Specify the data source. Possible options: 'nbc' and 'bloomberg'. |
countryList |
false |
Specify a list of country codes to display (alpha-2 code), e.g. ['NO', 'AU', 'US', 'DE', 'FR', 'CA']. Config option maxRows will be automatically overwritten accordingly. |
npm run lint- Lints JS and CSS files.


