Skip to content

📅 Display LOL Esports league schedules on your magic mirror!

Notifications You must be signed in to change notification settings

xadamxk/MMM-LOLESPORTS-SCHEDULES

Repository files navigation

MMM-LOLESPORTS-SCHEDULES

An Esports schedule module for a provided League of Legends league id. Module for MagicMirror.

Other league related modules:

Previews with Configuration Samples

Default

Hide Team Label Format:

config: {
	showTeamLabel: false	
}
	
Minified Format:

config: {
	showTeamLabel: false,
	showRegionAndBestOf: false,
}
	
Full Format:

config: {
	showPeriodLabel: false,
	use24HourTime: true,
	useTeamFullName: true,
	showTournamentBlock: true
}
	

Installation

In your terminal, go to your MagicMirror's Module folder:

cd ~/MagicMirror/modules

Clone this repository:

SSH: git clone git@github.com:xadamxk/MMM-LOLESPORTS-SCHEDULES.git
HTTPS: git clone https://github.com/xadamxk/MMM-LOLESPORTS-SCHEDULES.git

Install/Update Dependencies:

  • First, change directories into this project: cd MMM-LOLESPORTS-SCHEDULES
  • Then install dependencies with:
npm install

Configuration

Add MMM-LOLESPORTS-SCHEDULE module to the modules array in the config/config.js file:

modules: [
	{
		module: "MMM-LOLESPORTS-SCHEDULES",
		position: "bottom_left",
		config: {}
	}
]

Configuration Options

Option Type Default Description
updateInterval integer 60 Number of minutes to poll api for updates.
apiKey string '0TvQnueqKa5mxJntVWt0w4LpLfEkrV1Ta8rQBb9Z' Api key used to query esports API - all users' api key is the default key.
basePath string 'https://esports-api.lolesports.com/persisted/gw' Base bath used to query the esports api.
leagueId array ["113475149040947852"] Array of league ids to get esport standings. Currently the API only supports a single league id. If no id is provided, then all region games will be provided. Refer to league table below for ids of other leagues. Defaults to LTA.
hl string 'en-US' Host language/ locale to use when requesting esports data.
numberOfFutureGames integer 5 Number of future games to display.
use24HourTime boolean false Use 24 hour format (hh:mm) rather than 12 hour format (hh PERIOD)
useTeamFullName boolean false Show teams' full name rather than teams' code.
useInternationalDateFormat boolean false Show date format as international format (Day. Month) - False for US format (Month Day)
showPeriodLabel boolean true Show period (AM/PM) after time.
showTeamLabel boolean true Show team label (name/code). Use false for slim component.
showRegionAndBestOf boolean true Show region and best of format for games.
showTournamentBlock boolean false Show tournament block (ie. Playoffs - Round 1) after start date.

League Ids

League Ids can be obtained in two ways:

  1. With the following CURL: curl --location 'https://esports-api.lolesports.com/persisted/gw/getLeagues?hl=en-US' \ --header 'x-api-key: 0TvQnueqKa5mxJntVWt0w4LpLfEkrV1Ta8rQBb9Z'
  2. Navigate to https://lolesports.com/en-US/leagues, opening dev tools, selecting a league filter, and finding the league id in the network panel in the /api/gql request.
Name League Id
First Stand 113464388705111224
LCS 98767991299243165
LEC 98767991302996019
LCK 98767991310872058
LPL 98767991314006698
LCP 113476371197627891
NACL 109511549831443335
EMEA Masters 100695891328981122
First Stand 113464388705111224
MSI 98767991325878492
Worlds 98767975604431411
LJL 98767991349978712
TCL 98767991343597634
NLC 105266098308571975
La Ligue Française 105266103462388553
Road of Legends 107407335299756365
Liga Portuguesa 105266101075764040
LoL Italian Tournament 105266094998946936
Rift Legends 113673877956508505
SuperLiga 105266074488398661
Prime League 105266091639104326
Hitpoint Masters 105266106309666619
Esports Balkan League 105266111679554379
Hellenic Legends League 105266108767593290
Arabian League 109545772895506419
LCK Challengers 98767991335774713
Circuito Desafiante 105549980953490846
PCS 104366947889790212
LRN 110371976858004491
LRS 110372322609949919
TFT Esports 108001239847565215
LLA 101382741235120470
LCO 105709090213554609
VCS 107213827295848783
Worlds Qualifying Series 110988878756156222
King's Duel 111102022734849553
LCS 98767991299243165
CBLOL 98767991332355509
LCL 98767991355908944

About

📅 Display LOL Esports league schedules on your magic mirror!

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Contributors 2

  •  
  •