Merge pull request #10 from accius/Modular-Staging

update spider nodes
pull/27/head
accius 3 days ago committed by GitHub
commit 90bda93eff
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

@ -19,10 +19,10 @@ app.use(express.json());
const CONFIG = { const CONFIG = {
// DX Spider nodes to try (in order) // DX Spider nodes to try (in order)
nodes: [ nodes: [
{ host: 'dxspider.co.uk', port: 7300, name: 'DX Spider UK' },
{ host: 'w6kk.no-ip.org', port: 7300, name: 'W6KK' },
{ host: 'dxc.nc7j.com', port: 7373, name: 'NC7J' }, { host: 'dxc.nc7j.com', port: 7373, name: 'NC7J' },
{ host: 'dx.k3lr.com', port: 7300, name: 'K3LR' } { host: 'dxc.ai9t.com', port: 7373, name: 'AI9T' },
{ host: 'dxc.w6cua.org', port: 7300, name: 'W6CUA' },
{ host: 'spider.ham-radio-deluxe.com', port: 8000, name: 'HRD' }
], ],
callsign: process.env.CALLSIGN || 'OPENHAMCLOCK', callsign: process.env.CALLSIGN || 'OPENHAMCLOCK',
spotRetentionMs: 30 * 60 * 1000, // 30 minutes spotRetentionMs: 30 * 60 * 1000, // 30 minutes

@ -563,10 +563,10 @@ app.get('/api/dxcluster/spots', async (req, res) => {
// Helper function for DX Spider (telnet-based, works locally/Pi) // Helper function for DX Spider (telnet-based, works locally/Pi)
// Multiple nodes for failover // Multiple nodes for failover
const DXSPIDER_NODES = [ const DXSPIDER_NODES = [
{ host: 'dxspider.co.uk', port: 7300 },
{ host: 'w6kk.no-ip.org', port: 7300 },
{ host: 'dxc.nc7j.com', port: 7373 }, { host: 'dxc.nc7j.com', port: 7373 },
{ host: 'dx.k3lr.com', port: 7300 } { host: 'dxc.ai9t.com', port: 7373 },
{ host: 'dxc.w6cua.org', port: 7300 },
{ host: 'spider.ham-radio-deluxe.com', port: 8000 }
]; ];
async function fetchDXSpider() { async function fetchDXSpider() {
@ -677,7 +677,7 @@ app.get('/api/dxcluster/spots', async (req, res) => {
client.on('error', (err) => { client.on('error', (err) => {
// Only log unexpected errors, not connection resets (they're common) // Only log unexpected errors, not connection resets (they're common)
if (!err.message.includes('ECONNRESET') && !err.message.includes('ETIMEDOUT')) { if (!err.message.includes('ECONNRESET') && !err.message.includes('ETIMEDOUT') && !err.message.includes('ENOTFOUND')) {
console.error(`[DX Cluster] DX Spider ${node.host} error:`, err.message); console.error(`[DX Cluster] DX Spider ${node.host} error:`, err.message);
} }
cleanup(); cleanup();
@ -754,7 +754,7 @@ app.get('/api/dxcluster/sources', (req, res) => {
{ id: 'auto', name: 'Auto (Best Available)', description: 'Tries Proxy first, then HamQTH, then direct telnet' }, { id: 'auto', name: 'Auto (Best Available)', description: 'Tries Proxy first, then HamQTH, then direct telnet' },
{ id: 'proxy', name: 'DX Spider Proxy ⭐', description: 'Our dedicated proxy service - real-time telnet feed via HTTP' }, { id: 'proxy', name: 'DX Spider Proxy ⭐', description: 'Our dedicated proxy service - real-time telnet feed via HTTP' },
{ id: 'hamqth', name: 'HamQTH', description: 'HamQTH.com CSV feed (HTTP, works everywhere)' }, { id: 'hamqth', name: 'HamQTH', description: 'HamQTH.com CSV feed (HTTP, works everywhere)' },
{ id: 'dxspider', name: 'DX Spider Direct', description: 'Direct telnet to dxspider.co.uk:7300 (works locally/Pi only)' } { id: 'dxspider', name: 'DX Spider Direct', description: 'Direct telnet to DX cluster (works locally/Pi only)' }
]); ]);
}); });

Loading…
Cancel
Save

Powered by TurnKey Linux.