A simple Teamspeak stats-generator - based on server-logs
https://claytonia.net/tsstats.html
6638eaa044 | ||
---|---|---|
docs | ||
tsstats | ||
.coveragerc | ||
.gitignore | ||
.travis.yml | ||
LICENSE | ||
README.md | ||
requirements.txt | ||
screenshot.png | ||
setup.py | ||
testing_requirements.txt |
README.md
TeamspeakStats
A simple Teamspeak stat-generator - based on server-logs
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]
[-nod]
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
-nod, --noonlinedc don't add connect until now to onlinetime
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 |
onlinedc | Add timedelta from last-connect until now to onlinetime for connected clients |
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