Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up

World of Tanks Attendance Tracker

License

NotificationsYou must be signed in to change notification settings

dot360/whyattend

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

55 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

This web application helps a clan keep track of the clan warattendance of its players and with gold payouts.

Dependencies

  • Python 2.7+
  • Various Python libraries (See requirements.txt)These can be installed via "pip install -r requirements.txt"

Deployment

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.

Configuration

  • Copywhyattend/config.py tolocal_config.py and adjust the settings.
  • Put your clan's logo intowhyattend/static/img/clanicons.
  • Replacewhyattend/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"

Deployment Example

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

Resources

License

Stars

Watchers

Forks

Packages

No packages published

[8]ページ先頭

©2009-2025 Movatter.jp