diff --git a/README.md b/README.md index f85ac70..2250ee6 100644 --- a/README.md +++ b/README.md @@ -8,21 +8,39 @@ Run `tsstats.py` and point your web-server to the generated .html-file, now you ###Configname `config.ini` -###Sections +#### Keys `[General]` -### Keys -- title `HTMl-Title` - logfile `Path to TS3Server-logfile` - outputfile `Path to the location, where the generator will put the generated .html-file` +`[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)` ## Example ``` [General] -title = TeamspeakStats logfile = /usr/local/bin/teamspeak-server/logs/ts3server_2015-03-02__14_01_43.110983_1.log outputfile = /var/www/html/stats.html +[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" +} +``` +The online-time of `1` and `3` will be added to the online-time of `2` + # TODO - Localization -- Map multiple ID's to one user (`json`) +- find a better way to count kicks and bans diff --git a/template.html b/template.html index 7459f86..24bcd33 100644 --- a/template.html +++ b/template.html @@ -11,6 +11,7 @@
{# Onlinetime #} + {% if show_onlinetime is sameas true %}generated in {{ seconds }} at {{ date }}