TeamspeakStats/README.md

48 lines
1.2 KiB
Markdown
Raw Normal View History

2015-03-05 12:48:10 -05:00
# TeamspeakStats
A simple Teamspeak stat-generator - based on server-logs
2015-03-13 16:03:42 -04:00
# 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.
# Configuration
###Configname
`config.ini`
2015-05-12 15:38:34 -04:00
#### Keys
`[General]`
- logfile `Path to TS3Server-logfile`
- outputfile `Path to the location, where the generator will put the generated .html-file`
2015-05-12 15:38:34 -04:00
`[HTML]`
- title `HTML-Title`
- onlinetime `Show the onlinetime-section (default=True)`
- kicks `Show the kicks-section (default=True)`
- pkicks `Show the passive-kicks-section (default=True)`
- bans `Show the bans-section (default=True)`
- pbans `Show the passive-bans-section (default=True)`
## Example
```
[General]
logfile = /usr/local/bin/teamspeak-server/logs/ts3server_2015-03-02__14_01_43.110983_1.log
outputfile = /var/www/html/stats.html
2015-05-12 15:38:34 -04:00
[HTML]
title = TeamspeakStats
bans = False
```
# ID-Mapping
`id_map.json`
You can map multiple ID's to one (for example, when an user creates a new identity)
## Example
```json
{
"1": "2",
"3": "2"
}
```
2015-05-12 15:38:34 -04:00
The online-time of `1` and `3` will be added to the online-time of `2`
2015-03-13 16:03:42 -04:00
# TODO
- Localization