From 478fffd288b744050a7eb543fa07c878d2df16c1 Mon Sep 17 00:00:00 2001 From: James Smith Date: Sun, 21 Dec 2025 15:19:48 +0000 Subject: [PATCH] Add more debug logging for device types and manufacturers MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit - Log device_type in updateBtTypeChart to see what values are received - Log manufacturer in updateBtManufacturerList - This will help diagnose why types/manufacturers aren't showing 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude Opus 4.5 --- intercept.py | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/intercept.py b/intercept.py index 8f8b4f8..66a3093 100755 --- a/intercept.py +++ b/intercept.py @@ -4129,12 +4129,14 @@ HTML_TEMPLATE = ''' Object.values(btDevices).forEach(d => { const devType = d.device_type || 'other'; + console.log('[CHART] Device:', d.mac, 'device_type:', d.device_type, 'resolved:', devType); if (d.tracker) trackers++; else if (devType === 'phone') phones++; else if (devType === 'audio') audio++; else if (devType === 'wearable') wearables++; else other++; }); + console.log('[CHART] Totals - phones:', phones, 'audio:', audio, 'wearables:', wearables, 'trackers:', trackers, 'other:', other); document.getElementById('btPhoneCount').textContent = phones; document.getElementById('btAudioCount').textContent = audio; @@ -4192,10 +4194,12 @@ HTML_TEMPLATE = ''' const manufacturers = {}; Object.values(btDevices).forEach(d => { const m = d.manufacturer || 'Unknown'; + console.log('[MFR] Device:', d.mac, 'manufacturer:', d.manufacturer, 'resolved:', m); manufacturers[m] = (manufacturers[m] || 0) + 1; }); const sorted = Object.entries(manufacturers).sort((a, b) => b[1] - a[1]).slice(0, 6); + console.log('[MFR] Sorted manufacturers:', sorted); const list = document.getElementById('btManufacturerList'); if (sorted.length === 0) {