This server displays players online in your realms server(s) it hosts a basic local server to serve the Minecraft Realms API it works in tandem with the bot developed here that displays this information in Discord
- create a new file called
.env
in the base path. - in the .env file, enter your username, email, and password, as well the server id of the Realms server you want to track in the following format:
USERNAME="your_username_here"
EMAIL="your_email_here"
PASSWD="your_passwd_here"
SERVER_ID="your_server_id_here"
Use the Realms API (see here) to find out your server ID
run the following comamnds (Unix)
python3 -m venv .venv
to setup a virtual environmentsource ./.venv/bin/activate
to enter the virtual environmentpip install -r requirements.txt
to install the necessary dependencies
run the flask app (flask run
) and the server will start up