mirror of
https://github.com/parnic/MMM-NHL.git
synced 2026-07-16 15:40:34 -05: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.1.1 to 4.2.0. <details> <summary>Changelog</summary> <p><em>Sourced from <a href="https://github.com/nodeca/js-yaml/blob/master/CHANGELOG.md">js-yaml's changelog</a>.</em></p> <blockquote> <h2>[4.2.0] - 2026-06-01</h2> <h3>Added</h3> <ul> <li>Added <code>docs/safety.md</code> with notes about processing untrusted YAML.</li> <li>Added <code>maxDepth</code> (100) loader option. Not a problem, but gives a better exception instead of RangeError on stack overflow.</li> <li>Added <code>maxMergeSeqLength</code> (20) loader option. Not a problem after <code>merge</code> fix, but an additional restriction for safety.</li> <li>Added sourcemaps to <code>dist/</code> builds.</li> </ul> <h3>Changed</h3> <ul> <li>Stop resolving numbers with underscores as numeric scalars, <a href="https://redirect.github.com/nodeca/js-yaml/issues/627">#627</a>.</li> <li>Switched dev toolchains to Vite / neostandard.</li> <li>Updated demo.</li> <li>Reorganized tests.</li> <li><code>dist/</code> files are no longer kept in the repository.</li> </ul> <h3>Fixed</h3> <ul> <li>Fix parsing of properties on the first implicit block mapping key, <a href="https://redirect.github.com/nodeca/js-yaml/issues/62">#62</a>.</li> <li>Fix trailing whitespace handling when folding flow scalar lines, <a href="https://redirect.github.com/nodeca/js-yaml/issues/307">#307</a>.</li> <li>Reject top-level block scalars without content indentation, <a href="https://redirect.github.com/nodeca/js-yaml/issues/280">#280</a>.</li> <li>Ensure numbers survive round-trip, <a href="https://redirect.github.com/nodeca/js-yaml/issues/737">#737</a>.</li> <li>Fix test coverage for issue <a href="https://redirect.github.com/nodeca/js-yaml/issues/221">#221</a>.</li> <li>Fix flow scalar trailing whitespace folding, <a href="https://redirect.github.com/nodeca/js-yaml/issues/307">#307</a>.</li> <li>Fix digits in YAML named tag handles.</li> </ul> <h3>Security</h3> <ul> <li>Fix potential DoS via quadratic complexity in merge - deduplicate repeated elements (makes sense for malformed files > 10K).</li> </ul> <h2>[3.14.2] - 2025-11-15</h2> <h3>Security</h3> <ul> <li>Backported v4.1.1 fix to v3</li> </ul> </blockquote> </details> <details> <summary>Commits</summary> <ul> <li>See full diff in <a href="https://github.com/nodeca/js-yaml/commits">compare view</a></li> </ul> </details> <br /> [](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> |
||
| .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.





