Topic: [TOOL] stats for teewars
Hi,
i wrote a little stats script for teewars. Get it here: http://teewars.meetr.de/teewars_stats.tar.bz2 Just a quick hack, but it works and maybe helps someone to write a better one. (If i have time maybe i'll write a better one myself )
It's opensource and you're free to do with it whatever you want, but please respect the copyright of the website design, i think its creative commons licensed but just ask the teewars guys before altering it.
To install it, first setup your server to log to a file, by starting it with ./teewars_srv -f my_config.cfg >> teewars.log. Then install jinja, which is described here: http://jinja.pocoo.org/download and run "stats.py teewars.log www/index.html", first argument is the logfile, the second the output file. You probably want to setup a cronjob to do this every 5 minutes or so.
I have the script running at http://teewars.meetr.de for my server at 87.118.118.174 and it runs pretty good, but if you find some bugs simply post here.
Have fun with it,
sid