A MagicMirror² module that shows the current standings of Allsvenskan (the top Swedish football league).
The standings are fetched from the Swedish Text TV API (page 343) as HTML and then scraped. So if the Text TV page change its appearance, the module will most likely break.
The standings are refreshed every 10 minutes (currently hard coded).
- Clone repo
cd MagicMirror/modules/
git clone https://github.com/retroflex/MMM-AllsvenskanStandings
- Add the module to the ../MagicMirror/config/config.js, example
{
module: 'MMM-AllsvenskanStandings',
header: 'Allsvenskan',
position: 'bottom_right',
config: {
showPosition: false
}
},
Option | Description |
---|---|
showPosition |
Whether to show column with position before the team name. Default value: true |
showMatchesPlayed |
Whether to show column with number of matches played. Default value: true |
showWins |
Whether to show column with number of matches won. Default value: true |
showDraws |
Whether to show column with number of matches drawn. Default value: true |
showLosses |
Whether to show column with number of matches lost. Default value: true |
showGoalsFor |
Whether to show column with number of goals made. Default value: false |
showGoalsAgainst |
Whether to show column with number of goals let in. Default value: false |
showGoalDifference |
Whether to show column with goal difference (i.e. goals made minus goals let in). Is always prefixed by + or -. Default value: false |
showGoalsForAndAgainst |
Whether to show column with number of goals made and let in. See the +/- column in the above screenshot. Default value: true |
showPoints |
Whether to show column with points. Default value: true |
These items have own class names and can be customized via CSS (see css/AllsvenskanStandings.css for example).
- Header table row
- Even table rows
- Odd table rows