hamalert-notifier is a tool for amateur radio operators and clubs to receive output from HamAlert, format it to be compatible with Slack webhooks, and posts the notifications to a Slack channel. This helps users track DX spots and alerts in real time. This repository includes scripts and configuration examples for setting up automated Slack notifications.
Files
hamalert-notifier.py: Main script that runs as a service.hamalert-sample.json: Example JSON output from HamAlert.
Instructions
- Create a Slack app, configure an incoming webhook, and set the
SLACK_WEBHOOK_URLin the script. - Set the TCP port number in the script, if the default 8000 interferes with other services.
- Add that port to your server's firewall
- Add the port to your Internet firewall/router's port forwarding / NAT rules, if relevant.
- Run the script on your server with
python3 hamalert-notifier.py, or make it a service on your Linux host. - Log into HamAlert, go to Destinations (top menu) and add the web address to your server under "URL notifications" and set the method to POST (JSON)
- Send a test spot from the Simulate page (top menu)