|
|
2 days ago | |
|---|---|---|
| .github | 4 days ago | |
| dxspider-proxy | 2 days ago | |
| electron | 7 days ago | |
| iturhfprop-service | 3 days ago | |
| public | 3 days ago | |
| scripts | 3 days ago | |
| src | 2 days ago | |
| wsjtx-relay | 3 days ago | |
| .dockerignore | 3 days ago | |
| .env.example | 3 days ago | |
| .gitignore | 3 days ago | |
| CHANGELOG.md | 3 days ago | |
| CODE_OF_CONDUCT.md | 7 days ago | |
| CONTRIBUTING.md | 4 days ago | |
| Dockerfile | 3 days ago | |
| LICENSE | 7 days ago | |
| PLUGIN_DOCUMENTATION_SUMMARY.md | 2 days ago | |
| README.md | 2 days ago | |
| TODAYS_PLUGIN_UPDATES.md | 2 days ago | |
| config.example.json | 3 days ago | |
| config.js | 7 days ago | |
| docker-compose.yml | 3 days ago | |
| index.html | 4 days ago | |
| package.json | 3 days ago | |
| railway.json | 5 days ago | |
| railway.toml | 7 days ago | |
| screenshot.png | 5 days ago | |
| server.js | 2 days ago | |
| vite.config.js | 4 days ago | |
| vite.config.mjs | 3 days ago | |
README.md
OpenHamClock
A real-time amateur radio dashboard for the modern operator.
OpenHamClock brings DX cluster spots, space weather, propagation predictions, POTA activations, PSKReporter, satellite tracking, WSJT-X integration, and more into a single browser-based interface. Run it locally on a Raspberry Pi, on your desktop, or access it from anywhere via a cloud deployment.
🌐 Live Site: openhamclock.com
📧 Contact: Chris, K0CJH — chris@cjhlighting.com
☕ Support the Project: buymeacoffee.com/k0cjh — Running openhamclock.com comes with real hosting costs including network egress, memory, CPU, and the time spent maintaining and improving the project. There is absolutely no obligation to donate — OpenHamClock is and always will be free. But if you find it useful and want to chip in, your donations are greatly appreciated and go directly toward keeping the site running and funding future development.
🔧 Get Involved: This is an open-source project and the amateur radio community is encouraged to dig into the code, fork it, and build the features you want to see. Whether it's a new panel, a data source integration, or a bug fix — PRs are welcome. See Contributing below.
📝 License: MIT — See LICENSE
Quick Start
git clone https://github.com/accius/openhamclock.git
cd openhamclock
npm install
npm start
Open http://localhost:3000 in your browser. On first run, the server creates a .env file from .env.example and builds the React frontend automatically. A setup wizard will walk you through entering your callsign and grid locator.
You can also configure your station by editing .env directly:
# .env — the only two lines you need to change
CALLSIGN=K0CJH
LOCATOR=EN10
Restart with npm start after editing .env to apply changes.
For development with hot reload:
# Terminal 1 — Backend
node server.js
# Terminal 2 — Frontend (hot reload on http://localhost:5173)
npm run dev
Table of Contents
- Dashboard Modules
- Themes and Layouts
- Map Layers and Plugins
- Languages
- Configuration Reference
- Deployment
- DX Spider Proxy
- WSJT-X Relay Agent
- Updating
- Architecture
- API Endpoints
- Frequently Asked Questions
- Contributing
- Credits
- License
Dashboard Modules
OpenHamClock is built from independent modules, each focused on a specific data source or function. Every module fetches its own data, manages its own refresh cycle, and can be toggled on or off. Below is a detailed walkthrough of each one.
World Map
The central interactive map is the heart of the dashboard. It ties every other module together visually — DX spots, POTA activators, satellite orbits, signal paths, and your own station location all appear here.
What it shows:
- Your station (DE) — A labeled marker at your configured location with your callsign.
- DX cluster spots — Colored circle markers for each DX spot, color-coded by band (160m = dark red, 80m = orange, 40m = yellow, 20m = green, 15m = cyan, 10m = magenta, etc.). Click any marker to see the full callsign, frequency, mode, spotter, and DXCC entity.
- Great-circle signal paths — Lines drawn from your station to each DX spot showing the shortest path on the globe. These are true great-circle paths, not straight lines.
- POTA activators — Green triangle markers for Parks on the Air activators. Click for park name, reference number, frequency, mode, and spot time.
- Satellite positions — Colored markers for amateur radio satellites with orbital track lines showing their predicted path.
- PSKReporter paths — Signal paths from the PSKReporter network showing who is hearing whom on digital modes.
- Day/night terminator — A shaded overlay showing which parts of the Earth are in darkness, updated in real time.
- Map legend — Bottom-left corner shows the color key for all band markers plus DE, DX, sun, and moon icons.
How to use it:
- Pan and zoom: Click and drag to pan, scroll wheel to zoom. Double-click to zoom in.
- Toggle overlays: Use the header bar buttons to turn DX Paths, DX Labels, POTA, Satellites, PSKReporter, and WSJT-X overlays on and off. Each button shows its current state (highlighted = on).
- Click any marker to see detailed information in a popup.
- Set a DX target: Click anywhere on the map to set a DX target location for propagation predictions. The DX panel on the right sidebar updates with the bearing, distance, and grid square of wherever you clicked.
How it works under the hood: The WorldMap.jsx component uses Leaflet.js for rendering. DX spot coordinates are resolved in order of precision: callsign database lookup → DXCC prefix table → Maidenhead grid square extracted from spot comments. Great-circle paths are calculated using the Haversine formula and rendered as polylines with intermediate waypoints for visual accuracy. The day/night terminator is computed from the current solar declination and hour angle. The map tile style adapts to your selected theme (dark tiles for dark themes, light tiles for light themes).
DX Cluster
Live DX spots streamed from the worldwide DX Spider cluster network. This is the primary data feed for most operators — every spot that comes through the cluster appears here in real time.
What it shows:
- A scrollable list of all active DX spots
- Each spot includes: spotted callsign, frequency (MHz), mode, spotter callsign, time (UTC), and DXCC entity name
- Spots are color-coded by band for quick visual scanning
- A "My Spots" indicator highlights when your callsign is spotted by someone else
- The spot count and active filter count are shown in the panel header
How to use it:
- View spots: Spots appear automatically in the panel, newest at the top. The list scrolls and shows all spots within the retention window.
- Hover over a spot to highlight its signal path on the map.
- Open filters: Click the funnel icon (⊕ Filter) to open the DX Filter Manager.
- Toggle map display: Click the "⊞ Map ON/OFF" button in the panel header to show or hide DX spots on the map.
Filtering (DX Filter Manager):
The filter manager has six tabs, each with its own set of filters. Filters are AND-combined (a spot must pass all active filters to be shown):
- Zones — Filter by continent (NA, SA, EU, AF, AS, OC, AN), CQ zone (1–40), or ITU zone (1–90). Click a continent or zone number to toggle it. "Select All" and "Clear" buttons at the top of each section.
- Bands — Show only spots on specific bands: 160m, 80m, 60m, 40m, 30m, 20m, 17m, 15m, 12m, 11m, 10m, 6m, 2m, 70cm. Click each band to toggle.
- Modes — Filter by operating mode: CW, SSB, FT8, FT4, RTTY, PSK, JT65, JS8, SSTV, AM, FM. Click each mode to toggle.
- Watchlist — Enter specific callsigns you want to track (e.g., rare DX or friends). When "Watchlist Only" is checked, the panel shows only those callsigns.
- Exclude — Enter callsigns to always hide (e.g., pirate stations or stations you've already worked).
- Settings — Configure the DX cluster data source and spot retention time.
All filter settings are saved to your browser's localStorage and persist across sessions.
DX cluster source options (configurable in Settings → DX Cluster tab or in .env):
| Source | Description |
|---|---|
| DX Spider Proxy (default) | Persistent telnet connection to the DX Spider network via a proxy microservice. Most reliable, best spot volume. |
| HamQTH | Spots from HamQTH's DX cluster HTTP feed. No telnet required. |
| DXWatch | Spots from the DXWatch cluster. |
| Auto | Tries all sources in order and uses the first one that responds. |
Spot retention: Spots remain in the list for 30 minutes by default. Change this via the SPOT_RETENTION_MINUTES variable in .env (range: 5–30 minutes) or in the DX Filter Manager settings tab.
How it works under the hood: The backend (server.js) connects to the DX Spider cluster network through the DX Spider Proxy microservice (a separate Node.js process that maintains a persistent telnet connection). The proxy parses incoming spot lines, and the main server resolves station locations through a built-in DXCC prefix table (340+ prefixes covering all DXCC entities). The frontend polls /api/dxcluster/spots every 5 seconds. Coordinates are resolved in priority order: direct callsign database → DXCC prefix → Maidenhead grid square extracted from the spot comment field.
PSKReporter
Real-time digital mode reception reports from the PSKReporter network. Shows who is hearing whom across all digital modes worldwide — an invaluable tool for checking your signal reach on FT8, FT4, JS8, and other digital modes.
What it shows:
- A two-tab panel: TX (who is hearing your signal) and RX (who you are hearing)
- Each report includes: callsign, frequency, mode, SNR (signal-to-noise ratio in dB), grid square, and age of the report
- Signal paths drawn on the map between senders and receivers
- Total report count displayed in the panel header
How to use it:
- TX tab: Shows stations that have reported receiving your signal. This tells you where your signal is reaching. Sort by SNR to see your strongest reports.
- RX tab: Shows stations whose signals you are receiving (as reported to PSKReporter by your software). This shows what you can hear.
- Open filters: Click the PSK filter button to configure band, mode, and time window filters.
- Toggle map display: Click "⊞ Map ON/OFF" to show or hide PSKReporter signal paths on the map.
- Click any report to center the map on that station's location.
PSK Filter Manager options:
- Band filter — Show only specific bands
- Mode filter — FT8, FT4, JS8, WSPR, JT65, etc.
- Time window — 5 minutes, 15 minutes, 30 minutes, or 1 hour
- My callsign only — Toggle between showing only your reports or all traffic in view
Data sources (automatic, no configuration needed):
- MQTT WebSocket (primary) — Connects directly to
mqtt.pskreporter.infoover WebSocket for true real-time streaming. New reports appear within seconds. The client subscribes to MQTT topics matching your callsign and filters. - HTTP API (fallback) — If the MQTT connection fails to establish within 12 seconds, the system automatically falls back to polling the PSKReporter HTTP API through the server proxy. This still works, just with slightly less immediacy.
The current connection method is shown in the panel footer. You don't need to configure anything — the system handles failover automatically.
How it works under the hood: The usePSKReporter hook in the frontend connects to the PSKReporter MQTT broker over a WebSocket connection, subscribes to spot topics matching your callsign and active filters, and parses the compact binary message format (sender call, receiver call, locators, frequency, mode, SNR). Grid squares are converted to latitude/longitude for map display using the Maidenhead locator system. The server provides an HTTP fallback via /api/pskreporter/http/:call with a 2-minute cache and automatic backoff on 403/429 responses.
POTA — Parks on the Air
Shows all currently active POTA activators worldwide with their park references, frequencies, and map locations. If you're a POTA hunter, this panel tells you exactly who is on the air right now and where.
What it shows:
- A scrollable list of all active POTA activators with:
- Callsign (green)
- Location code (state/province abbreviation like US-FL, CA-ON)
- Frequency (MHz)
- Spot time (UTC)
- Total activator count in the panel header (e.g., "▲ POTA ACTIVATORS (42)")
- Green triangle markers on the map for each activator
- Callsign labels on map (visible when DX Labels are enabled)
- Click a map marker to see the full park name, reference number (e.g., US-3844), frequency, mode, and spot time
How to use it:
- Scan the panel for interesting activations — look for states, provinces, or countries you need.
- Click "⊞ Map ON/OFF" to toggle POTA markers on the map. Green triangles appear at each activator's park location.
- Click any green triangle on the map for full details including park name.
- Enable DX Labels (in the header bar) to see callsign labels next to each triangle on the map.
Smart filtering (automatic, no configuration needed):
- Operators who have signed off (comments containing "QRT") are automatically hidden
- Expired spots (less than 60 seconds remaining on the POTA server) are filtered out
- Spots are sorted newest-first so the freshest activations are always at the top
- The POTA API typically returns 40-80 active activators during daylight hours
How it works under the hood: The server proxies the POTA API (api.pota.app/spot/activator) with a 1-minute cache to reduce load on the upstream service. The usePOTASpots hook fetches spots every 60 seconds, filters out QRT/expired entries, sorts by recency, and resolves coordinates from the API's latitude/longitude fields. For the rare case where the API returns a spot without coordinates, the hook falls back to Maidenhead grid square conversion (grid6 → grid4 → center of grid).
Space Weather
Displays the three key solar indices that affect HF radio propagation. If you operate HF, these numbers directly determine what bands will be open.
What it shows:
- SFI (Solar Flux Index) — The 10.7 cm solar radio flux, measured daily at the Dominion Radio Astrophysical Observatory. This is the single most important number for HF propagation:
- SFI < 70: Poor conditions, only lower bands (40m–160m) reliably open
- SFI 70–100: Fair conditions, mid-bands (20m–30m) open
- SFI 100–150: Good conditions, higher bands (15m–17m) opening
- SFI > 150: Excellent conditions, 10m and 12m wide open
- K-Index (Kp) — Planetary geomagnetic disturbance level on a 0–9 scale. Lower is better for HF:
- Kp 0–2 (green): Quiet — excellent HF conditions
- Kp 3–4 (amber): Unsettled — noticeable degradation, especially on polar paths
- Kp 5+ (red): Storm — significant HF disruption, possible blackouts on higher bands
- SSN (Sunspot Number) — Daily sunspot count from the Royal Observatory of Belgium. Correlates with the 11-year solar cycle. Higher SSN means more ionization and better HF conditions.
- Band conditions summary — An overall assessment combining SFI and Kp: EXCELLENT, GOOD, FAIR, or POOR.
How to use it: Check these numbers before getting on the air. High SFI + low Kp = good day for DX. The space weather values are also displayed in the header bar for quick reference without scrolling.
Data source: NOAA Space Weather Prediction Center (SWPC) JSON feeds. Updates every 5 minutes.
Solar Panel
A multi-view panel that cycles through four displays. Click the toggle button in the panel header to switch between them. Your selection persists across sessions.
View 1 — Solar Image: Live solar imagery showing current sunspot activity and coronal features. Useful for spotting active regions that may produce flares.
View 2 — Solar Indices: Detailed SFI, K-index, and SSN values with 30-day history sparkline charts. This gives you a trend view — is the SFI trending up or down this month? Are geomagnetic storms becoming more frequent?
View 3 — X-Ray Flux: Real-time GOES satellite X-ray flux chart showing solar flare activity over the past 6 hours. Flares are classified by peak flux: A (quiet) → B → C → M → X (intense). M-class and X-class flares can cause HF radio blackouts on the sunlit side of Earth. The current flare class is displayed prominently.
View 4 — Lunar Phase: Current moon phase with a visual SVG rendering, illumination percentage, and calculated dates for the next full and new moon. Useful for EME (Earth-Moon-Earth) operators who need to know moon position and illumination for moonbounce contacts.
How to use it: Click the cycle button (◀ ▶ arrows or the view label) in the panel header to rotate through all four views. The panel remembers which view you last used.
Data sources: Solar indices from NOAA SWPC. X-ray flux from GOES satellite primary sensor feed. Lunar phase calculated astronomically from the current date using the synodic month (29.53059 days).
Band Conditions
Shows the current usability of each HF band based on real-time space weather conditions. This is your at-a-glance guide for which bands are worth tuning to right now.
What it shows:
Each HF band from 160m through 6m with a condition indicator:
- Green (OPEN) — Band is open with good propagation. Get on the air!
- Amber (MARGINAL) — Band may be usable but conditions are degraded. Short-range contacts likely, DX uncertain.
- Red (CLOSED) — Band is not supporting propagation. Don't waste your time here.
How to use it: Before tuning to a band, check its condition indicator here. If 15m is green and 10m is amber, start on 15m. Combine this with the DX cluster spots to see where activity actually is.
How it works under the hood: The useBandConditions hook takes the current SFI and K-index and applies a propagation model that considers each band's relationship with solar flux. Higher bands (10m, 12m, 15m) require higher SFI to open because their critical frequencies are higher. Lower bands (80m, 160m) are more affected by geomagnetic disturbance (high Kp) because auroral absorption hits lower frequencies harder on polar paths. Time of day at your location is also factored in — 10m doesn't open at night regardless of SFI.
Propagation Predictions
HF propagation reliability predictions between your station (DE) and whatever DX target you've selected on the map.
What it shows:
- Per-band signal reliability as a percentage for each HF band
- Color-coded bars: green (>60% reliable), amber (30–60%), red (<30%)
- Predictions update automatically when you change your DX target on the map
How to use it:
- Click anywhere on the map to set a DX target location (or use the DX panel to enter coordinates).
- The propagation panel recalculates predictions for the path between your station and that target.
- Look for bands with high reliability percentages — those are your best bets for making contact.
- Predictions change throughout the day as ionospheric conditions evolve, so check back periodically.
Standard mode: Uses a built-in propagation model based on current SFI, SSN, Kp, great-circle path distance, solar zenith angle, geomagnetic latitude, and estimated MUF (Maximum Usable Frequency) for each band.
Advanced mode (ITURHFProp): If you deploy the optional ITURHFProp microservice (in the iturhfprop-service/ directory), propagation predictions use the full ITU-R P.533 recommendation model. This is the international standard for HF propagation prediction and provides significantly more accurate results. Set ITURHFPROP_URL in .env to enable this.
Hybrid correction: When ionosonde data is available from prop.kc2g.com, the system applies real-time corrections based on actual measured ionospheric conditions rather than just modeled values. This can catch unusual propagation events that models miss.
Data refresh: Predictions update every 10 minutes.
Satellites
Real-time tracking of amateur radio satellites with orbital visualization on the map.
What it shows:
- Satellite positions as colored markers on the map, updated every 5 seconds
- Orbital track lines showing each satellite's path over the next pass
- Satellite name, altitude, and coordinates in the popup
How to use it:
- Toggle satellites on/off using the satellite button (🛰) in the header bar.
- Satellites that are currently above the horizon from your location are highlighted.
- Click any satellite marker on the map to see its name, altitude, and current position.
Satellite catalog: Includes 40+ amateur radio satellites from CelesTrak's amateur radio TLE catalog: ISS, RS-44, AO-91, AO-92, QO-100, FO-99, CAS-4A/B, and many more.
How it works under the hood: The server fetches Two-Line Element (TLE) data from CelesTrak every 6 hours. The frontend uses the satellite.js library to run SGP4 orbital mechanics calculations in the browser, predicting each satellite's position at the current time. Position updates run every 5 seconds for smooth motion on the map.
Contests
Upcoming and currently active amateur radio contests from the global contest calendar.
What it shows:
- Contest name, dates, modes, and bands
- Active contests are highlighted so you know what's happening right now
- Countdown timer to upcoming contests
How to use it: Check this panel when planning your weekend operating. If a major contest is active, expect the bands to be packed — great for quick QSOs, less great for ragchewing.
Data source: Contest Calendar RSS feed from contestcalendar.com, updated every 30 minutes.
DXpeditions
Active and upcoming DXpeditions to rare DXCC entities. If you're chasing new countries for DXCC, this is where you find out who's operating from where.
What it shows:
- Callsign, target DXCC entity, dates, and operating frequencies/modes
- Active DXpeditions highlighted
- Upcoming expeditions with start dates
Data source: Parsed from NG3K's DXpedition listing, updated every 30 minutes.
DX News Ticker
A scrolling ticker across the top of the dashboard showing the latest DX news headlines. Stay informed about upcoming activations, band openings, and amateur radio events without leaving the dashboard.
Data source: Scraped from DXNews.com, updated every 30 minutes.
WSJT-X Integration
Live decoded FT8, FT4, JT65, JT9, and WSPR messages from WSJT-X, JTDX, or any compatible digital mode software. See decoded stations on the map in real time as they come in.
What it shows:
- Decoded callsigns, frequencies, signal reports (SNR), and grid squares
- Real-time list of incoming decodes as they happen
- Decoded stations plotted on the map when grid squares are available
Local setup (WSJT-X on the same machine):
- Make sure
WSJTX_ENABLED=truein your.env(this is the default). - In WSJT-X: go to Settings → Reporting → UDP Server.
- Set Address to
127.0.0.1and Port to2237. - Check "Enable" if it isn't already.
- Start decoding — spots should appear in OpenHamClock within seconds.
Network setup (WSJT-X on a different machine on your LAN):
- Set
HOST=0.0.0.0in OpenHamClock's.envso it accepts connections from other machines. - In WSJT-X: set the UDP Server address to your OpenHamClock machine's IP (e.g.,
192.168.1.100) and port2237. - Make sure UDP port 2237 is not blocked by a firewall.
Cloud setup (OpenHamClock on a remote server):
WSJT-X sends data over UDP, which only works on a local network. For cloud deployments (like Railway or openhamclock.com), you need the WSJT-X Relay Agent to bridge the gap. See the WSJT-X Relay Agent section below.
How it works under the hood: The Node.js server (server.js) opens a UDP listener on port 2237 (configurable via WSJTX_UDP_PORT). It parses the WSJT-X binary protocol (QDataStream format) to extract decoded messages, heartbeat status, and QSO logs. The frontend polls /api/wsjtx/decodes every 2 seconds. For cloud deployments, the relay agent captures UDP packets locally and forwards them to the server over HTTPS using a shared secret key.
Local Weather
Current weather conditions at your station location, displayed in the header bar and the DE location panel.
What it shows:
- Temperature in both °F and °C (always shown in the header)
- Weather description (clear, cloudy, rain, snow, etc.) with an emoji icon
- Humidity and wind speed
- Collapsible detail view in the DE panel (click to expand/collapse)
How to use it: The weather is shown automatically based on your configured station coordinates. Click the weather line in the DE panel to expand full details or collapse to a one-line summary.
Data sources:
- Open-Meteo (default) — Free weather API, no API key required. Uses your configured latitude/longitude.
- OpenWeatherMap (optional) — Set
OPENWEATHER_API_KEYin.envif you prefer OpenWeatherMap data. Get a free API key at openweathermap.org/api.
Refresh interval: Every 15 minutes.
DE / DX Location Panels
Information panels for your station (DE) and the currently selected DX target station.
DE Panel (left sidebar) shows:
- Your callsign and Maidenhead grid square
- Latitude/longitude coordinates
- DXCC entity, CQ zone, and ITU zone
- Sunrise and sunset times at your location
- Local weather (collapsible)
DX Panel (right sidebar) shows:
- DX target callsign or location
- Grid square, lat/lon coordinates
- DXCC entity, CQ zone, and ITU zone
- Bearing (azimuth) and distance from your station
- Sunrise and sunset times at the DX location
How to use it: The DX panel updates whenever you click a spot in the DX cluster, click a location on the map, or manually enter a callsign/grid in the DX panel. The bearing shown is useful for rotating a directional antenna.
Header Bar
The persistent bar across the top of the dashboard provides at-a-glance information and quick controls.
From left to right:
- Callsign — Your callsign displayed prominently. Click it to open Settings.
- Version — Current OpenHamClock version number.
- UTC Clock — Current UTC time in large digits with the date. Essential for logging.
- Local Clock — Your local time with date. Click it to toggle between 12-hour and 24-hour format.
- Weather — Current temperature (°F/°C) with weather icon and wind info on hover.
- SFI / K / SSN — Live space weather indices. The K-index turns red when Kp ≥ 4 (storm conditions).
- Donate — Link to support the project.
- Settings — Opens the settings modal.
- Fullscreen — Toggle fullscreen mode (great for dedicated shack displays).
Themes and Layouts
Themes
Four visual themes, selectable in Settings or via THEME in .env:
| Theme | Description |
|---|---|
| Dark | Modern dark interface with amber and cyan accents on a charcoal background. Easy on the eyes for late-night operating. This is the default. |
| Light | Light background with darker text. Best for daytime use or brightly lit environments where a dark screen causes too much contrast. |
| Legacy | Classic green-on-black terminal aesthetic reminiscent of vintage station monitors. Monochrome green text with a true-black background. |
| Retro | 90s-era GUI style with teal backgrounds, silver beveled panels, and shadow effects. A nostalgic throwback to early Windows and OS/2 interfaces. |
All themes use CSS custom properties defined in src/styles/main.css. To create your own theme, add a new set of CSS variables following the existing pattern.
Layouts
Two layout modes, selectable in Settings or via LAYOUT in .env:
| Layout | Description |
|---|---|
| Modern | Responsive 3-column grid layout. The map fills the center column, with sidebar panels on the left and right. Designed for widescreen monitors (1920×1080 and above). Panels reflow on smaller screens. |
| Classic | Inspired by the original HamClock by Elwood Downey, WB0OEW (SK). Features a black background, large colored numeric displays for callsign and frequency, a rainbow frequency bar, and a full-width map. Optimized for dedicated displays and Raspberry Pi kiosk mode. |
Map Layers and Plugins
OpenHamClock has a plugin system for adding custom map overlays without modifying the core code. Plugins are self-contained React hooks that handle their own data fetching, rendering, and lifecycle.
Built-in plugins:
| Layer | Description |
|---|---|
| Aurora | Real-time auroral oval overlay from the NOAA OVATION model. Shows the current extent of the aurora borealis/australis. Useful for VHF operators (aurora can enable 2m and 6m contacts) and HF operators (aurora degrades polar HF paths). |
| Earthquakes | Recent seismic activity markers from USGS. Large earthquakes can temporarily affect HF propagation through atmospheric acoustic-gravity waves. |
| Weather Radar | Precipitation overlay showing rain, snow, and storms. |
How to enable/disable layers:
- Open Settings (gear icon in header).
- Click the Map Layers tab.
- Toggle each layer on or off with the switch.
- Adjust layer opacity with the slider to see through overlays to the base map.
Layer preferences persist in localStorage.
Creating your own plugin: See src/plugins/OpenHamClock-Plugin-Guide.md for the complete developer guide. In short: create a new React hook in src/plugins/layers/, register it in layerRegistry.js, and it appears automatically in the Settings panel. No modifications to WorldMap.jsx are needed.
Languages
The interface is available in 8 languages, selectable in Settings:
🇬🇧 English · 🇫🇷 Français · 🇪🇸 Español · 🇩🇪 Deutsch · 🇳🇱 Nederlands · 🇧🇷 Português · 🇯🇵 日本語 · 🇮🇹 Italiano
Language files are in src/lang/. Each is a JSON file with translation keys. Contributions of new translations are welcome — just copy en.json, translate the values, and submit a PR.
Configuration Reference
All configuration is done through the .env file. On first run, this file is auto-created from .env.example. You can also change most settings through the browser-based Settings panel.
Station Settings
| Variable | Default | Description |
|---|---|---|
CALLSIGN |
N0CALL |
Your amateur radio callsign. This is shown in the header bar and used for DX cluster login, PSKReporter queries, and "My Spots" tracking. |
LOCATOR |
FN31 |
Your Maidenhead grid locator (4 or 6 characters). Used to calculate your station coordinates if LATITUDE/LONGITUDE aren't set. |
LATITUDE |
(from locator) | Station latitude in decimal degrees. Overrides the latitude calculated from LOCATOR. |
LONGITUDE |
(from locator) | Station longitude in decimal degrees. Overrides the longitude calculated from LOCATOR. |
Server Settings
| Variable | Default | Description |
|---|---|---|
PORT |
3000 |
HTTP server port. Change if 3000 is already in use. |
HOST |
localhost |
Bind address. Set to 0.0.0.0 to make OpenHamClock accessible from other devices on your LAN (tablets, phones, other PCs). |
LOG_LEVEL |
warn |
Server log verbosity: debug (everything), info (operational), warn (problems), error (failures only). Use warn for production. |
Display Preferences
| Variable | Default | Description |
|---|---|---|
UNITS |
imperial |
imperial (°F, miles) or metric (°C, km). Affects weather display and distance calculations. |
TIME_FORMAT |
12 |
12 or 24 hour clock format. Can also be toggled by clicking the local clock in the header. |
THEME |
dark |
dark, light, legacy, or retro. See Themes and Layouts. |
LAYOUT |
modern |
modern or classic. See Themes and Layouts. |
TZ |
(browser) | IANA timezone identifier (e.g., America/New_York, Europe/London). Only needed if your browser spoofs the timezone (common with privacy browsers like Librewolf). |
Feature Toggles
| Variable | Default | Description |
|---|---|---|
SHOW_POTA |
true |
Show POTA activator markers on the map. |
SHOW_SATELLITES |
true |
Show satellite tracks on the map. |
SHOW_DX_PATHS |
true |
Show great-circle DX signal paths on the map. |
External Services
| Variable | Default | Description |
|---|---|---|
OPENWEATHER_API_KEY |
(none) | OpenWeatherMap API key. Optional — Open-Meteo is used by default and requires no key. Get a free key at openweathermap.org/api. |
ITURHFPROP_URL |
(none) | URL of your ITURHFProp microservice for ITU-R P.533 propagation predictions. Only set this if you've deployed the iturhfprop-service/. |
DXSPIDER_PROXY_URL |
(none) | URL of your DX Spider proxy. A default proxy is provided, so you only need this if you're running your own. |
WSJT-X Integration
| Variable | Default | Description |
|---|---|---|
WSJTX_ENABLED |
true |
Enable the WSJT-X UDP listener on the server. |
WSJTX_UDP_PORT |
2237 |
UDP port for receiving WSJT-X decoded messages. Must match the port configured in WSJT-X Settings → Reporting → UDP Server. |
WSJTX_RELAY_KEY |
(none) | Shared secret key for the WSJT-X relay agent. Required only for cloud deployments where WSJT-X can't reach the server directly over UDP. Pick any strong random string. |
DX Cluster
| Variable | Default | Description |
|---|---|---|
DX_CLUSTER_CALLSIGN |
(CALLSIGN-56) | Callsign used for DX cluster login. Defaults to your callsign with SSID suffix -56. Use -57 for a staging/test instance to avoid conflicts. |
SPOT_RETENTION_MINUTES |
30 |
How long DX spots stay in the list before aging out. Range: 5–30 minutes. |
Configuration Priority
Settings are loaded in this order (first match wins):
- localStorage — Changes you make in the browser Settings panel are saved here and take top priority.
- .env file — Your station configuration file. This is where you set your callsign and locator.
- Defaults — Built-in fallback values (N0CALL, FN31, dark theme, modern layout).
Your .env file is never overwritten by updates, so your configuration is always safe.
Deployment
Local / Desktop
The simplest option. Just need Node.js 20 or newer.
git clone https://github.com/accius/openhamclock.git
cd openhamclock
npm install
npm start
Open http://localhost:3000.
Access from other devices on your LAN (phone, tablet, another PC):
- Edit
.envand setHOST=0.0.0.0 - Restart with
npm start - Open
http://<your-computer-ip>:3000from the other device (e.g.,http://192.168.1.100:3000)
To find your local IP: run ipconfig (Windows) or ifconfig / ip addr (Mac/Linux).
Raspberry Pi
One-line install for Raspberry Pi (3B, 3B+, 4, 5). Supports both graphical and headless operation.
Standard install (kiosk mode — auto-starts fullscreen on boot):
curl -fsSL https://raw.githubusercontent.com/accius/openhamclock/main/scripts/setup-pi.sh | bash -s -- --kiosk
This is the recommended option for a dedicated shack display. The Pi boots directly into a fullscreen Chromium browser showing OpenHamClock. No desktop environment needed.
Server-only install (headless, no GUI):
curl -fsSL https://raw.githubusercontent.com/accius/openhamclock/main/scripts/setup-pi.sh | bash -s -- --server
Runs OpenHamClock as a web server only. Access it from any browser on your LAN.
Standard install (manual browser launch):
curl -fsSL https://raw.githubusercontent.com/accius/openhamclock/main/scripts/setup-pi.sh | bash
After installation, configure your station:
cd ~/openhamclock
nano .env # Set your callsign and locator
./restart.sh # Apply changes
The Pi setup script installs Node.js 20, clones the repository, builds the frontend, creates a systemd service (openhamclock.service) for automatic startup, and optionally configures Chromium in kiosk mode.
Docker
Docker Compose (recommended):
docker-compose up -d
Manual Docker build:
docker build -t openhamclock .
docker run -d -p 3000:3000 -p 2237:2237/udp --name openhamclock openhamclock
The Dockerfile uses a multi-stage build: Stage 1 compiles the React frontend with Vite, Stage 2 creates a minimal production image with only the server and built assets. The UDP port mapping (-p 2237:2237/udp) is only needed if you use WSJT-X integration.
Environment variables: Pass your configuration via Docker environment variables:
docker run -d \
-p 3000:3000 \
-e CALLSIGN=K0CJH \
-e LOCATOR=EN10 \
-e HOST=0.0.0.0 \
openhamclock
Railway (Cloud)
Railway deployment files (railway.toml, railway.json) are included for one-click cloud deployment.
Deploy from CLI:
railway up
Deploy from GitHub: Connect your GitHub repository to Railway for automatic deploys on every push.
Environment variables to set in Railway's dashboard:
| Variable | Value | Notes |
|---|---|---|
CALLSIGN |
Your callsign | Required |
LOCATOR |
Your grid | Required |
HOST |
0.0.0.0 |
Required for Railway |
LOG_LEVEL |
warn |
Recommended to stay under Railway's 500 logs/sec limit |
WSJTX_RELAY_KEY |
(random string) | Only if using the WSJT-X relay agent |
Cost: Railway's free tier is usually sufficient for a single-user instance.
DX Spider Proxy
The DX Spider Proxy is a standalone microservice (in the dxspider-proxy/ directory) that maintains a persistent telnet connection to the DX Spider cluster network and serves spots over HTTP.
Why a separate proxy? DX Spider uses telnet (a raw TCP protocol), which browsers cannot speak directly. The proxy solves three problems:
- Protocol bridge — Translates telnet into HTTP/JSON that the browser can consume.
- Connection sharing — One proxy serves all browser tabs/sessions. Without it, each tab would open its own telnet connection, which would get your callsign banned from the cluster.
- Persistence — The proxy keeps the telnet connection alive 24/7 even when no browsers are open, so spots are immediately available when you connect.
Cluster nodes (tried in order of priority):
dxspider.co.uk:7300— Operated by Keith, G6NHU (primary, UK)dxc.nc7j.com:7373— NC7Jdxc.ai9t.com:7373— AI9Tdxc.w6cua.org:7300— W6CUA
If the primary node is down, the proxy automatically tries the next one.
SSID management: Every DX Spider connection requires a unique callsign-SSID combination. OpenHamClock uses:
CALLSIGN-56for production (your live dashboard)CALLSIGN-57for staging/development (to avoid connection conflicts)
The original HamClock uses -55, so there's no conflict between OpenHamClock and HamClock.
Deploying your own proxy: The proxy is typically deployed separately (e.g., on Railway) and connected to the main app via the DXSPIDER_PROXY_URL environment variable. A default shared proxy is provided out of the box, so most users don't need to run their own.
WSJT-X Relay Agent
The relay agent (wsjtx-relay/relay.js) bridges WSJT-X on your local machine to a cloud-hosted OpenHamClock instance.
The problem: WSJT-X sends decoded messages over UDP, which only works on a local network. If your OpenHamClock is running in the cloud (e.g., on Railway or at openhamclock.com), UDP packets can't reach it.
The solution: The relay agent runs on your local machine, captures WSJT-X UDP packets, and forwards them to your remote server over HTTPS.
Setup:
-
On your server (or Railway dashboard), set
WSJTX_RELAY_KEYto any strong random string:WSJTX_RELAY_KEY=my-super-secret-relay-key-2024 -
On your local machine (where WSJT-X runs), start the relay:
cd wsjtx-relay node relay.js --url https://openhamclock.com --key my-super-secret-relay-key-2024Or with environment variables:
OPENHAMCLOCK_URL=https://openhamclock.com RELAY_KEY=my-super-secret-relay-key-2024 node relay.js -
In WSJT-X: Settings → Reporting → UDP Server →
127.0.0.1:2237
The relay agent has zero npm dependencies (uses only Node.js built-ins), batches messages for efficiency (sends every 2 seconds instead of per-decode), and automatically reconnects if the connection drops. Each browser session gets its own relay data stream, so multiple operators can share the same server.
Updating
Git installations (local/Pi):
cd ~/openhamclock
./scripts/update.sh
The update script: backs up your .env → pulls latest code → installs new dependencies → rebuilds the frontend → restores your .env. Then restart:
sudo systemctl restart openhamclock
# or
./restart.sh
Zip file installations:
- Back up your
.envfile - Download the new zip from GitHub
- Extract it (overwriting old files)
- Restore your
.env - Run
npm install && npm run build - Restart
Docker:
docker-compose pull
docker-compose up -d
Railway:
Push to your connected GitHub repo, or run railway up. Railway redeploys automatically.
Architecture
OpenHamClock is a React + Node.js application. The Node.js backend acts as an API proxy and data aggregator — all external API calls go through it, cached to reduce load on upstream services. The React frontend handles all rendering and user interaction.
openhamclock/
├── server.js # Node.js backend — API proxy, data aggregation, WSJT-X listener
├── config.js # Server configuration loader (.env → runtime config)
├── src/
│ ├── App.jsx # Main React application — state management, layout, component wiring
│ ├── main.jsx # React entry point
│ ├── components/ # UI components (one per panel/feature)
│ │ ├── WorldMap.jsx # Leaflet map with all overlays (DX, POTA, satellites, paths)
│ │ ├── Header.jsx # Top bar — callsign, clocks, weather, SFI/K/SSN, controls
│ │ ├── DXClusterPanel.jsx # DX spot list with band coloring and hover highlighting
│ │ ├── DXFilterManager.jsx # DX cluster filter modal (zones, bands, modes, watchlist, exclude)
│ │ ├── PSKReporterPanel.jsx # PSKReporter TX/RX tabs with signal reports
│ │ ├── PSKFilterManager.jsx # PSKReporter filter modal (bands, modes, time window)
│ │ ├── POTAPanel.jsx # POTA activators scrollable list with map toggle
│ │ ├── SpaceWeatherPanel.jsx # SFI / K-index / SSN gauges
│ │ ├── SolarPanel.jsx # 4-view cycling: solar image, indices, x-ray flux, lunar phase
│ │ ├── BandConditionsPanel.jsx # HF band open/closed indicators
│ │ ├── PropagationPanel.jsx # Per-band propagation reliability predictions
│ │ ├── ContestPanel.jsx # Upcoming/active contest calendar
│ │ ├── DXpeditionPanel.jsx # Active DXpedition list
│ │ ├── DXNewsTicker.jsx # Scrolling DX news headline bar
│ │ ├── LocationPanel.jsx # DE/DX station info panels
│ │ ├── SettingsPanel.jsx # Settings modal (station, theme, layout, DX source, map layers)
│ │ ├── Icons.jsx # SVG icon components
│ │ └── PluginLayer.jsx # Plugin system mount point for map overlays
│ ├── hooks/ # Data fetching hooks — one per data source, each manages its own polling
│ │ ├── useDXCluster.js # DX Spider spots — polls every 5 seconds
│ │ ├── usePSKReporter.js # PSKReporter MQTT + HTTP fallback — real-time
│ │ ├── usePOTASpots.js # POTA activators — polls every 60 seconds
│ │ ├── useSpaceWeather.js # NOAA SFI/Kp/SSN — polls every 5 minutes
│ │ ├── useSolarIndices.js # Extended solar data with history — polls every 15 minutes
│ │ ├── useBandConditions.js # Band conditions — recalculates when SFI/Kp change
│ │ ├── usePropagation.js # Propagation model — polls every 10 minutes
│ │ ├── useSatellites.js # Satellite tracking — SGP4 position every 5 seconds
│ │ ├── useContests.js # Contest calendar — polls every 30 minutes
│ │ ├── useDXpeditions.js # DXpedition list — polls every 30 minutes
│ │ ├── useDXPaths.js # DX spot paths for map — polls every 10 seconds
│ │ ├── useMySpots.js # Your callsign spotted by others — polls every 30 seconds
│ │ ├── useLocalWeather.js # Weather — polls every 15 minutes
│ │ └── useWSJTX.js # WSJT-X decoded messages — polls every 2 seconds
│ ├── utils/
│ │ ├── config.js # App configuration (localStorage read/write, theme application)
│ │ ├── geo.js # Grid square conversion, bearings, distances, sun/moon calculations
│ │ └── callsign.js # Band detection, mode detection, DXCC prefix lookup
│ ├── plugins/ # Map layer plugin system
│ │ ├── layerRegistry.js # Central plugin registration
│ │ └── layers/ # Built-in plugins (aurora, earthquakes, weather radar)
│ ├── lang/ # i18n translation files (8 languages)
│ └── styles/
│ └── main.css # Theme CSS variables, base styles, responsive breakpoints
├── dxspider-proxy/ # DX Spider telnet proxy microservice
├── iturhfprop-service/ # ITU-R P.533 propagation prediction microservice (optional)
├── wsjtx-relay/ # WSJT-X UDP → HTTPS relay agent
├── electron/ # Electron desktop app wrapper (experimental)
├── scripts/ # Setup and update scripts
│ ├── setup-pi.sh # Raspberry Pi one-line installer
│ ├── setup-linux.sh # Generic Linux installer
│ ├── setup-windows.ps1 # Windows PowerShell installer
│ └── update.sh # Update script (backup → pull → rebuild → restore)
├── Dockerfile # Multi-stage Docker build
├── docker-compose.yml # Docker Compose configuration
├── railway.toml # Railway deployment configuration
├── railway.json # Railway build settings
└── .env.example # Configuration template (auto-copied to .env on first run)
Data Flow
All external API calls go through the Node.js backend, which caches responses to reduce load on upstream services. The frontend never contacts external APIs directly (except PSKReporter MQTT, which uses a WebSocket connection from the browser).
NOAA SWPC ──┐
POTA API ───┤
SOTA API ───┤ ┌─ WorldMap
DX Spider ──┼──► Node.js Server ──► React ─┼─ DX Cluster Panel
CelesTrak ──┤ (API proxy + ├─ Space Weather Panel
HamQSL ─────┤ data cache) ├─ Band Conditions
HamQTH ─────┤ ├─ Propagation Panel
Contest Cal ┤ └─ ... all other panels
Ionosonde ──┘
WSJT-X UDP ──► Server listener ──► React ──► WSJT-X Panel
(or Relay Agent)
PSKReporter MQTT ──────────────► React ──► PSKReporter Panel
(direct WebSocket)
API Endpoints
The backend exposes these REST endpoints. All data endpoints return JSON. Cache durations shown are server-side; the frontend may poll at different intervals.
| Endpoint | Description | Cache |
|---|---|---|
GET /api/config |
Server configuration (callsign, location, features, version) | — |
GET /api/health |
Health check with uptime and version | — |
GET /api/dxcluster/spots |
Current DX cluster spots (array of spot objects) | 5 sec |
GET /api/dxcluster/paths |
DX spots with resolved coordinates for map display | 5 sec |
GET /api/dxcluster/sources |
Available DX cluster source backends | — |
GET /api/solar-indices |
SFI, Kp, SSN with 30-day history arrays | 15 min |
GET /api/noaa/flux |
Raw 10.7 cm solar flux from NOAA | 15 min |
GET /api/noaa/kindex |
Raw planetary K-index from NOAA | 15 min |
GET /api/noaa/sunspots |
Raw sunspot number from NOAA | 15 min |
GET /api/noaa/xray |
GOES X-ray flux (6-hour dataset) | 15 min |
GET /api/noaa/aurora |
Aurora oval boundary data from OVATION model | 15 min |
GET /api/hamqsl/conditions |
HamQSL band conditions XML (parsed to JSON) | 30 min |
GET /api/propagation |
HF propagation predictions (per-band reliability %) | 10 min |
GET /api/pota/spots |
POTA activator spots from api.pota.app | 1 min |
GET /api/sota/spots |
SOTA activator spots from api2.sota.org.uk | 2 min |
GET /api/satellites/tle |
Satellite TLE data from CelesTrak | 6 hr |
GET /api/contests |
Contest calendar from contestcalendar.com | 30 min |
GET /api/dxpeditions |
Active DXpeditions from NG3K | 30 min |
GET /api/dxnews |
DX news headlines from DXNews.com | 30 min |
GET /api/callsign/:call |
Callsign lookup (DXCC entity, grid, country, continent) | — |
GET /api/myspots/:callsign |
Recent spots of a specific callsign | 30 sec |
GET /api/ionosonde |
Ionospheric sounding data from prop.kc2g.com | 5 min |
GET /api/pskreporter/config |
PSKReporter MQTT connection configuration | — |
GET /api/pskreporter/http/:call |
PSKReporter HTTP API fallback | 2 min |
GET /api/wsjtx |
WSJT-X connection status and active client list | — |
GET /api/wsjtx/decodes |
WSJT-X decoded messages (latest batch) | — |
POST /api/wsjtx/relay |
WSJT-X relay agent data ingest endpoint | — |
GET /api/qrz/lookup/:callsign |
QRZ.com callsign lookup | — |
Frequently Asked Questions
Q: Do I need an amateur radio license to use OpenHamClock? A: No. OpenHamClock is a receive-only dashboard. Anyone can view DX spots, space weather, and POTA activations. However, a callsign is needed for PSKReporter data (which tracks your transmitted signals) and for DX cluster login.
Q: How much bandwidth does OpenHamClock use? A: Very little. All external API calls are cached server-side, and the backend serves compressed (gzip) responses. Typical usage is under 1 MB/minute. Most data sources update every 5–30 minutes.
Q: Can I run this on a Raspberry Pi 3? A: Yes. The Pi 3B/3B+ works fine, though initial build time is slower (~5 minutes). A Pi 4 or 5 is recommended for the best experience. The server uses about 100–150 MB of RAM.
Q: Why don't I see any DX spots?
A: Check that: (1) Your callsign is set in .env — the DX Spider proxy uses it to log in. (2) Your internet connection is working. (3) If using a custom DXSPIDER_PROXY_URL, make sure it's reachable. Check the server console for error messages.
Q: Why does PSKReporter show no data? A: PSKReporter requires your callsign to be set correctly. If MQTT fails (some corporate firewalls block WebSocket connections), the system falls back to the HTTP API automatically. Check the panel footer to see which connection method is active.
Q: Can multiple people use the same server? A: Yes. The web interface is stateless — each browser session gets its own filter settings, theme preferences, and DX target. The server caches all API responses, so additional users add zero extra load on upstream services.
Q: How do I change the DX cluster source?
A: Open Settings → Station tab → DX Cluster Source dropdown. Or set dxClusterSource in the browser settings. The four options are: DX Spider Proxy (recommended), HamQTH, DXWatch, and Auto.
Q: Can I use this with JTDX instead of WSJT-X?
A: Yes. JTDX uses the same UDP protocol as WSJT-X. Configure JTDX's UDP settings the same way (address: 127.0.0.1, port: 2237).
Q: Why are some POTA spots not on the map? A: A spot will appear in the panel list but not on the map if its coordinates couldn't be resolved. This is rare — the POTA API provides coordinates for almost all parks, and OpenHamClock has a grid-square fallback for the rest.
Q: How do I get the Classic layout to look like the original HamClock?
A: Set LAYOUT=classic in .env (or select it in Settings). The Classic layout uses a black background with large colored number displays, matching the style of the original HamClock by WB0OEW.
Contributing
- Fork the repository
- Pick a component or hook to improve
- Make changes in the appropriate file
- Test with all four themes and both layouts
- Submit a PR
The codebase uses functional React components with hooks, CSS-in-JS for component-specific styles, and CSS custom properties for theming. Each data source has its own hook in src/hooks/, and each UI section has its own component in src/components/.
For development:
npm run dev # Vite dev server with hot reload on http://localhost:5173
node server.js # Backend API server on http://localhost:3000
Credits
- K0CJH (Chris) — OpenHamClock creator and maintainer — chris@cjhlighting.com
- Claude AI (Anthropic) — Accelerated development by assisting with bug fixes, code structure, and feature implementation that would have otherwise taken significantly longer to learn and build from scratch
- Elwood Downey, WB0OEW (SK) — Creator of the original HamClock that inspired this project
- Keith, G6NHU — DX Spider cluster operator at dxspider.co.uk, provided direct support for cluster connections
- NOAA Space Weather Prediction Center — Space weather data (SFI, Kp, SSN, X-ray flux, aurora)
- POTA (Parks on the Air) — Activator spot API
- SOTA (Summits on the Air) — Activator spot API
- PSKReporter — Digital mode reception report network
- Open-Meteo — Free weather API
- Leaflet — Open-source mapping library
- Contest Calendar — Contest scheduling data
- CelesTrak — Satellite TLE orbital data
- KC2G — Ionospheric sounding data
- NG3K — DXpedition listing
- DXNews.com — DX news headlines
License
MIT License — See LICENSE file.
73 de K0CJH openhamclock.com · chris@cjhlighting.com