Skip to content

A MagicMirror2 module that shows Apex Legends players' stats.

License

Notifications You must be signed in to change notification settings

retroflex/MMM-ApexLegends

Repository files navigation

MMM-ApexLegends

A MagicMirror² module that shows Apex Legends players' stats (level, kills and global rank).

The stats are fetched from the ApexTab API.

screenshot

Installation

  1. Clone repo:
	cd MagicMirror/modules/
	git clone https://github.com/retroflex/MMM-ApexLegends
  1. Install dependencies:
	cd MMM-ApexLegends/
	npm install
  1. Add the module to the ../MagicMirror/config/config.js, example:
		{
			module: 'MMM-ApexLegends',
			header: 'Apex Legends',
			position: 'top_center',
			config: {
				showLevel: false,
				sortBy: 'kills',
				userIDs: [ '402282792fbf00d7845d3fcb5e5d1f1c', 'f5337d769b7b29628f59d8c84ea45d9d' ],
			}
		},

Configuration

Option Description
showLevel Whether to show column with the user's level.
Default value: true
showKills Whether to show column with the user's number of kills.
Default value: true
showGlobalRank Whether to show column with the user's global rank.
Default value: true
sortBy Which column to sort by. Possible values: 'level', 'kills' or 'globalRank'.
Default value: globalRank
fetchInterval How often to fetch stats (milliseconds).
Default value: 10 * 60 * 1000 (every ten minutes)
userIDs Array of user ID's (a.ka. aid).
Find ID's by searching for user name as described here.
Default value: f5337d769b7b29628f59d8c84ea45d9d (BallerInGame)

Customize Looks

The following class names can be used in 'MagicMirror/css/custom.css' to customize looks (see MMM-ApexLegends.css for example):

CSS name Description
header-row Header (whole row).
stats-row The players' stats (whole rows).
username-header Username header.
level-header Level header.
kills-header Kills header.
global-rank-header Global rank header.
level Player level.
kills Number of kills.
globa-rank Player's global rank.

About

A MagicMirror2 module that shows Apex Legends players' stats.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published