Repository navigation
v0.1.0
Pre-release
Pre-release
Cross Country Race Tracking System v0.1.0
A real-time race tracking system for cross country events that monitors runners' lap counts and rankings.
Features
Real-time Tracking
- Live updating of runner positions and lap counts
- Automatic refresh every second
- Persistent data storage across page refreshes
Ranking System
- Dynamic ranking based on:
- Primary: Number of laps completed (descending)
- Secondary: Time of first lap (ascending)
- Real-time leaderboard updates
- Clear ranking display with position numbers
Scan History
- Complete history of all scanned beacons
- Chronological display (newest first)
- Scrollable interface for viewing all historical scans
- Persistent scan history until manually cleared
Data Management
- MySQL database integration
- Automatic timestamp recording for each scan
- Data clearing functionality with auto-increment reset
- Error logging and handling
User Interface
- Clean, two-column layout
- Left: Ranking table
- Right: Scan history
- Responsive design with proper spacing
- Scrollable containers for large datasets
- Clear visual hierarchy
Technical Details
Database Structure
Files
index.php: Main interface and real-time updatesgetminor.php: Data retrieval and sorting logicclearData.php: Data management and reset functionality
Dependencies
- jQuery 3.6.0
- MySQL/MariaDB
- PHP 8.2+
Usage
- Set up the MySQL database using the provided schema
- Configure database connection in PHP files
- Deploy to web server with PHP support
- Access through web browser
- System will automatically begin tracking and displaying data
Notes
- Designed for real-time race tracking
- Optimized for multiple concurrent runners
- Maintains fairness in ranking by considering both lap count and speed