This module displays the league tables of football/soccer from football-data.org
You need to install the module for your MagicMirror.
Navigate into your MagicMirror's modules folder:
shellcd ~/MagicMirror/modules
Clone this repository:
shellgit clone https://github.com/GHLasse/MMM-FootballTable
Configure the module in your config.js file.
Add module configuration to config.js.
{
module: 'MMM-FootballTable',
config: {
leagueid: THELEAGUEIDOFINTEREST,
}
}| Option | Description |
|---|---|
leagueid |
The league id of the league you are interested in. Set to 0 to get a list of all the different leagues and their IDs for this yearDefault value: 0 |
maximumEntries |
Maximum number of teams to display. This option should take an integer value between 1 and the number of teams in the league.Default value: 9 |
interest |
Names of clubs you want to follow as a list of strings Default value: [] |
updateInterval |
How often does the content need to be fetched? (Minutes) Note that you have a limited number of requests per week, so don't refresh this module too often! Default value: 120 |
lblAsText |
Boolean if the table header should be displayed as text Default value: false |
maxNameLength |
Number of characters of the clubs name to display. This is not an exact value but the name will be abbreviated in a somewhat (but not really) smart way. Best you choose 0 or an integer larger or equal to 9 0 means display all, -1 means don't show the clubs namesDefault value: 0 |
Follow Stuttgart in the Bundesliga 17/18
{
module: 'MMM-FootballTable',
header: 'Bundesliga',
position: 'bottom_center',
config: {
maximumEntries: 10,
maxNameLength: 9,
showCrests: true,
lblAsText: true,
showWhenError: false,
leagueid: 452,
interest: ['VfB Stuttgart']
}
},Follow Chelsea and Man United in the Premier League 17/18
{
module: 'MMM-FootballTable',
header: 'Premier League',
position: 'top_right',
config: {
leagueid: 445,
interest: ['Chelsea FC','Manchester United FC'],
maximumEntries: 10
}
},