MCPcopy Create free account
hub / github.com/PierreGode/Ragnar / stopRealtimeScan

Function stopRealtimeScan

web/scripts/ragnar_modern.js:3391–3408  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

3389 ctx.fillText(tag, r24.x0 + 3, yR - 5);
3390 } else if (sel) {
3391 ctx.fillStyle = '#f5d0fe'; ctx.font = 'bold 10px sans-serif'; ctx.textAlign = 'left';
3392 ctx.fillText(`${sel.addr} — RSSI not heard this sniff`, r24.x0 + 3, g.padT + 26);
3393 }
3394}
3395
3396// Draw Zigbee channel markers (11–26) on the 2.4 GHz segment: a labelled tick
3397// per occupied channel, intensity by activity, plus a selected-device RSSI line.
3398function _wifiDrawZbOverlay(ctx, r24, xFor, g) {
3399 const i = (_wifiState.zb.interference) || {};
3400 const baseY = g.H - g.padB;
3401 const zbX = (freqMhz) => {
3402 const chFrac = (freqMhz - 2407) / 5;
3403 return Math.max(r24.x0 + 2, Math.min(r24.x1 - 2, xFor('2.4', chFrac)));
3404 };
3405 const sel = _wifiState.zbSelected
3406 ? (_wifiState.zb.devices || []).find(v => (v.addr || v.short_addr) === _wifiState.zbSelected)
3407 : null;
3408 const dim = sel ? 0.35 : 1.0;
3409 // Per-channel markers (amber), height scaled by intensity.
3410 (i.markers || []).forEach(m => {
3411 if (!m.freq_mhz) return;

Callers

nothing calls this directly

Calls 3

emitMethod · 0.80
errorMethod · 0.80
addConsoleMessageFunction · 0.70

Tested by

no test coverage detected