ps2avglogin

command module
v0.0.0-...-8ce5f11 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jul 8, 2016 License: MIT Imports: 19 Imported by: 0

README

ps2avglogin

ps2avglogin is a simple tracker that scans login and logout events in PlanetSide 2 using the Daybreak Census API. It keeps track of every player that logs in after it is started, and then calculates a rolling average time spent logged in every time a tracked player logs out. It also has a few related features, such as the ability to filter short play sessions.

Installation

To install, first you will need a working Go toolchain that is at least version 1.6. Next you will need to set up your GOPATH. Once this is done, simply run

go get github.com/DeedleFake/ps2avglogin

to install ps2avglogin.

Docker

To build a Docker image containing ps2avglogin, first, build a binary by running the following command in the source directory:

go build -ldflags '-extldflags "-static"'

The binary will also need access to the SSL root certificates, so copy those to the repository. They are usually located at /etc/ssl/certs/ca-certificates.crt, so run

cp /etc/ssl/certs/ca-certificates.crt .

Then run

docker build -t ps2avglogin .

to build the image, and you're done.

A quick note: The default working directory for the image is in /data, so it may be a good idea to mount /data to somewhere on the host system for access to the database and for preserving data when updating.

Usage

For usage information, simply run ps2avglogin -help. Just running ps2avglogin should be good enough for most use cases.

Authors

  • DeedleFake

Documentation

The Go Gopher

There is no documentation for this package.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL