A MagicMirror² module that shows Apex Legends players' stats (level, kills and global rank).
The stats are fetched from the ApexTab API.
- Clone repo:
cd MagicMirror/modules/
git clone https://github.com/retroflex/MMM-ApexLegends
- Install dependencies:
cd MMM-ApexLegends/
npm install
- 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' ],
}
},
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) |
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. |