Skip to content
A module for MagicMirror displaying Fantasy Premier League standings!
JavaScript CSS
Branch: master
Clone or download
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
Screenshots First commit Feb 28, 2019
Gruntfile.js First commit Feb 28, 2019
LICENSE.txt First commit Feb 28, 2019
MMM-Fantasy-Premier-League.css Update MMM-Fantasy-Premier-League.css Feb 28, 2019
MMM-Fantasy-Premier-League.js Update MMM-Fantasy-Premier-League.js Feb 28, 2019
README.md Update README.md Feb 28, 2019
node_helper.js First commit Feb 28, 2019
package.json First commit Feb 28, 2019

README.md

MMM-Fantasy-Premier-League

This is a module for the MagicMirror².

This module displays your Fantasy Premier League! Display current standings and latest points.

Install

Step 1

Navigate into your MagicMirror modules folder and execute:

git clone https://github.com/Wuz0ink/MMM-Fantasy-Premier-League

Step 2

Enter the MMM-Fantasy-Premier-League directory and execute:

npm install

Step 3

Add the following configuration block to the modules array in the config/config.js file:

{
    module: 'MMM-Fantasy-Premier-League',
    position: 'left',
    header: "Fantasy Premier League",
    config: {
     //   leagueIds: [
     //   ],
    }
},

Step 4

Visit https://fantasy.premierleague.com. Enter selected league and look at the URL:

https://fantasy.premierleague.com/a/leagues/standings/{LEAGUE_ID}/classic

Step 3

Copy the {LEAGUE ID} and paste it in the config file under leagueIds. Example below,

leagueIds: [
    {id: 313}, // Overall
    {id: 226}  // Sweden
]

Example config:

{
    module: 'MMM-Fantasy-Premier-League',
    position: 'left',
    header: "Fantasy Premier League",
    config: {
        leagueIds: [
            {id: 313},
        //  {id: {Another Id}},
        ],
        maxTeams: 15,
    }
},

Configuration options

Option Default Description
leagueIds Optional List of league ids
updateInterval 21600000 Optional How often should the module fetch?
maxTeams 10 Optional How many teams should max be viewed in every league?
showTeamName true Optional Display team name
showPlayerName false Optional Display player name
showPlayerRank false Optional Display player rank
showTotalPoints true Optional Display total point of player in the current league
showGwPoints true Optional Display latest or ongoing gameweek points
gameWeekLabel "Gameweek" Optional If you want you can rename the Gameweek header("GW or whatever")
showGameWeek true Optional Whether or not you want to display latest or ongoing gameweek
truncateAfter 5 Optional A value > 0 will truncate league name/ player name/ team name at first space after characters. 0 = no truncation

Screenshot

Green gameweek = done gameweek!

Yellow gameweek = ongoing gameweek!

You can’t perform that action at this time.