Metenox app config
Project description
from testauth.settings_aa3.base import CELERYBEAT_SCHEDULE
Metenox
AA module for Metenox management.
This module is still under active development and might have breaking changes
Features:
- Imports moon scans from the aa-moonmining application
- Import Metenoxes from a corporation
- Displays remaining fuel
- Displays currently stored moon materials
- Manager overview of corporation displaying their number of Metenoxes and profit
TODO:
- Setup notifications when the fuel/reagent levels are low
What this app won't do:
- Estimate moon price for athanor. Use aa-moonmining
- Ping when metenox are being reffed Use aa-structures
This module aims to be specific for Metenox management.
Screenshots
Installation
Step 1 - Check prerequisites
-
Metenox 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)
-
Metenox requires the Alliance Auth module aa-moonmining to function. The moon database and other utilities are imported from this module.
Step 2 - Install app
Make sure you are in the virtual environment (venv) of your Alliance Auth installation. Then install the newest release from PyPI:
pip install aa-metenox
Step 3 - Configure Auth settings
Configure your Auth settings (local.py
) as follows:
- Add
'metenox'
toINSTALLED_APPS
- Add below lines to your settings file:
CELERYBEAT_SCHEDULE['metenox_update_moon_prices'] = {
'task': 'metenox.tasks.update_moon_prices',
'schedule': crontab(minute='0', hour='*/12'),
}
CELERYBEAT_SCHEDULE['metenox_update_moons_from_moonmining'] = {
'task': 'metenox.tasks.update_moons_from_moonmining',
'schedule': crontab(minute='*/5'),
}
CELERYBEAT_SCHEDULE['metenox_update_all_holdings'] = {
'task': 'metenox.tasks.update_all_holdings',
'schedule': crontab(minute='0', hour='*/1')
}
Note: if you know you won't have moons added in the moonmining application often you can increase the delay of the metenox_update_moons_from_moonmining
task.
You can even not use it at all and only update moon scans with the metenox_update_moons_from_moonmining
command.
Optional: Alter the application settings. The list can be found in Settings
Step 4 - Finalize App installation
Run migrations & copy static files
python manage.py migrate
python manage.py collectstatic --noinput
Restart your supervisor services for Auth.
Setp 5 - Load Goo from ESI
Run the following management command to load all moon materials from ESI. This only has to be run once.
python manage.py metenox_load_eve
Wait until the command is finished before continuing.
Step 5 - Load data
First load the data from the moonmining module using
python manage.py metenox_update_moons_from_moonmining
Once it's done update their prices with
python manage.py metenox_update_all_prices
Settings
List of settings that can be modified for the application.
You can alter them by adding them in your local.py
file.
Name | Description | Default |
---|---|---|
METENOX_ADMIN_NOTIFICATIONS_ENABLE |
Whether admins will get notifications about important events like when someone adds a new owner. | True |
METENOX_MOON_MATERIAL_BAY_CAPACITY |
Volume of the Metenox's Moon material Output Bay. Used to calculate how long a metenox takes before being full. This value shouldn't be edited |
500_000 |
METENOX_HOURLY_HARVEST_VOLUME |
Hourly volume in m3 that a metenox will harvest. This value shouldn't be edited |
30_000 |
METENOX_HARVEST_REPROCESS_YIELD |
Yield at which the metenox reprocess the harvested materials. This value shouldn't be edited |
0.40 |
Commands
The following commands can be used when running the module:
Name | Description |
---|---|
metenox_load_eve |
Loads up the data from eveuniverse this command should only be ran once |
metenox_update_all_owners |
Updates all owners known in the database and adds the new metenoxes |
metenox_update_all_prices |
Fetches new prices from fuzzwork and update the price of all known moons |
metenox_update_moons_from_moonmining |
Checks the moonmining application and adds all missing moons |
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_metenox-0.1.13-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 8adc68300988a1eb8d215406f582a07e74764feacb93e1ecccae78443b71842d |
|
MD5 | 17e9cd92debe35051f4a00ce3686f655 |
|
BLAKE2b-256 | 8df4f1da1ba1cae049502aab3e6610274fc1aa2a0930170ff45bea5cc76007ec |