Rename to ADS-Bit and show receiver IP
- Rename app from "SKY WATCH" to "ADS-Bit" (8-bit wordplay) - Update page title to "ADS-Bit - Retro Flight Tracker" - Add receiver IPs to /api/config endpoint - Display connected receiver IP(s) in status bar - Update screenshot Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
This commit is contained in:
@@ -14,6 +14,7 @@ class PixelADSB {
|
||||
this.receiverLat = 0;
|
||||
this.receiverLon = 0;
|
||||
this.locationName = 'Loading...';
|
||||
this.receivers = [];
|
||||
|
||||
// Flight data
|
||||
this.flights = new Map();
|
||||
@@ -543,7 +544,9 @@ class PixelADSB {
|
||||
this.receiverLat = data.location?.lat || 0;
|
||||
this.receiverLon = data.location?.lon || 0;
|
||||
this.locationName = data.location?.name || 'My Location';
|
||||
this.receivers = data.receivers || [];
|
||||
console.log(`Config loaded - Theme: ${this.theme}, Location: ${this.locationName} (${this.receiverLat}, ${this.receiverLon})`);
|
||||
console.log(`Receivers: ${this.receivers.join(', ') || 'none'}`);
|
||||
} catch (error) {
|
||||
console.warn('Could not fetch config, using defaults');
|
||||
// Fallback to receiver-location API for backwards compatibility
|
||||
@@ -666,7 +669,10 @@ class PixelADSB {
|
||||
|
||||
this.ws.onopen = () => {
|
||||
console.log('WebSocket connected');
|
||||
document.getElementById('connection-status').textContent = 'CONNECTED';
|
||||
const receiverText = this.receivers && this.receivers.length > 0
|
||||
? `CONNECTED: ${this.receivers.join(', ')}`
|
||||
: 'CONNECTED';
|
||||
document.getElementById('connection-status').textContent = receiverText;
|
||||
document.getElementById('connection-status').classList.remove('blink');
|
||||
this.reconnectDelay = 1000;
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user