Skip to content

A module for Magic Mirror that displays live and upcoming Dota2 matches fetched from Liquipedia

Notifications You must be signed in to change notification settings

godliked/MMM-Liquipedia-Dota2

 
 

Repository files navigation

MMM-Liquipedia-Dota2

Magic Mirror Module - A module for Magic Mirror that displays live and upcoming Dota2 matches fetched from Liquipedia.

Screenshot

Install

  1. Clone repository into ../modules/ inside your MagicMirror folder.
  2. Run npm install inside the MMM-Liquipedia-Dota2 folder.
  3. Add the module to the Magic Mirror config.
{
  module: "MMM-Liquipedia-Dota2",
  position: "top_left",
  header: "Upcoming Dota2 matches",
  config: {}
},
  1. Done!

Configuration parameters

  • 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 5
  • sourceUrl : 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 0
  • requiredTeams: an array of team names to display matches for instead of using requiredProfiles, capitalization and spaces not required, default is empty
  • language : The language to use for time formatting, defaults to MagicMirror default

Team logos

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:

  1. Create a directory named public/logos in the root of this plugin
  2. Get/Create a logo that is preferably a square or is wider than its height in png format
  3. Place it in the public/logos directory and name it teamsuperawesome5.png if the teams name is Team: 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.

About

A module for Magic Mirror that displays live and upcoming Dota2 matches fetched from Liquipedia

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • JavaScript 92.5%
  • Nunjucks 6.0%
  • CSS 1.5%