Giter Site home page Giter Site logo

serverstatuspage's Introduction

Server Status Page

This repository holds a simple web page that shows the status of a couple game servers I maintain. If the game supports it the page outputs the following information:

  • Online status of the server
  • Current and maximum player count
  • Current map
  • Address of the server to connect to
  • A link to join the game
  • A link with more details about the game

The page consists of a frontend using Angular.js and Bootstrap.
It uses a PHP and GameQ backed JSON API to query status information.

A slideshow with screenshots of the games is played in the background of the page.

Configuration

servers.json

This file is the configuration file as accepted by GameQ's function addServersFromFiles(). See GameQ's documentation for details.

overrides.json

This file holds overrides allowing to customize the JSON data the PHP script will send to the client, i.e. the name of a game or a URL for more information. If a game isn't supported by GameQ it can be added to this file to show basic information about it.

These are the fields that the JSON API outputs and can be overriden:

  • id: ID of the entry these overrides should apply to
  • name: Name of the game to display
  • detailslink: Link to put on the game's name in the header
  • online: Whether or not the server is online
  • num_players: The current amount of players connected to the server
  • max_players: The maximum amount of players that connect to the server
  • map: Current map running on the server
  • address: Address the player has to enter to connect to the server
  • _resolveAddress: If the game doesn't support entering hostnames, set this to true to have the PHP script resolve the hostname to an IP address. This property will be removed from the output.
  • preferredOrder: Number to sort the entry in the list by
  • joinlink: Link to put on the join button. Set to null if GameQ outputs a link to remove it.

Notes

For the background slideshow a list of images is currently hardcoded in app.js.

serverstatuspage's People

Contributors

minimeosc avatar

Watchers

James Cloos avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.