Giter Club home page Giter Club logo

www's Introduction

#A3W Stats# This is a stats visualization framework for Arma 3 Wasteland servers that use the sock-rpc-stats fork for persistence.

The framework works with stats saved in a CouchDB database, and indexed using ElasticSearch.

Features:

  • Live Scoreboard (/scoreboard)

    scoreboard

    (Shows the statistics about players currently active on the server)

  • Leaderboard (/leaderboard)

    leaderboard

    (Shows same data as the scorebaord, but for the top 1000 players within the last month)

  • Player count (/playercount_history)

    player_count

    (Shows the player count over the last 7 days)

  • Vehicle count (/vehiclecount_history)

    vehicle_count

    (Shows the player count over the last 7 days)

  • Object count (/objectcount_history)

    object_count

    (Shows the object count over the last 7 days)

Requirements

  1. Apache HTTP Server
  2. PHP 5.1.6 or newer
  3. CouchDB database (with A3Wasteland data)
  4. ElasticSearch (with propper indexes created)
  5. Make sure that your web server machine is able to reach the machine(s) where CouchDB, and ElasticSearch are running (if they are on different machines).

#Seitting up the web-framework#

  1. Upload the entire repository contents into a directory in your web-server
  2. Edit the application/config/globals.php to point to your CouchDB database, and ElasticSearch indexes.

#Setting up the ElasticSearch indexes#

  1. Install the the ElasticSearch CouchDB river plugin
  ./bin/plugin --install couchdb-river --url  https://github.com/A3Armory/www/releases/download/v0.0.1/elasticsearch-river-couchdb-2.4.2-micovery.zip

(Note this is a custom version of the ES CouchDB River Plugin that allows for saving document revisions/history) 2. Install the Kopf plugin

Since you are going to be managing, and working with ElasticSearch, you should also install the Kopf plugin to help you manage ES.

  ./bin/plugin --install lmenezes/elasticsearch-kopf/1.4.3

You can access Kopf at http://localhost:9200/_plugin/kopf

  1. Install Git Bash (Windows only)

If you are in Windows, you should install MsyGit. It comes with Git bash, where you can use the "curl" command line utility to talk to ElasticSearch.

  1. Create the A3Wasteland indexes

    1. If you are on Windows, open up Git Bash, (if you are on Linux, just open a new terminal)
    2. Grab the contents of this file, and paste it in the terminal. Note that all the curl commands in the file assume your database is named "a3w", if you have a different name, make sur to modify it in the file before running the commands.
    3. If you are using ElasticSearch 1.4.3, Groovy scripting is disabled by default, you'll have to enable it by modifing the config/elasticsearch.yaml and adding the following property script.groovy.sandbox.enabled: true and then restarting it.

www's People

Stargazers

Eduardo Arnold avatar Daniel Pietka avatar

Watchers

James Cloos avatar Agent Revolution avatar Ivan avatar pAxton avatar Daniel Pietka avatar Gigatek avatar  avatar  avatar  avatar Bob avatar  avatar  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.