A simple Teamspeak stats-generator - based on server-logs https://claytonia.net/tsstats.html
Go to file
Thor77 f95aaf5737 exclude main-call from coverage 2015-07-31 22:01:28 +02:00
tests add template-tests 2015-07-31 21:58:32 +02:00
.coveragerc exclude main-call from coverage 2015-07-31 22:01:28 +02:00
.pep8 add pep8-tests 2015-07-17 15:36:25 +02:00
LICENSE Initial 2015-03-05 18:48:10 +01:00
README.md add coverage 2015-07-29 21:34:46 +02:00
requirements.txt add installation-instructions 2015-07-13 21:14:03 +02:00
template.html remove unused bootstrap-js from template and remove generationtime 2015-07-13 21:07:05 +02:00
testing_requirements.txt add template-tests 2015-07-31 21:58:32 +02:00
tsstats.py move identmap-action from __add__ to __get__ 2015-07-31 13:09:08 +02:00

README.md

TeamspeakStats Build Status Coverage Status

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

Installation

  • Install Python
  • Clone this repo git clone https://github.com/Thor77/TeamspeakStats
  • Install requirements pip3 install -r requirements.txt

Usage

Run tsstats.py and point your web-server to the generated .html-file, now you will see some stats for your Teamspeak-Server parsed from the logs.

Tests

  • Install testing-requirements pip3 install -r testing_requirements.txt
  • Run nosetests

Configuration

###Configname config.ini

Keys

[General]

  • logpath Path to TS3Server-logfile (supports globbing)
  • outputfile Path to the location, where the generator will put the generated .html-file
  • debug Enable debug-mode
  • debugfile Enable debug-log to file

[HTML]

  • title HTML-Title

Example

[General]
logfile = /usr/local/bin/teamspeak-server/logs/ts3server*_1.log
outputfile = /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