diff --git a/CHANGELOG.md b/CHANGELOG.md index 37123cd..a43fdb7 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -4,6 +4,8 @@ ### Fixed +- [Switching to v4 due to empty tables in v2 of the API](https://github.com/fewieden/MMM-soccer/issues/70) + ### Added ### Changed diff --git a/node_helper.js b/node_helper.js index 4a24069..6ccb5f6 100644 --- a/node_helper.js +++ b/node_helper.js @@ -42,7 +42,7 @@ module.exports = NodeHelper.create({ */ socketNotificationReceived(notification, payload) { if (notification === 'GET_DATA') { - const url = `http://api.football-data.org/v2/competitions/${payload.league}/standings`; + const url = `http://api.football-data.org/v4/competitions/${payload.league}/standings`; const options = {}; if (payload.api_key) { diff --git a/templates/MMM-soccer.njk b/templates/MMM-soccer.njk index f9fd34f..21b81bc 100644 --- a/templates/MMM-soccer.njk +++ b/templates/MMM-soccer.njk @@ -22,7 +22,7 @@ {{ standing[index].position }} {% if config.logos %} - + {% endif %} {{ standing[index].team.name }} {{ standing[index].points }} diff --git a/templates/StandingsModal.njk b/templates/StandingsModal.njk index 5151828..4e8d7e8 100644 --- a/templates/StandingsModal.njk +++ b/templates/StandingsModal.njk @@ -19,7 +19,7 @@ {{ entry.position }} {% if data.config.logos %} - + {% endif %} {{ entry.team.name }} {{ entry.points }}