National Hockey League Module for MagicMirror²
  • JavaScript 76.4%
  • Nunjucks 20.4%
  • Bru 2.3%
  • CSS 0.9%
Find a file
Repository files (latest commit first)
Filename Latest commit message Latest commit date
dependabot[bot] f74cd115d5
Bump js-yaml from 4.2.0 to 4.3.1 (#22)
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>&lt;&lt;</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="86e91b815b"><code>86e91b8</code></a>
4.3.1 released</li>
<li><a
href="c3cc4b0bb9"><code>c3cc4b0</code></a>
Backport quadratic complexity fix for !!omap</li>
<li><a
href="33d05b5d29"><code>33d05b5</code></a>
4.3.0 released</li>
<li><a
href="663bfab6db"><code>663bfab</code></a>
Drop demo publish, to not override new v5 one.</li>
<li><a
href="1cb8c7b94b"><code>1cb8c7b</code></a>
Add v4-legacy tag for publish</li>
<li><a
href="02f27afad5"><code>02f27af</code></a>
Restore umd builds back to es5</li>
<li><a
href="8be84edaf1"><code>8be84ed</code></a>
Fix es5 compatibility</li>
<li><a
href="59423c6f8c"><code>59423c6</code></a>
Replace <code>maxMergeSeqLength</code> option with
<code>maxTotalMergeKeys</code> (more robust). Ba...</li>
<li><a
href="6842ef6a02"><code>6842ef6</code></a>
doc polish</li>
<li>See full diff in <a
href="https://github.com/nodeca/js-yaml/compare/4.2.0...4.3.1">compare
view</a></li>
</ul>
</details>
<br />


[![Dependabot compatibility
score](https://dependabot-badges.githubapp.com/badges/compatibility_score?dependency-name=js-yaml&package-manager=npm_and_yarn&previous-version=4.2.0&new-version=4.3.1)](https://docs.github.com/en/github/managing-security-vulnerabilities/about-dependabot-security-updates#about-compatibility-scores)

Dependabot will resolve any conflicts with this PR as long as you don't
alter it yourself. You can also trigger a rebase manually by commenting
`@dependabot rebase`.

[//]: # (dependabot-automerge-start)
[//]: # (dependabot-automerge-end)

---

<details>
<summary>Dependabot commands and options</summary>
<br />

You can trigger Dependabot actions by commenting on this PR:
- `@dependabot rebase` will rebase this PR
- `@dependabot recreate` will recreate this PR, overwriting any edits
that have been made to it
- `@dependabot show <dependency name> ignore conditions` will show all
of the ignore conditions of the specified dependency
- `@dependabot ignore this major version` will close this PR and stop
Dependabot creating any more for this major version (unless you reopen
the PR or upgrade to it yourself)
- `@dependabot ignore this minor version` will close this PR and stop
Dependabot creating any more for this minor version (unless you reopen
the PR or upgrade to it yourself)
- `@dependabot ignore this dependency` will close this PR and stop
Dependabot creating any more for this dependency (unless you reopen the
PR or upgrade to it yourself)
You can disable automated security fix PRs for this repo from the
[Security Alerts
page](https://github.com/parnic/MMM-NHL/network/alerts).

</details>

Signed-off-by: dependabot[bot] <[email protected]>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2026-08-12 19:16:00 -05:00
.bruno Add Bruno requests 2025-12-02 18:22:26 -06:00
.github Review (#3) 2024-10-08 14:32:06 -05:00
templates v2.5.3 (#7) 2025-05-24 09:54:24 -05:00
translations v2.5.3 (#7) 2025-05-24 09:54:24 -05:00
.codeclimate.yml Review (#3) 2024-10-08 14:32:06 -05:00
.editorconfig add linter 2017-03-20 12:58:17 +01:00
.gitignore added jsdoc 2021-01-23 20:32:13 +01:00
.mdlrc updated config files 2021-01-17 11:00:11 +01:00
.prettierignore ignore bruno requests 2025-12-02 18:28:01 -06:00
.stylelintrc Review (#3) 2024-10-08 14:32:06 -05:00
CHANGELOG.md Prepare for release 2025-12-02 18:22:27 -06:00
eslint.config.mjs Review (#3) 2024-10-08 14:32:06 -05:00
jsdoc.json Review (#3) 2024-10-08 14:32:06 -05:00
LICENSE Initial commit 2016-10-09 20:02:30 +02:00
MMM-NHL.css fix property-no-vendor-prefix 2022-02-08 19:26:17 +01:00
MMM-NHL.js Review (#3) 2024-10-08 14:32:06 -05:00
node_helper.js v2.5.3 (#7) 2025-05-24 09:54:24 -05:00
package-lock.json Bump js-yaml from 4.2.0 to 4.3.1 (#22) 2026-08-12 19:16:00 -05:00
package.json Prepare for release 2025-12-02 18:22:27 -06:00
README.md Review (#3) 2024-10-08 14:32:06 -05:00

MMM-NHL GitHub license Build status Code Climate Known Vulnerabilities

National Hockey League module for MagicMirror².

Examples

past games in progress team focus no color playoffs

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.

config

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.