From 1ed2fd36431212f56eab3a17f1edb436b98f1ff9 Mon Sep 17 00:00:00 2001 From: AconiteGodOfSWG <63141077+AconiteGodOfSWG@users.noreply.github.com> Date: Sun, 20 Sep 2020 19:07:56 -0400 Subject: [PATCH] Updated Enable Metrics Data For The SWG Server (markdown) --- Enable-Metrics-Data-For-The-SWG-Server.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Enable-Metrics-Data-For-The-SWG-Server.md b/Enable-Metrics-Data-For-The-SWG-Server.md index 2a27184..4b12e1f 100644 --- a/Enable-Metrics-Data-For-The-SWG-Server.md +++ b/Enable-Metrics-Data-For-The-SWG-Server.md @@ -1,4 +1,4 @@ -The Metrics Server is a component of the source that is responsible for transmitting data from the Central Server about the game environment. Presently, the Metrics Server uses the Stella Bellum Web API to send information via JSON requests to a specified web script and is focused on server status information, although there is countless possibilities for future expansion. +The Central Server uses the Stella Bellum Web API to send information via JSON requests to a specified web script containing server status information, although there are countless possibilities for future expansion. **Enabling the Metrics Server:** To enable the Metrics Server Status features, include the following in your `localOptions.cfg` file: @@ -22,7 +22,7 @@ The `metricsDataURL` should be the absolute web path to the script you want the **Web Script for Getting the Data from the Metrics Server:** The following PHP script is a basic implementation wherein you would specify the location of this script as the `metricsDataURL` and then it would write the status every 60 seconds (as specified by the `webUpdateIntervalSeconds`) to a file called `status.txt` in the same directory, which you could then unpack and use elsewhere. -You will need a separate script that is used to interpet the data packed into status.txt and to display readable user-friendly information (some programmatic suggestions of which are also found below). +You will need a separate script that is used to interpret the data packed into status.txt and to display readable user-friendly information (some programmatic suggestions of which are also found below). ```php $data_server = json_decode( file_get_contents( 'php://input' ), true );