Skip to content
A MagicMirror2 module that shows the current standings of Allsvenskan (the top Swedish football league).
JavaScript CSS
Branch: master
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
css
translations Add files via upload Apr 12, 2019
LICENSE
MMM-AllsvenskanStandings.js
README.md
node_helper.js
package.json Changed request version. Apr 13, 2019

README.md

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. Install dependencies:
	cd MMM-AllsvenskanStandings/
	npm install
  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
You can’t perform that action at this time.