mirror of
https://github.com/parnic/MMM-NHL.git
synced 2026-11-30 00:20:48 +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 [fast-uri](https://github.com/fastify/fast-uri) from 3.1.7 to 3.1.9. <details> <summary>Release notes</summary> <p><em>Sourced from <a href="https://github.com/fastify/fast-uri/releases">fast-uri's releases</a>.</em></p> <blockquote> <h2>v3.1.9</h2> <h2>Security</h2> <p>This security release fixes four URI parsing and normalization vulnerabilities in fast-uri 3.x. Applications that process untrusted URI input should upgrade to v3.1.9.</p> <ul> <li><strong>Medium — URI scheme spoofing through percent-encoded schemes</strong> (<a href="https://github.com/fastify/fast-uri/security/advisories/GHSA-w74x-v6f9-j3xg">GHSA-w74x-v6f9-j3xg</a>, CVE-2026-110306): percent-encoded scheme input is now rejected instead of being decoded into a live scheme.</li> <li><strong>Medium — Host confusion during domain-host canonicalization</strong> (<a href="https://github.com/fastify/fast-uri/security/advisories/GHSA-wjr9-j795-jxcr">GHSA-wjr9-j795-jxcr</a>, CVE-2026-110180): malformed domain hosts containing ambiguous delimiters or stripped control characters are now rejected instead of being silently rewritten.</li> <li><strong>Low — Incorrect relative-reference normalization</strong> (<a href="https://github.com/fastify/fast-uri/security/advisories/GHSA-xhq7-xmqj-769h">GHSA-xhq7-xmqj-769h</a>, CVE-2026-110095): dot-segment removal now preserves the resolution semantics of relative references.</li> <li><strong>Low — Scheme injection in suffix references</strong> (<a href="https://github.com/fastify/fast-uri/security/advisories/GHSA-333x-w4r6-6crp">GHSA-333x-w4r6-6crp</a>, CVE-2026-110725): first-segment colons in path-only suffix references are now escaped so the output is not reparsed as a scheme.</li> </ul> <p>Upgrade with:</p> <pre lang="sh"><code>npm install [email protected] </code></pre> <p>Thanks to <a href="https://github.com/zekth"><code>@zekth</code></a> for reporting the scheme, host, and relative-reference issues, and to <a href="https://github.com/UlisesGascon"><code>@UlisesGascon</code></a> for finding the suffix-reference issue and reviewing the remediations.</p> <h2>What's Changed</h2> <ul> <li>ci: enable trusted publishing releases (v3.x) by <a href="https://github.com/mcollina"><code>@mcollina</code></a> in <a href="https://redirect.github.com/fastify/fast-uri/pull/229">fastify/fast-uri#229</a></li> </ul> <p><strong>Full Changelog</strong>: <a href="https://github.com/fastify/fast-uri/compare/v3.1.8...v3.1.9">https://github.com/fastify/fast-uri/compare/v3.1.8...v3.1.9</a></p> <h2>v3.1.8</h2> <h2>⚠️ Security Warning</h2> <p>This security release fixes the following medium-severity security advisory:</p> <ul> <li><a href="https://github.com/fastify/fast-uri/security/advisories/GHSA-hrr3-gc8f-f4qj">GHSA-hrr3-gc8f-f4qj</a> — inconsistent host case normalization via percent-encoded octets</li> </ul> <p>Users of the v3.x release line should upgrade to v3.1.8.</p> <p><strong>Full Changelog</strong>: <a href="https://github.com/fastify/fast-uri/compare/v3.1.7...v3.1.8">https://github.com/fastify/fast-uri/compare/v3.1.7...v3.1.8</a></p> </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.





