Sov Campaign Timer for Alliance Auth
Project description
AA Sovereignty Timer
Sovereignty campaign overview for Alliance Auth.
Installation
Important: Please make sure you meet all preconditions before you proceed:
- AA Sovereignty Timer is a plugin for Alliance Auth. If you don't have Alliance Auth running already, please install it first before proceeding. (see the official AA installation guide for details)
- AA Sovereignty Timer needs the app django-eveuniverse to function. Please make sure it is installed, before continuing.
Step 1 - Install the app
Make sure you are in the virtual environment (venv) of your Alliance Auth installation. Then install the latest version:
pip install aa-sov-timer
Step 2 - Update your AA settings
Configure your AA settings (local.py
) as follows:
- Add
'eveuniverse',
toINSTALLED_APPS
- Add
'sovtimer',
toINSTALLED_APPS
Restart your supervisor
Step 3 - Finalize the installation
Copy static files and run migrations
python manage.py collectstatic
python manage.py migrate
Step 4 - Preload Eve Universe data
AA Sovereignty Timer uses Eve Universe data to map IDs to names for solar systems, regions and constellations. So you need to preload some data from ESI once. If you already have run this command, you can skip this step.
python manage.py eveuniverse_load_data map
python manage.py sovtimer_load_initial_data
Both commands might take a moment or two, so be patient ...
Step 5 - Setup permission
Now you can setup permissions in Alliance Auth for your users.
Add sovtimer | Sovereignty Timer | Can access the Sovereignty Timer module
to
the states and/or groups you would like to have access.
Step 6 - Keep campaigns updated
Add the following scheduled task to your local.py
. One done, restart your supervisor.
## AA Sovereignty Timer
# Run sovereignty related updates every 30 seconds
CELERYBEAT_SCHEDULE["sovtimer.tasks.run_sov_campaign_updates"] = {
"task": "sovtimer.tasks.run_sov_campaign_updates",
"schedule": 30.0,
}
Now your system is updating the sovereignty campains every 30 seconds.
Updating
To update your existing installation of AA Sovereignty Timer first enable your virtual environment.
Then run the following commands from your AA project directory (the one that
contains manage.py
).
pip install -U aa-sov-timer
python manage.py collectstatic
python manage.py migrate
Finally restart your AA supervisor services.
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Hashes for aa_sov_timer-0.6.1-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | f16a9fd0845fd680628df7e43b22c162b8283ffc7f0cb597abb61275adb7dea1 |
|
MD5 | 2d1e7ab3891f4f2b009d29c50f7a0e9b |
|
BLAKE2b-256 | cb505ec9855617014002ac5a216a36f0ead21a2eff57786ded632bdf2872c39e |