Use frequency in sat id
This commit is contained in:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user