- Notifications
You must be signed in to change notification settings - Fork1
World of Tanks Attendance Tracker
License
dot360/whyattend
Folders and files
Name | Name | Last commit message | Last commit date | |
---|---|---|---|---|
Repository files navigation
This web application helps a clan keep track of the clan warattendance of its players and with gold payouts.
- Python 2.7+
- Various Python libraries (See requirements.txt)These can be installed via "pip install -r requirements.txt"
As a Python WSGI application, this web application can be deployed invarious ways.See the Flask documentation (http://flask.pocoo.org/docs/deploying/) forfurther information.
- Copy
whyattend/config.py
tolocal_config.py
and adjust the settings. - Put your clan's logo into
whyattend/static/img/clanicons
. - Replace
whyattend/static/img/header.jpg
with an image of your choice.
After deployment, the initial database schema should be generated byopening/createdb?API_KEY=<configured API KEY>
in a browser.
The clan member roles can be synchronized with Wargaming's server byopening/sync-players/<clanid>/?API_KEY=<configured API KEY>
config.API_KEY
should be set to something random and secret, so only youcan trigger the synchronization.
This can be automated by a cron script, e.g:
#!/bin/bash# Synchronize WHY memberscurl "http://myserver.com/sync-players/500014725?API_KEY=supersecret"
Example 1:
apache2 + mod_wsgi
Follow the instructions from example 2 to install a virtual Python environmentand use the providedwsgi_app.wsgi
file as example.
The apache2 virtual host configuration could look like this:
WSGIDaemonProcess clanwars processes=1 threads=5WSGIProcessGroup clanwarsWSGIScriptAlias /clanwars /var/www/clanwars/wsgi_app.wsgiAlias /clanwars/static/ /var/www/clanwars/whyattend/static/<Directory /var/www/clanwars/whyattend/static> Order allow,deny Allow from all</Directory>
Example 2:
Tornado + Reverse Proxy (nginx/apache2)
On Debian 7 you'd have to do the following:
Adjust the settings inwhyattend/config.py
Then:
> apt-get install python python-pip python-virtualenv> virtualenv ./myenv> source ./myenv/bin/activate> pip install -r requirements.txt> pip install tornado
To start the server (here: Tornado):
> source ./myenv/bin/activate> python runtornado.py
This will start a Tornado server listening on port 5001. Itis recommended to let Tornado listen only on localhost and putit behind a web server such as nginx or apache.
About
World of Tanks Attendance Tracker