Event calendar plugin app for Alliance Auth
Project description
Operation Calendar
An operation calendar app for Alliance Auth to display fleet operations and other events.
Includes:
- Calendar view of events
- Custom event categories
- Supports multiple event hosts
- Public and member events
- Detailed view for events
- Webhook for discord notifications
- Importing NPSI fleets for public sources
Upcoming:
- List view of events
Installation
- Install the Repo
pip install aa-opcalendar
- Add
'opcalendar',
to yourINSTALLED_APPS
in your projectslocal.py
- run migrations and restart auth
- setup your perms as documented below
Permissions
Perm | Auth Site |
---|---|
opcalendar basic_access | Can view the calendar page. |
opcalendar view_public | Can view events with public visibility. |
opcalendar view_member | Can view events with member only visibility. |
opcalendar create_event | Can create events. |
Usage
In order to use the calendar and create event you will need to create event hosts and event categories.
- Go to the admin site
- Add a Host. The first host is most likely your own alliance/corporation. Fill in at least the community name ie. your alliance name. This name will be displayed on the calendar view on the event block. You may fill in additional information which will be displayed on the detailed view for the event.
- Add a category. Next you will need to add at least one category for your events. Categories can be whatever you want to have such as STRATOP, mining, roam etc. The ticker for the event will be displayed both on the calendar view event block and on the detailed view for the event.
- Webhook for discord notifications (optional). If you want to receive notifications about your events (created/modified/deleted) on your discord you can add a webhook for the channel in discord you want to receive the notifications to. Add a webhook and connect it to the fleet signals.
- Add new event. To add new events simply go to the operation calendar and click on the add event button. Fill in the information for your event.
Importing NPSI fleets
Opcalendar has the ability to import predetermined NPSI fleets directly into your calendar. These operations will be labeled as imported
operations.
Opcalendar is currently supporting imports for the following NPSI fleets:
- Spectre fleet
To start importing fleets:
- Go to admin panel and select Event Imports
- Create a host for each import and fill in the needed details for them.
- Add a new import by pressing on the add event import button
- Select the source where you want to fetch the fleets.
- Determine operation type for each fetched fleet.
WARNING: Running the import function will delete all fleets labaled with the import label to get rid of possibly deleted operations.
To schedule the import runs either add the following line in your local.py file or set up a perioduc task for the opcalendar.tasks.import_fleets
task on your admin menu
CELERYBEAT_SCHEDULE['import_fleets'] = {
'task': 'opcalendar.tasks.import_fleets',
'schedule': crontab(minute=0, hour='*'),
}
Contributing
Make sure you have signed the License Agreement by logging in at https://developers.eveonline.com before submitting any pull requests. All bug fixes or features must not include extra superfluous formatting changes.
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_opcalendar-0.1.22-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | ad8c329c7e6eba1196f69049dbca5bebab03b72b8c47eaadcf7f6587e2a04933 |
|
MD5 | c5ac851f19916cb83233a84a56d05011 |
|
BLAKE2b-256 | f26c1b8c8fa2082f1294f3a5bcd928015ae1186e4dcd76f81c2e437a21a85b2f |