Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion .github/workflow/automated-tests.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ jobs:
- run: echo "🐧 This job is now running on a ${{ runner.os }} server hosted by GitHub!"
- run: echo "🔎 The name of your branch is ${{ github.ref }} and your repository is ${{ github.repository }}."
- name: Check out repository code
uses: actions/checkout@v5
uses: actions/checkout@v6
- run: echo "💡 The ${{ github.repository }} repository has been cloned to the runner."
- run: echo "🖥️ The workflow is now ready to test your code on the runner."
- name: Use Node.js
Expand Down
5 changes: 5 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,11 @@ Notable changes to this project will be documented in this file.

This project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).

## [4.15.0](https://github.com/dathbe/MMM-MyScoreboard/compare/v4.14.1...v4.15.0) - 2025-01-XX

- **NEW FEATURE**: Added `NCAAB` (College Baseball)
- Update dependencies

## [4.14.1](https://github.com/dathbe/MMM-MyScoreboard/compare/v4.14.0...v4.14.1) - 2025-12-11

- Lint
Expand Down
1 change: 1 addition & 0 deletions MMM-MyScoreboard.js
Original file line number Diff line number Diff line change
Expand Up @@ -80,6 +80,7 @@ Module.register('MMM-MyScoreboard', {
'NCAAM': { provider: 'ESPN', logoFormat: 'url' },
'NCAAM_MM': { provider: 'ESPN', logoFormat: 'url' },
'NCAAW': { provider: 'ESPN', logoFormat: 'url' },
'NCAAB': { provider: 'ESPN', logoFormat: 'url' },
'WNBA': { provider: 'ESPN', logoFormat: 'url' },
'NBAG': { provider: 'ESPN', logoFormat: 'url' },
'NLL': { provider: 'ESPN', logoFormat: 'url' },
Expand Down
3 changes: 2 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ leagues, including:

* NHL Hockey
* NBA / WNBA / NCAA Basketball
* MLB Baseball
* MLB / College Baseball
* NFL / NCAA / CFL Football
* Over 100 soccer leagues
* And more
Expand Down Expand Up @@ -128,6 +128,7 @@ Currently this module supports the following leagues. Use the bold uppercase sh
* `NCAAM` - NCAA College Basketball (Division I)
* `NCAAM_MM` - NCAA College Basketball (March Madness Tournament)
* `NCAAW` - NCAA Women's College Basketball
* `NCAAB` - NCAA Baseball
* `NLL` - National Lacrosse League
* `PLL` - Premier Lacrosse League

Expand Down
26 changes: 13 additions & 13 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

6 changes: 3 additions & 3 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -50,9 +50,9 @@
"moment-timezone": "^0.6.0"
},
"devDependencies": {
"@eslint/js": "^9.39.1",
"@eslint/js": "^9.39.2",
"@stylistic/eslint-plugin": "^5.6.1",
"eslint": "^9.39.1",
"globals": "^16.5.0"
"eslint": "^9.39.2",
"globals": "^17.0.0"
}
}
8 changes: 5 additions & 3 deletions providers/ESPN.js
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@
NCAAF (College Football, FBS Division)
NCAAM (College Basketball. Division I)
NCAAM_MM (College Basketball, March Madness Tournament)
NCAAB (College Baseball)
MLB (Major League Baseball)
NHL
NFL
Expand Down Expand Up @@ -52,6 +53,7 @@ module.exports = {
'NCAAM': 'basketball/mens-college-basketball',
'NCAAM_MM': 'basketball/mens-college-basketball',
'NCAAW': 'basketball/womens-college-basketball',
'NCAAB': 'baseball/college-baseball',
'PLL': 'lacrosse/pll',
'NLL': 'lacrosse/nll',
'MLB': 'baseball/mlb',
Expand Down Expand Up @@ -939,7 +941,7 @@ module.exports = {
var hTeamLong = ''
var vTeamLong = ''
// For college sports, use the displayName property
if (payload.league == 'NCAAF' || payload.league == 'NCAAM') {
if (payload.league.startsWith('NCAA')) {
hTeamLong = (hTeamData.team.abbreviation == undefined ? '' : hTeamData.team.abbreviation + ' ') + hTeamData.team.name
vTeamLong = (vTeamData.team.abbreviation == undefined ? '' : vTeamData.team.abbreviation + ' ') + vTeamData.team.name
}
Expand Down Expand Up @@ -988,8 +990,8 @@ module.exports = {
vTeam: vTeamData.team.abbreviation == undefined ? vTeamData.team.name.substring(0, 4).toUpperCase() + ' ' : vTeamData.team.abbreviation,
hTeamLong: hTeamLong,
vTeamLong: vTeamLong,
hTeamRanking: (payload.league == 'NCAAF' || payload.league == 'NCAAM') ? this.formatT25Ranking(hTeamData.curatedRank.current) : null,
vTeamRanking: (payload.league == 'NCAAF' || payload.league == 'NCAAM') ? this.formatT25Ranking(vTeamData.curatedRank.current) : null,
hTeamRanking: (payload.league.startsWith('NCAA') && hTeamData.curatedRank) ? this.formatT25Ranking(hTeamData.curatedRank.current) : null,
vTeamRanking: (payload.league.startsWith('NCAA') && vTeamData.curatedRank) ? this.formatT25Ranking(vTeamData.curatedRank.current) : null,
hScore: parseInt(hTeamData.score),
vScore: parseInt(vTeamData.score),
status: status,
Expand Down