mirror of
https://github.com/parnic/MMM-NHL.git
synced 2026-08-31 00:02:31 +00:00
National Hockey League Module for MagicMirror²
- JavaScript 76.4%
- Nunjucks 20.4%
- Bru 2.3%
- CSS 0.9%
| Filename | Latest commit message | Latest commit date |
|---|---|---|
Bumps [js-yaml](https://github.com/nodeca/js-yaml) from 4.2.0 to 4.3.1. <details> <summary>Changelog</summary> <p><em>Sourced from <a href="https://github.com/nodeca/js-yaml/blob/4.3.1/CHANGELOG.md">js-yaml's changelog</a>.</em></p> <blockquote> <h2>4.3.1 - 2026-07-31</h2> <h3>Security</h3> <ul> <li>[backport] Remove quadratic complexity from <code>!!omap</code> duplicate key detection.</li> </ul> <h2>4.3.0 - 2026-06-27</h2> <h3>Added</h3> <ul> <li>[backport] Added <code>maxTotalMergeKeys</code> (10000) loader option to limit the total number of keys processed by YAML merge (<code><<</code>) across one <code>load()</code> / <code>loadAll()</code> call.</li> </ul> <h3>Fixed</h3> <ul> <li>Restore umd builds back to es5.</li> </ul> <h3>Removed</h3> <ul> <li>[backport] <code>maxMergeSeqLength</code> replaced with <code>maxTotalMergeKeys</code> for limiting YAML merge processing.</li> </ul> </blockquote> </details> <details> <summary>Commits</summary> <ul> <li><a href=" |
||
| .bruno | ||
| .github | ||
| templates | ||
| translations | ||
| .codeclimate.yml | ||
| .editorconfig | ||
| .gitignore | ||
| .mdlrc | ||
| .prettierignore | ||
| .stylelintrc | ||
| CHANGELOG.md | ||
| eslint.config.mjs | ||
| jsdoc.json | ||
| LICENSE | ||
| MMM-NHL.css | ||
| MMM-NHL.js | ||
| node_helper.js | ||
| package-lock.json | ||
| package.json | ||
| README.md | ||
MMM-NHL

National Hockey League module for MagicMirror².
Examples
Dependencies
- An installation of MagicMirror².
Installation
Just clone the module into your modules directory:
cd ~/MagicMirror/modules
git clone https://github.com/parnic/MMM-NHL
Update
Just enter the module's directory and pull the update:
cd ~/MagicMirror/modules/MMM-NHL
git pull
Configuration
- Configure your
~/MagicMirror/config/config.js:
{
module: 'MMM-NHL',
position: 'top_right',
config: {
// Add your config options here, which have a different value than default.
}
},
Config Options
| Option | Default | Description |
|---|---|---|
colored |
false |
Remove black/white filter of logos. |
focus_on |
false |
Display only matches with teams of this array e.g. ['VAN', 'MTL', 'BOS']. |
matches |
6 |
Max number of matches displaying simultaneously. |
rotateInterval |
20000 (20 secs) |
How often should be rotated the matches in the list. |
reloadInterval |
1800000 (30 mins) |
How often should the data be fetched. |
daysInPast |
1 |
How many days should a game be displayed after it is finished. |
daysAhead |
7 |
How many days should a game be displayed before it starts. |
liveReloadInterval |
60000 (1 min) |
How often should the data be fetched during a live game. |
showNames |
true |
Should team names be displayed? |
showLogos |
true |
Should team logos be displayed? |
showPlayoffSeries |
true |
Should playoff series be displayed (if in playoffs)? |
rollOver |
false |
Displays today's games and based on game status also yesterdays games or tomorrows games. Automatically overrides daysInPast and daysAhead to 1. |
Global config
| 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.
Developer
npm i- Install devDependecies.npm run lint- Lint check JS and CSS files.npm run lint:fix- Lint fix JS and CSS files.npm run docs- Generates documentation.





