Skip to content

A MagicMirror2 module that shows the current standings of Allsvenskan (the top Swedish football league).

License

Notifications You must be signed in to change notification settings

retroflex/MMM-AllsvenskanStandings

Repository files navigation

MMM-AllsvenskanStandings

A MagicMirror² module that shows the current standings of Allsvenskan (the top Swedish football league).

screenshot

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).

Installation

  1. Clone repo
cd MagicMirror/modules/
git clone https://github.com/retroflex/MMM-AllsvenskanStandings
  1. Add the module to the ../MagicMirror/config/config.js, example
  {
    module: 'MMM-AllsvenskanStandings',
    header: 'Allsvenskan',
    position: 'bottom_right',
    config: {
      showPosition: false
    }
  },

Configuration

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

Customize Looks

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

About

A MagicMirror2 module that shows the current standings of Allsvenskan (the top Swedish football league).

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published