Skip to content
A MagicMirror2 module that shows Fortnite players' stats.
JavaScript CSS
Branch: master
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
translations
LICENSE Initial commit May 3, 2019
MMM-Fortnite.css Added more class names for more customization options. May 4, 2019
MMM-Fortnite.js Added custom sorting + number formatting. May 4, 2019
README.md Corrected errors in readme. May 9, 2019
node_helper.js Added custom sorting + number formatting. May 4, 2019
package.json

README.md

MMM-Fortnite

A MagicMirror² module that shows Fortnite players' stats (score, matches played and kills). The stats shown are from all seasons and platforms.

The stats are fetched from this API (which seem to bit unstable at times).

screenshot

Installation

  1. Clone repo:
	cd MagicMirror/modules/
	git clone https://github.com/retroflex/MMM-Fortnite
  1. Install dependencies:
	cd MMM-Fortnite/
	npm install
  1. Add the module to the ../MagicMirror/config/config.js, example:
		{
			module: 'MMM-Fortnite',
			header: 'Fortnite',
			position: 'top_center',
			config: {
				showScore: false,
				sortBy: 'kills',
				userIDs: [ '4735ce9132924caf8a5b17789b40f79c', '3900c5958e4b4553907b2b32e86e03f8' ]
			}
		},

Configuration

Option Description
showScore Whether to show column with the user's total score.
Default value: true
showMatchesPlayed Whether to show column with the user's total number of matches played.
Default value: true
showKills Whether to show column with the user's total number of kills.
Default value: true
includeDefaultGameModes Whether to include default game modes (solo, duo, squad) in count.
Default value: true
includeLimitedTimeGameModes Whether to include limited time game modes (e.g. blitz, snipers etc.) in count.
Default value: true
includeLargeTeamGameModes Whether to include large team game modes (e.g. 50 vs 50) in count.
Default value: false
sortBy Which column to sort by. Possible values: 'score', 'matchesPlayed' or 'kills'.
Default value: score
fetchInterval How often to fetch stats (milliseconds).
Default value: 60 * 1000 (each minute)
userIDs Array of user ID's.
Use this URL to get the user ID from user name:
https://fortnite-public-api.theapinetwork.com/prod09/users/id?username=YOURUSERNAME
Default value: 4735ce9132924caf8a5b17789b40f79c (Ninja)

Customize Looks

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

CSS name Description
header-row Header (whole row).
stats-row The players' stats (whole rows).
username-header Username header.
score-header Score header.
matches-played-header Matches played header.
kills-header Kills header.
score Score.
matches-played Number of matches played.
kills Number of kills.
You can’t perform that action at this time.