Magic Mirror Module - A module for Magic Mirror that displays live and upcoming e-sport matches fetched from Liquipedia.
- Clone repository into
../modules/
inside your MagicMirror folder. - Run
npm install
inside theMMM-Liquipedia-Matches
folder. - Add the module to the Magic Mirror config.
{
module: "MMM-Liquipedia-Matches",
config: {}
},
- Done!
game
: Which game should it display for. Tested withdota2
,counterstrike
andleagueoflegends
. Default isdota2
to keep backwards compatibility.matchUpdateInterval
: How often it should fetch new matches in seconds, anything lower than 30 seconds is throttled since it could lead to an ip-ban, default is 60 minutes.displayCount
: the amount of matches to display, default is 5sourceUrl
: The API-url to use, could possibly be changed to other games on Liquipedia too?requiredProfiles
: the amount of teams in the match that needs to have a profile page on Liquipedia, 0-2, default is 0requiredTeams
: an array of team names to display matches for instead of using requiredProfiles, capitalization and spaces not required, default is emptylanguage
: The language to use for time formatting, defaults to MagicMirror default
By default no team logos will be displayed since they need to be fetched manually (can't hotlink the images to Liquipedia). To make a logo visible:
- Create a directory named
public/logos/${game}
in the root of this plugin (${game}
should have the same value as the configuration parameter) - Get/Create a logo that is preferably a square or is wider than its height in png format
- Place it in the
public/logos/${game}
directory and name itteamsuperawesome5.png
if the teams name isTeam: SuperAwesome5
(removing all non alphanumeric characters and making it lower case)
I also created a script for making a one time download from Liquipedia, cropping and inverting dark logos:
Run the following commands inside the MMM-Liquipedia-Matches
:
npm install
node fetch_logos.js dota2
.