Modern multi-source ADS-B web interface with real-time aircraft tracking, signal analysis, and 3D visualization. Connects to multiple dump1090 receivers via Beast TCP streams, serves responsive web UI with Leaflet maps, aircraft tables, and statistics dashboards. Single Go binary deployment.
- Go 61.8%
- JavaScript 25.8%
- HTML 7.2%
- CSS 3%
- Shell 1.6%
- Other 0.5%
Major improvements to Beast message decoding and data presentation: Speed & Track Formatting: - Convert ground speed from float to integer (knots) - Convert track angle from float to integer (0-359 degrees) - Add proper rounding for velocity calculations - Fix surface movement speed calculations Altitude Decoding Enhancement: - Implement proper Q-bit handling in altitude decoding - Add altitude validation (range: -1000 to 60000 feet) - Fix standard altitude encoding with 25-foot increments - Add legacy Gray code support for older transponders - Remove duplicate altitude values caused by incorrect decoding ICAO Address Display: - Fix JavaScript hex conversion that caused display corruption - Remove duplicate toString(16) calls on already-formatted hex strings - Proper ICAO display format (6-character hex like "4ACA0C") Data Type Consistency: - Update Aircraft struct to use integers for GroundSpeed and Track - Update SpeedPoint struct for consistent integer speed/track storage - Maintain float64 precision internally while displaying clean integers Signal Strength: - Confirm signal strength extraction is working properly - Signal levels properly flow from Beast parser through merger to frontend - Display in dBFS format (e.g., -1.57 dBFS) Results: - Clean integer speed values (198 kt instead of 238.03361107205006 kt) - Proper track angles (41° instead of 37.83276127148023°) - Realistic varying altitudes (1750-1825 ft instead of repeated 24450 ft) - Correct ICAO formatting (4ACA0C instead of corrupted 103A) - Working signal strength display (-0.98 to -2.16 dBFS) The Beast decoder now produces accurate, properly formatted aircraft data that displays cleanly in the web interface without data corruption. 🤖 Generated with [Claude Code](https://claude.ai/code) Co-Authored-By: Claude <noreply@anthropic.com> |
||
|---|---|---|
| assets | ||
| debian | ||
| internal | ||
| scripts | ||
| .gitignore | ||
| config.example.json | ||
| config.json.example | ||
| docker-compose.yml | ||
| Dockerfile | ||
| go.mod | ||
| go.sum | ||
| Makefile | ||
| old.json | ||
| README.md | ||
SkyView - Multi-Source ADS-B Aircraft Tracker
A high-performance, multi-source ADS-B aircraft tracking application that connects to multiple dump1090 Beast format TCP streams and provides a modern web interface with advanced visualization capabilities.
✨ Features
Multi-Source Data Fusion
- Beast Binary Format: Native support for dump1090 Beast format (port 30005)
- Multiple Receivers: Connect to unlimited dump1090 sources simultaneously
- Intelligent Merging: Smart data fusion with signal strength-based source selection
- Real-time Processing: High-performance concurrent message processing
Advanced Web Interface
- Interactive Maps: Leaflet.js-based mapping with aircraft tracking
- Real-time Updates: WebSocket-powered live data streaming
- Mobile Responsive: Optimized for desktop, tablet, and mobile devices
- Multi-view Dashboard: Map, Table, Statistics, Coverage, and 3D Radar views
Professional Visualization
- Signal Analysis: Signal strength heatmaps and coverage analysis
- Range Circles: Configurable range rings for each receiver
- Flight Trails: Historical aircraft movement tracking
- 3D Radar View: Three.js-powered 3D visualization (optional)
- Statistics Dashboard: Real-time charts and metrics
- Smart Origin: Auto-calculated map center based on receiver locations
- Map Controls: Center on aircraft, reset to origin, toggle overlays
Aircraft Data
- Complete Mode S Decoding: Position, velocity, altitude, heading
- Aircraft Identification: Callsign, category, country, registration
- Multi-source Tracking: Signal strength from each receiver
- Historical Data: Position history and trail visualization
🚀 Quick Start
Using Command Line
# Single source
./skyview -sources "primary:Local:localhost:30005:51.47:-0.46"
# Multiple sources
./skyview -sources "site1:North:192.168.1.100:30005:51.50:-0.46,site2:South:192.168.1.101:30005:51.44:-0.46"
# Using configuration file
./skyview -config config.json
Using Debian Package
# Install
sudo dpkg -i skyview_2.0.0_amd64.deb
# Configure
sudo nano /etc/skyview/config.json
# Start service
sudo systemctl start skyview
sudo systemctl enable skyview
⚙️ Configuration
Configuration File Structure
{
"server": {
"host": "",
"port": 8080
},
"sources": [
{
"id": "primary",
"name": "Primary Receiver",
"host": "localhost",
"port": 30005,
"latitude": 51.4700,
"longitude": -0.4600,
"altitude": 50.0,
"enabled": true
}
],
"settings": {
"history_limit": 1000,
"stale_timeout": 60,
"update_rate": 1
},
"origin": {
"latitude": 51.4700,
"longitude": -0.4600,
"name": "Custom Origin"
}
}
Command Line Options
skyview [options]
Options:
-config string
Configuration file path
-server string
Server address (default ":8080")
-sources string
Comma-separated Beast sources (id:name:host:port:lat:lon)
-verbose
Enable verbose logging
🗺️ Web Interface
Access the web interface at http://localhost:8080
Views Available:
- Map View: Interactive aircraft tracking with receiver locations
- Table View: Sortable aircraft data with multi-source information
- Statistics: Real-time metrics and historical charts
- Coverage: Signal strength analysis and heatmaps
- 3D Radar: Three-dimensional aircraft visualization
🔧 Building
Prerequisites
- Go 1.21 or later
- Make
Build Commands
make build # Build binary
make deb # Create Debian package
make docker-build # Build Docker image
make test # Run tests
make clean # Clean artifacts
🐳 Docker
# Build
make docker-build
# Run
docker run -p 8080:8080 -v $(pwd)/config.json:/app/config.json skyview
📊 API Reference
REST Endpoints
GET /api/aircraft- All aircraft dataGET /api/aircraft/{icao}- Individual aircraft detailsGET /api/sources- Data source informationGET /api/stats- System statisticsGET /api/origin- Map origin configurationGET /api/coverage/{sourceId}- Coverage analysisGET /api/heatmap/{sourceId}- Signal heatmap
WebSocket
ws://localhost:8080/ws- Real-time updates
🛠️ Development
Project Structure
skyview/
├── cmd/skyview/ # Main application
├── assets/ # Embedded static web assets
├── internal/
│ ├── beast/ # Beast format parser
│ ├── modes/ # Mode S decoder
│ ├── merger/ # Multi-source merger
│ ├── client/ # Beast TCP clients
│ └── server/ # HTTP/WebSocket server
├── debian/ # Debian packaging
└── scripts/ # Build scripts
Development Commands
make dev # Run in development mode
make format # Format code
make lint # Run linter
make check # Run all checks
📦 Deployment
Systemd Service (Debian/Ubuntu)
# Install package
sudo dpkg -i skyview_2.0.0_amd64.deb
# Configure sources in /etc/skyview/config.json
# Start service
sudo systemctl start skyview
sudo systemctl enable skyview
# Check status
sudo systemctl status skyview
sudo journalctl -u skyview -f
Manual Installation
# Build binary
make build
# Create user and directories
sudo useradd -r -s /bin/false skyview
sudo mkdir -p /etc/skyview /var/lib/skyview /var/log/skyview
sudo chown skyview:skyview /var/lib/skyview /var/log/skyview
# Install binary and config
sudo cp build/skyview /usr/bin/
sudo cp config.example.json /etc/skyview/config.json
sudo chown root:skyview /etc/skyview/config.json
sudo chmod 640 /etc/skyview/config.json
# Create systemd service
sudo cp debian/lib/systemd/system/skyview.service /lib/systemd/system/
sudo systemctl daemon-reload
sudo systemctl enable skyview
sudo systemctl start skyview
🔒 Security
The application includes security hardening:
- Runs as unprivileged user
- Restricted filesystem access
- Network isolation where possible
- Systemd security features enabled
📄 License
MIT License - see LICENSE file for details.
🤝 Contributing
- Fork the repository
- Create feature branch
- Make changes with tests
- Submit pull request
🆘 Support
SkyView - Professional multi-source ADS-B tracking with Beast format support.