Rayfall is a dynamic ham radio mapping interface that pulls your logbook data from QRZ and plots your QSOs on an interactive Leaflet map. You can explore contacts by date range, filter by band and mode, and visually analyze your contacts across different locations and timeframes.
Built by N2CLW
Available at rayfall.me
- Interactive Leaflet Map
- Multiple import methods:
- QRZ API integration (supports multiple logbooks)
- NEW: ADI/ADIF file import (no API key required!)
- Date range selection
- Color-coded pins by band or by QTH
- Multi-QTH support: logs that span multiple locations (travel, POTA, Field Day) get a separate marker per QTH, plus a QTH filter row and per-QSO "From QTH" info
- Customizable display options:
- Multiple pin icon styles (teardrop, circle, square, star)
- QTH station icons: clean shapes (dot, plus, square, signal) or emoji, with a color picker and optional grid label
- Custom grid square colors and opacity
- Multiple basemap styles
- Grid square overlay with 4/6-character precision
- Map lines from each QTH to its QSOs (toggle on/off)
- Filter QSOs by band, mode, or originating QTH
- High-resolution map export (300 DPI for printing)
- Auto-reads your QTH(s) from log data (
MY_GRIDSQUARE,MY_LAT/MY_LON) - Clean dropdown menu for display options
- Works offline with ADI files
- Python 3.11+
- pip
- Git
git clone https://github.com/moose25/rayfall.git
cd rayfallpython3 -m venv venv
source venv/bin/activate # On Windows: venv\Scripts\activatepip install -r requirements.txtNote: Required packages include FastAPI, uvicorn, and Jinja2. You can also install them manually:
pip install fastapi uvicorn jinja2uvicorn main:app --reloadThis starts the server locally at: http://127.0.0.1:8000
New users? Click the "π How to Use Rayfall" button (top-right) for interactive tutorials!
- Visit
http://127.0.0.1:8000in your browser. - Click the "Change API Key" button in the top-right.
- Paste in your QRZ Logbook API key and click Save.
- Choose a start and end date and click Load from QRZ.
- Filter contacts by band/mode and customize display options.
- Visit
http://127.0.0.1:8000in your browser. - Click "Import ADI File" and select your
.adior.adiffile. - Your QSOs load instantly - no API key needed!
- Filter contacts by band/mode and customize display options.
See QUICK_START_ADI.md for detailed ADI import guide.
Click the "βοΈ Display Options" button to access:
- Map Style: Light, Dark, Topographic, Satellite, Streets
- QTH Icon: Clean shapes (Dot, Plus, Square, Signal) or emoji, with a color picker and optional grid label under each marker
- Color Pins by QTH: color every contact by the QTH it was made from (great for multi-location trips)
- Pin Style: Teardrop, Circle, Square, or Star markers
- Grid Squares: Custom colors, opacity, and precision (4 or 6 chars)
All contacts with grid squares or lat/lon information will be plotted.
The "π How to Use Rayfall" button provides:
- Step-by-step setup instructions
- ADI import guide for all major logging software
- Display customization tutorials
- Filtering and export tips
- Pro tips for advanced usage
β You can switch logbooks anytime by clicking the API Key button again.
Rayfall does not store your API key on a server. Instead:
- It saves it to
localStoragein your browser. - The backend reads the key from request headers.
- No secret is ever exposed in the source code.
π This makes it safe to share or host this code publicly.
To generate a QRZ Logbook API Key:
- Go to https://logbook.qrz.com/
- Click on Settings > API
- Copy your unique API key
Rayfall centers on VA by default. Once a valid log is loaded, it updates to your actual QTH using the first valid MY_LAT/MY_LON (or the centre of MY_GRIDSQUARE) from the log. Logs that span multiple QTHs will show one marker per location.
If you'd like to hardcode a default starting location, edit:
map = L.map('map').setView([XXX, XXX], 4);Edit the styles directly in the <style> block inside index.html. All controls and map elements can be styled using standard CSS.
rayfall/
βββ main.py # FastAPI backend
βββ templates/
β βββ index.html # Frontend map UI
βββ static/
β βββ rayfall.png # Logo
β βββ screenshot.png # Screenshot
βββ requirements.txt # Python dependencies
βββ README.md # You're reading this
Pull requests and forks are welcome! If you find a bug or want to suggest a feature, feel free to open an issue or PR.
This project is open source and available under the MIT License.
Chris Williams (N2CLW)
73 and happy DXing!

