APRSD Webchat
Features
- This is the webchat extension for APRSD. This was removed from APRSD proper to help those installs that don't want/need the webchat capability and all of it's requirements.
Requirements
- aprsd >= 4.2.4
Installation
You can install APRSD Webchat via pip from PyPI:
$ pip install aprsd-webchat-extension
Or using uv:
$ uv pip install aprsd-webchat-extension
Configuration
Before running the webchat extension, you need to configure APRSD. The webchat extension uses the same configuration file as APRSD. Generate a sample configuration file if you haven't already:
$ aprsd sample-config
This will create a configuration file at ~/.config/aprsd/aprsd.conf (or aprsd.yml).
Required Configuration
The webchat extension requires the following basic APRSD configuration:
- Callsign: Your amateur radio callsign
- APRS-IS Network: Connection to APRS-IS servers
- APRS Passcode: Your APRS passcode (generate with
aprsd passcode YOURCALL)
Webchat-Specific Configuration
Add the following section to your APRSD configuration file to customize the webchat interface:
[aprsd_webchat_extension]
# Enable the webchat extension (default: True). When False, `aprsd webchat`
# exits without starting the web server or any APRS threads.
enabled = True
# IP address to listen on (default: 0.0.0.0 - all interfaces)
web_ip = 0.0.0.0
# Port to listen on (default: 8001)
web_port = 8001
# Beacon interval in seconds (default: 1800 = 30 minutes)
beacon_interval = 1800
# Disable URL request logging (default: False)
disable_url_request_logging = False
Note: Latitude and longitude are read from the [DEFAULT] section of your
APRSD configuration (where latitude and longitude are already configured
for APRSD core). There is no need to duplicate them in [aprsd_webchat_extension].
CORS / WebSocket Security
Webchat uses a WebSocket connection between the browser and the server. For security, the server restricts which browser origins are allowed to open that connection. The behaviour depends on your deployment:
DigiPi and direct LAN access (default — no configuration needed)
If your browser connects directly to the Pi by IP address or hostname (e.g.
http://192.168.1.42:8001 or http://raspberrypi.local:8001), no
configuration is required. Webchat automatically detects the machine's local
hostname and IP addresses at startup and permits only those origins.
Hosted service with a reverse proxy (e.g. aprsradio.online)
When a reverse proxy (nginx, caddy, etc.) sits in front of Flask and exposes
webchat at a public URL, the browser sends an Origin header containing the
public hostname — which the server cannot auto-detect. Set public_url to
that public-facing address:
[aprsd_webchat_extension]
# The public URL browsers use to reach this instance.
# Required when running behind a reverse proxy.
public_url = https://mycall.aprsradio.online
The auto-detected local origins (localhost, LAN IP) are still included
alongside public_url, so admin SSH-tunnel access continues to work.
aprsradio.online users: the hosting service sets
public_urlautomatically at provisioning time. You do not need to set it yourself.
Advanced: explicit origin list
If neither auto-detection nor public_url covers your setup, you can specify
the exact list of allowed origins. This replaces auto-detection entirely —
only the origins you list will be accepted.
[aprsd_webchat_extension]
# Comma-separated list of allowed WebSocket origins.
# Replaces all auto-detection when set.
allowed_origins = http://192.168.1.10:8001,https://mydomain.example.com
Quick reference
| Deployment | What to set |
|---|---|
DigiPi / direct LAN by IP or .local name |
Nothing — auto-detected |
| aprsradio.online (provisioned by the service) | public_url set automatically |
| Custom reverse proxy / public hostname | public_url = https://your.hostname |
| Multiple non-standard origins | allowed_origins = url1,url2 |
Authentication
The webchat interface uses HTTP Basic Authentication. You'll need to set up authentication credentials. The username and password are typically configured through your web server or reverse proxy (if using one), or you can set them in your APRSD configuration.
Usage
After installation and configuration, you can start the webchat server:
$ aprsd webchat
The webchat interface will be available at http://localhost:8001 (or the IP/port you configured).
Command-Line Options
$ aprsd webchat --help
Available options:
-p, --port PORT: Override the web port from configuration-f, --flush: Flush out all old aged messages on disk--loglevel LEVEL: Set logging level (DEBUG, INFO, WARNING, ERROR)--config-file FILE: Specify a different configuration file--quiet: Disable console logging output
Example: Running with Custom Port
$ aprsd webchat --port 9000 --loglevel INFO
This will start the webchat server on port 9000 instead of the default 8001.
Accessing the Web Interface
Once the server is running:
- Open your web browser
- Navigate to
http://your-server-ip:8001(or your configured port) - Enter your authentication credentials when prompted
- You'll see the APRSD WebChat interface
Features
- Send Messages: Send APRS messages to other stations
- Receive Messages: View incoming APRS messages in real-time
- Message Status: Track sent messages and their acknowledgments
- GPS Beacon: Send GPS beacons (if latitude/longitude are configured)
- Station Locations: View locations of stations you're communicating with
- Real-time Updates: Uses WebSockets for real-time message updates
Integration with aprsd-gps-extension
If you have aprsd-gps-extension installed and enabled, the webchat interface will
automatically use GPS data from that extension instead of the static latitude/longitude
configuration. This enables dynamic GPS beaconing based on actual GPS coordinates.
Contributing
Contributions are very welcome. To learn more, see the Contributor Guide.
License
Distributed under the terms of the Apache Software License 2.0 license, APRSD Webchat is free and open source software.
Issues
If you encounter any problems, please file an issue along with a detailed description.
Credits
This project was generated from @hemna's APRSD Extension Python Cookiecutter template.
Activity
Metadata
Release files for aprsd-webchat-extension 2.1.1
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| aprsd_webchat_extension-2.1.1.tar.gz | 2.5 MB | Without provenance | Details for aprsd_webchat_extension-2.1.1.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| aprsd_webchat_extension-2.1.1-py3-none-any.whl | Python 3 | none | any | Details for aprsd_webchat_extension-2.1.1-py3-none-any.whl |
Total release size: 4.8 MB
Release files / aprsd_webchat_extension-2.1.1.tar.gz
| Download URL | aprsd_webchat_extension-2.1.1.tar.gz |
|---|---|
| Size | 2.5 MB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
cd30c65587bfb860d444c47ad20b4e33d8c5ef0851e08ae986c12064b2decdb5
|
|
BLAKE2b-256 checksum How to use checksums |
9dc954d2c17f1b5edb72df4be80bf9e93f038bb240aaaf312bccc6cec6000146
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/7.0.0 CPython/3.13.5
|
Release files / aprsd_webchat_extension-2.1.1-py3-none-any.whl
| Download URL | aprsd_webchat_extension-2.1.1-py3-none-any.whl |
|---|---|
| Size | 2.3 MB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
a663a60e7003872c4fa83c0f0715dec9f4fc1444a8099c8aab41c23db56e6a17
|
|
BLAKE2b-256 checksum How to use checksums |
a5afb367965e2c505e2cd9ae15bf7786213bdae1183bc43df24f6436ea01b093
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/7.0.0 CPython/3.13.5
|
Security for aprsd-webchat-extension 2.1.1
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.