diff --git a/pixel-view.js b/pixel-view.js
index b1ad059..474f2af 100644
--- a/pixel-view.js
+++ b/pixel-view.js
@@ -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;
};
diff --git a/screenshots/screenshot.png b/screenshots/screenshot.png
index 48ac339..b0d88d3 100644
Binary files a/screenshots/screenshot.png and b/screenshots/screenshot.png differ
diff --git a/server.py b/server.py
index 9f3cb4d..e67cf42 100755
--- a/server.py
+++ b/server.py
@@ -308,7 +308,8 @@ async def handle_config(request):
"""Return client-relevant configuration"""
return web.json_response({
"theme": config.get("theme", "desert"),
- "location": config["location"]
+ "location": config["location"],
+ "receivers": receivers
})
async def handle_http(request):