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
7 changes: 7 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,13 @@ 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).

## [2.12.3](https://github.com/dathbe/MMM-MyStandings/compare/v2.12.2...v2.12.3) - 2026-08-05

- **BUG FIX**: Add user-agent to fetch to avoid 403 error
- New image to show off `highlightTeams` config option
- Update dependencies
- lint

## [2.12.2](https://github.com/dathbe/MMM-MyStandings/compare/v2.12.1...v2.12.2) - 2026-03-10

- **BUG FIX**: Correct WBC display format
Expand Down
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -579,7 +579,7 @@ config: {
]
}
```
<img width="381" height="356" alt="image" src="https://github.com/user-attachments/assets/b11ce332-fefc-4391-9f6f-a91d468bfbf9" />
![screenshot](screenshot_highlighting.png)


## Displaying Different Standings in Different Seasons
Expand Down
11 changes: 10 additions & 1 deletion node_helper.js
Original file line number Diff line number Diff line change
Expand Up @@ -30,11 +30,20 @@ module.exports = NodeHelper.create({

async getData(notification, payload) {
try {
const response = await fetch(payload.url)
const response = await fetch(payload.url, {
method: 'GET',
headers: {
'User-Agent': 'Mozilla/5.0 (Windows NT 10.0; Win64; x64) MagicMirrorModule',
'Accept': 'application/json, text/plain, */*',
},
})

Log.debug(`[MMM-MyStandings] ${payload.url} fetched`)

if (!response.ok) {
throw new Error(`HTTP error! status: ${response.status}`)
}

const data = await response.json()
this.sendSocketNotification(notification, {
result: data,
Expand Down
87 changes: 45 additions & 42 deletions package-lock.json

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

4 changes: 2 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,7 @@
"devDependencies": {
"@eslint/js": "^10.0.1",
"@stylistic/eslint-plugin": "^5.10.0",
"eslint": "^10.0.3",
"globals": "^17.4.0"
"eslint": "^10.8.0",
"globals": "^17.9.0"
}
}
Binary file added screenshot_highlighting.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.