allianceauth-corptools-pinger


Nameallianceauth-corptools-pinger JSON
Version 0.3.3 PyPI version JSON
download
home_pagehttps://github.com/Solar-Helix-Independent-Transport/allianceauth-corp-tools-pinger
SummaryAlliance Auth Plugin
upload_time2023-07-29 11:10:52
maintainer
docs_urlNone
authorAaronKable
requires_python
licenseGNU General Public License v3 (GPLv3)
keywords
VCS
bugtrack_url
requirements No requirements were recorded.
Travis-CI No Travis.
coveralls test coverage
            # High Performance Pings

Leverage the corptools data to notify via discord certain events at a corp/alliance level

filter on/off regions/const/system/corps/alliances/types/strucutre type/notification type via admin. end specific notifications to different places via webhooks

configurable @ settings

# What Pings are Available:

## Structures

- attack/reinforce
  - StructureLostShields
  - StructureLostArmor
  - StructureUnderAttack
- low fuel ()
- abandoned ()
- destroyed (StructureDestroyed)
- low power (StructureWentLowPower)
- anchoring (StructureAnchoring)
- unanchoring (StructureUnanchoring)
- high power (StructureWentHighPower)
- transfer (OwnershipTransferred)

## POS

- attack/reinforce
  - TowerAlertMsg

## Sov

- attacks
  - SovStructureReinforced
  - EntosisCaptureStarted
- pos anchoring (AllAnchoringMsg)

## Moons

- Extraction Started (MoonminingExtractionStarted)
- Extraction Complete (MoonminingExtractionFinished)
- Laser Fired (MoonminingLaserFired)
- auto fracture (MoonminingAutomaticFracture)

## HR

- New application (CorpAppNewMsg)

# Optimisation

## Separate Worker Queue

Edit `myauth/myauth/celery.py`

```python
app.conf.task_routes = {.....
                        'pinger.tasks.corporation_notification_update': {'queue':'pingbot'},
                        .....
                        }
```

Add program block to `supervisor.conf`

```ini
[program:pingbot]
command=/path/to/venv/venv/bin/celery -A myauth worker --pool=threads --concurrency=5 -Q pingbot
directory=/home/allianceserver/myauth
user=allianceserver
numprocs=1
stdout_logfile=/home/allianceserver/myauth/log/pingbot.log
stderr_logfile=/home/allianceserver/myauth/log/pingbot.log
autostart=true
autorestart=true
startsecs=10
stopwaitsecs=60
killasgroup=true
priority=998
```



            

Raw data

            {
    "_id": null,
    "home_page": "https://github.com/Solar-Helix-Independent-Transport/allianceauth-corp-tools-pinger",
    "name": "allianceauth-corptools-pinger",
    "maintainer": "",
    "docs_url": null,
    "requires_python": "",
    "maintainer_email": "",
    "keywords": "",
    "author": "AaronKable",
    "author_email": "aaronkable@gmail.com",
    "download_url": "https://files.pythonhosted.org/packages/1f/1f/3c210c43d5aaadeec2ba9192661f34f623a02953e9c5af276cd3b284213a/allianceauth-corptools-pinger-0.3.3.tar.gz",
    "platform": null,
    "description": "# High Performance Pings\n\nLeverage the corptools data to notify via discord certain events at a corp/alliance level\n\nfilter on/off regions/const/system/corps/alliances/types/strucutre type/notification type via admin. end specific notifications to different places via webhooks\n\nconfigurable @ settings\n\n# What Pings are Available:\n\n## Structures\n\n- attack/reinforce\n  - StructureLostShields\n  - StructureLostArmor\n  - StructureUnderAttack\n- low fuel ()\n- abandoned ()\n- destroyed (StructureDestroyed)\n- low power (StructureWentLowPower)\n- anchoring (StructureAnchoring)\n- unanchoring (StructureUnanchoring)\n- high power (StructureWentHighPower)\n- transfer (OwnershipTransferred)\n\n## POS\n\n- attack/reinforce\n  - TowerAlertMsg\n\n## Sov\n\n- attacks\n  - SovStructureReinforced\n  - EntosisCaptureStarted\n- pos anchoring (AllAnchoringMsg)\n\n## Moons\n\n- Extraction Started (MoonminingExtractionStarted)\n- Extraction Complete (MoonminingExtractionFinished)\n- Laser Fired (MoonminingLaserFired)\n- auto fracture (MoonminingAutomaticFracture)\n\n## HR\n\n- New application (CorpAppNewMsg)\n\n# Optimisation\n\n## Separate Worker Queue\n\nEdit `myauth/myauth/celery.py`\n\n```python\napp.conf.task_routes = {.....\n                        'pinger.tasks.corporation_notification_update': {'queue':'pingbot'},\n                        .....\n                        }\n```\n\nAdd program block to `supervisor.conf`\n\n```ini\n[program:pingbot]\ncommand=/path/to/venv/venv/bin/celery -A myauth worker --pool=threads --concurrency=5 -Q pingbot\ndirectory=/home/allianceserver/myauth\nuser=allianceserver\nnumprocs=1\nstdout_logfile=/home/allianceserver/myauth/log/pingbot.log\nstderr_logfile=/home/allianceserver/myauth/log/pingbot.log\nautostart=true\nautorestart=true\nstartsecs=10\nstopwaitsecs=60\nkillasgroup=true\npriority=998\n```\n\n\n",
    "bugtrack_url": null,
    "license": "GNU General Public License v3 (GPLv3)",
    "summary": "Alliance Auth Plugin",
    "version": "0.3.3",
    "project_urls": {
        "Homepage": "https://github.com/Solar-Helix-Independent-Transport/allianceauth-corp-tools-pinger"
    },
    "split_keywords": [],
    "urls": [
        {
            "comment_text": "",
            "digests": {
                "blake2b_256": "1f1f3c210c43d5aaadeec2ba9192661f34f623a02953e9c5af276cd3b284213a",
                "md5": "df5d42b19ed728bcaa970c20c25da632",
                "sha256": "a62a2aef1bf89e60fc470108b890a71c910a45238350a234f096a631120f1a4a"
            },
            "downloads": -1,
            "filename": "allianceauth-corptools-pinger-0.3.3.tar.gz",
            "has_sig": false,
            "md5_digest": "df5d42b19ed728bcaa970c20c25da632",
            "packagetype": "sdist",
            "python_version": "source",
            "requires_python": null,
            "size": 27286,
            "upload_time": "2023-07-29T11:10:52",
            "upload_time_iso_8601": "2023-07-29T11:10:52.646013Z",
            "url": "https://files.pythonhosted.org/packages/1f/1f/3c210c43d5aaadeec2ba9192661f34f623a02953e9c5af276cd3b284213a/allianceauth-corptools-pinger-0.3.3.tar.gz",
            "yanked": false,
            "yanked_reason": null
        }
    ],
    "upload_time": "2023-07-29 11:10:52",
    "github": true,
    "gitlab": false,
    "bitbucket": false,
    "codeberg": false,
    "github_user": "Solar-Helix-Independent-Transport",
    "github_project": "allianceauth-corp-tools-pinger",
    "travis_ci": false,
    "coveralls": true,
    "github_actions": true,
    "tox": true,
    "lcname": "allianceauth-corptools-pinger"
}
        
Elapsed time: 0.09716s