Magic Mirror Module - A module for Magic Mirror that displays live and upcoming Dota2 matches fetched from Liquipedia.
- Clone repository into
../modules/
inside your MagicMirror folder. - Run
npm install
inside theMMM-Liquipedia-Dota2
folder. - Add the module to the Magic Mirror config.
{
module: "MMM-Liquipedia-Dota2",
position: "top_left",
header: "Upcoming Dota2 matches",
config: {}
},
- Done!
matchUpdateInterval
: How often it should fetch new matches in seconds, anything lower than 30 minutes 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
in the root of this plugin - Get/Create a logo that is preferably a square or is wider than its height in png format
- Place it in the
public/logos
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-Dota2
:
npm install
node fetch_logos.js
.