mirror of
https://github.com/pablorevilla-meshtastic/meshview.git
synced 2026-03-04 23:27:46 +01:00
Merge branch 'master' into 10-15-25-bugs
This commit is contained in:
@@ -199,6 +199,19 @@ loadTranslations().then(async () => {
|
||||
return 'Unknown';
|
||||
}
|
||||
|
||||
async function fetchAdditionalChannels() {
|
||||
try {
|
||||
const res = await fetch('/api/channels?period_type=day&length=30');
|
||||
if (!res.ok) return [];
|
||||
const data = await res.json();
|
||||
if (!data || !Array.isArray(data.channels)) return [];
|
||||
return data.channels.filter(ch => typeof ch === 'string' && ch.trim().length > 0);
|
||||
} catch (err) {
|
||||
console.error('Channel list fetch failed:', err);
|
||||
return [];
|
||||
}
|
||||
}
|
||||
|
||||
const nodeMap = new Map();
|
||||
nodes.forEach(n => nodeMap.set(n.id, n));
|
||||
function isInvalidCoord(node) { return !node || !node.lat || !node.long || node.lat===0 || node.long===0 || Number.isNaN(node.lat) || Number.isNaN(node.long); }
|
||||
|
||||
Reference in New Issue
Block a user