MichaelBelgium / Graphs

Mostly used for a SA:MP server or anything else.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Graphs

Mostly used for a SA:MP server or anything else.

Information

These are files that show several stats by using the Pingdom API or SACNR API. I used these 2 API'S for showing the stuff about (a) SA:MP server(s).

Chart API's

The first API i used to create the charts was Google Charts, however I found another and easier one called Highcharts which was extremely easier to use and make. And you have the choice too: * The files with prefix "google_" are the ones with Google Charts API * The files with prefix "highcharts_" are the ones with Highcharts API

Configurations

This doesn't work in 1, 2, 3...

Uptime files

define("EMAIL", "");
define("PASS", "");
define("API_KEY", "");
define("CHECK_ID", 0);

For the pingdom API authentication is required for using their API. More info here. The CHECK_ID is an ID of your up- and downtime check by Pingdom. An easy way is to go to your pubic page of the check (Example: http://stats.pingdom.com/<something unique>/<here is a check id>

Playerbase files

```PHP define("SERVER_ID", 0); define("PAST_HOURS", 12); ```

These files are using the SACNR Monitor API, used to get players from a SA:MP server. Here you need a server id which is easy to get if you search your own server on their website. When you land on the page the link looks like this: http://monitor.sacnr.com/server-<a server id>.html. The PAST_HOURS is a value/the amount of hours you want to go back in time to show the playerbase of your server.

Dependencies

If you're missing a file or so;

The rest should be self-explanatory

Examples

(Google) Here an example with the knob
(Google) Here an example with the table (default)

About

Mostly used for a SA:MP server or anything else.

License:MIT License


Languages

Language:PHP 100.0%