Use frequency in sat id

This commit is contained in:
2026-09-11 07:34:49 -04:00
parent 1db910cb4a
commit 7cc60afbae

View File

@@ -40,10 +40,11 @@ export async function pollTinyGS() {
const reading = parseWm(raw);
if (!reading.satellite || reading.satellite === '-') return;
let bucket = satellites.get(reading.satellite);
const key = reading.satellite + '-' + reading.freqMHz;
let bucket = satellites.get(key);
if (!bucket) {
bucket = { history: [], lastSeen: 0 };
satellites.set(reading.satellite, bucket);
satellites.set(key, bucket);
}
bucket.lastSeen = reading.timestamp;