Skip to main content

Errbot APRS backend plugin

Project description

err-aprs-backend

An APRS Backend for Errbot

Requirements

  • Errbot >= 6.2.0
  • Python >= 3.11

Will probably work on Python 3.10 and higher, but the backend is only currently tested against 3.11.

Disclaimers ahead of time

You should probably only run this bot backend if you are a licensed Amateur radio operator. The bot itself does nothing to check if your call is valid besides the basic "authorization" that APRSIS does. Use this bot responsibly.

Anything the bot sends could go out over the airwaves and you are responsible for that, not the backend developers. The bot makes an attempt to filter out profanity, but that can be turned off (see config options). It is a very US English-centric filter.

Why Errbot and APRS

There are already a few other bot frameworks out there for APRS. For example, there's APRSD which is very full featured.

The errbot-aprs-backend was created to give another bot option for APRS users. Diversity is good!

By using errbot, APRS users can now get access to the errbot ecosystem of plugins and storage plugins. Errbot offers a robust, well-documented plugin framework for building out new APRS apps.

Current Status

Beta.

  • Only APRSIS is implemented.
  • Messages can be recieved and replied to.
  • You can expect reasonable reliablity but might hit crashes and need to file github issues.

Quickstart

  1. Setup a virtualenv using python 3.11
  2. Install errbot
  3. Install errbot-aprs-backend from pypi or from Github
  4. Configure your bot using the suggested config
  5. Pre-install your plugins
  6. Run your bot with errbot

The Errbot Setup guide has more details on how to install and run Errbot, administration tips, and more.

Suggested Config

APRS messaging works quite a bit differently from the average Errbot backend. This requires some diferent config from the average Errbot installation

APRS messaging is "unauthenticated". There is no way to attest you are who you say you are and all messaging is in the open, so using passcodes or keys to authenticate an admin is not suggested.

APRS messaging order is not guaranteed, nor is message delivery. The backend will automatically retry message delivery up to APRS_MESSAGE_MAX_RETRIES (default 7) unless it gets an ACK or a REJ from the recipient.

APRS messaging is limited to 67 characters. This makes long messages impractical.

Required Config

# Set the backend to APRS
BACKEND = "APRS"

# use bot_identity to provide your callsign and APRS password
BOT_IDENTITY = {
    "callsign": "YOURCALL-1",
    "password": "123456"
}

See CONFIG.md for more configuration options

Disable the default plugins

The default plugins allow configuring the bot, installing plugins, and returing detailed help information. These don't work well over APRS because you cannot authenticate an admin. You don't want just anyone able to install a plugin on your machine!

The backend has a built in Help that you can set to a static string in the config with APRS_HELP_TEXT. Setting this to a website with help info or more info about your bot would be a good way to send a user more details on your bot without needing to send Errbot's normal detailed help info.

CORE_PLUGINS = ()

Disable command not found

The command not found filter can get very chatty, responding to every message your bot receives. Disabling it will save on APRS bandwidth.

SUPPRESS_CMD_NOT_FOUND = True

Bot Prefix

You can leave your bot prefix on, but that's just extra characters. I prefer to make it optional so users don't have to send it on every command

BOT_PREFIX_OPTIONAL_ON_CHAT = True

Full Example Config

See examples/example_config.py for a full config with all possible values.

Plugin Suggestions

Simple plugins are going to work best, or write your own!

TODO

  • Figure out how to get storage like a plugin and use it to store the packet caches
  • Figure out a blocklist system
  • figure out how admins can configure without stopping the bot - web interface of some sort
  • unit testing

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

err_aprs_backend-0.5.1.tar.gz (26.1 kB view details)

Uploaded Source

Built Distribution

err_aprs_backend-0.5.1-py3-none-any.whl (33.1 kB view details)

Uploaded Python 3

File details

Details for the file err_aprs_backend-0.5.1.tar.gz.

File metadata

  • Download URL: err_aprs_backend-0.5.1.tar.gz
  • Upload date:
  • Size: 26.1 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/5.0.0 CPython/3.12.3

File hashes

Hashes for err_aprs_backend-0.5.1.tar.gz
Algorithm Hash digest
SHA256 56b09dc1f603eacd18566a0883914e55aa12facd38633cbc8e23f4baec8e2bce
MD5 b37ee8aee6e71d94ce189012ea58021a
BLAKE2b-256 8e48f681b0a48e6ab5b047b455b53dc606b7c95dee666964242720d808109827

See more details on using hashes here.

File details

Details for the file err_aprs_backend-0.5.1-py3-none-any.whl.

File metadata

File hashes

Hashes for err_aprs_backend-0.5.1-py3-none-any.whl
Algorithm Hash digest
SHA256 d0e53caca8ea046dd7647cfb1a7a58bb0b2f9bae24f397df4e33568a27cecd03
MD5 64bfc6d362ac1340cd778013392477f1
BLAKE2b-256 3bb09cbc30eea7706e328b2b8edc3863cda370d9a887adba8454d86a876512c4

See more details on using hashes here.

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page