A simple Teamspeak stats-generator - based on server-logs https://claytonia.net/tsstats.html
Go to file
Thor77 123370554a use defined output_path in tsstats.tests.test_template.output-fixture and sort imports 2016-06-12 18:39:56 +02:00
docs use defined output_path in tsstats.tests.test_template.output-fixture and sort imports 2016-06-12 18:39:56 +02:00
tsstats use defined output_path in tsstats.tests.test_template.output-fixture and sort imports 2016-06-12 18:39:56 +02:00
.coveragerc remove test_general.py (testing __main__) to get clear coverage-results 2016-05-19 21:40:37 +02:00
.gitignore add .gitignore 2016-05-08 20:46:15 +02:00
.travis.yml limit pyflakes and isort-check to tsstats-package 2016-05-18 21:35:06 +02:00
LICENSE Initial 2015-03-05 18:48:10 +01:00
README.md update cli-help and config-keys in README.md 2016-06-08 18:12:57 +02:00
requirements.txt update {testing_,}requirement-versions 2016-05-08 18:00:17 +02:00
screenshot.png add screenshot to README.md 2016-05-11 20:39:45 +02:00
setup.py use defined output_path in tsstats.tests.test_template.output-fixture and sort imports 2016-06-12 18:39:56 +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 PyPI Documentation Status

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

screenshot

Installation

  • Install the package via PyPi pip install tsstats

Usage

  • Create a config (see Configuration)
  • Run the script tsstats [-h]

Tests

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

CMD-Arguments

usage: tsstats [-h] [-c CONFIG] [--idmap IDMAP] [-l LOG] [-o OUTPUT] [-d]

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

optional arguments:
  -h, --help            show this help message and exit
  -c CONFIG, --config CONFIG
                        path to config
  --idmap IDMAP         path to id_map
  -l LOG, --log LOG     path to your logfile(s)
  -o OUTPUT, --output OUTPUT
                        path to the output-file
  -d, --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
idmap Path to IdentMap
debug debug mode

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