A simple Teamspeak stats-generator - based on server-logs https://claytonia.net/tsstats.html
Go to file
Thor77 d820c99ece move argparse-setup into cli() 2016-05-11 20:21:09 +02:00
tsstats move argparse-setup into cli() 2016-05-11 20:21:09 +02:00
.coveragerc use py.test instead of nose for testing 2016-05-09 20:09:16 +02:00
.gitignore add .gitignore 2016-05-08 20:46:15 +02:00
.travis.yml use py.test instead of nose for testing 2016-05-09 20:09:16 +02:00
LICENSE Initial 2015-03-05 18:48:10 +01:00
README.md update README.md to current state 2016-05-10 23:05:12 +02:00
requirements.txt update {testing_,}requirement-versions 2016-05-08 18:00:17 +02:00
testing_requirements.txt use py.test instead of nose for testing 2016-05-09 20:09:16 +02:00

README.md

TeamspeakStats Build Status Coverage Status Code Health Requirements Status

A simple Teamspeak stat-generator - based on server-logs

Installation

  • Install a supported Python-version (2.7, 3.x)
  • Clone this repo git clone https://github.com/Thor77/TeamspeakStats
  • Install requirements pip3 install -r requirements.txt

Usage

  • Create a config (see Configuration)
  • Run the module python -m tsstats

Tests

  • Install testing-requirements pip install -r testing_requirements.txt
  • Run py.test tsstats/

CMD-Arguments

usage: python -m tsstats [-h] [--config CONFIG] [--idmap IDMAP] [--debug]

A simple Teamspeak stats-generator - based on server-logs

optional arguments:
  -h, --help       show this help message and exit
  --config CONFIG  path to config
  --idmap IDMAP    path to id_map
  --debug          debug mode

Configuration

[General]

Key Description
log Path to TS3Server-logfile(s) (supports globbing)
output Path to the location, where the generator will put the generated .html-file

[HTML]

Key Description
title HTML-Title of the generated .html-file

Example

[General]
log = /usr/local/bin/teamspeak-server/logs/ts3server*_1.log
output = /var/www/html/stats.html

ID-Mapping

id_map.json
You can map multiple ID's to one (for example, when an user creates a new identity)

Example

{
	"1": "2",
	"3": "2"
}

The online-time of 1 and 3 will be added to the online-time of 2

TODO

  • Localization