index.html 26 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389
  1. <!DOCTYPE html>
  2. <html lang="en">
  3. <head>
  4. <meta charset="UTF-8">
  5. <meta name="viewport" content="width=device-width, initial-scale=1.0">
  6. <title>Audi A4 B5 HVAC Diagnostic</title>
  7. <!-- Fonts -->
  8. <link rel="preconnect" href="https://fonts.googleapis.com">
  9. <link rel="preconnect" href="https://fonts.gstatic.com" crossorigin>
  10. <link href="https://fonts.googleapis.com/css2?family=JetBrains+Mono:wght@400;700&family=Outfit:wght@300;400;600;800&display=swap" rel="stylesheet">
  11. <link rel="stylesheet" href="/static/css/style.css">
  12. </head>
  13. <body>
  14. <div class="app-container">
  15. <!-- Header -->
  16. <header class="header glass-panel">
  17. <div class="logo-area">
  18. <div class="rings">
  19. <div class="ring"></div><div class="ring"></div><div class="ring"></div><div class="ring"></div>
  20. </div>
  21. <h1>A4 B5 <span>HVAC DIAGNOSTIC</span></h1>
  22. </div>
  23. <div class="connection-area">
  24. <div class="port-selector">
  25. <select id="portSelect">
  26. <option value="">Scanning ports...</option>
  27. </select>
  28. <button id="refreshPortsBtn" class="icon-btn" title="Refresh Ports">↻</button>
  29. </div>
  30. <button id="connectBtn" class="btn btn-primary">Connect</button>
  31. <div class="status-indicator">
  32. <div id="statusDot" class="dot disconnected"></div>
  33. <span id="statusText">Disconnected</span>
  34. </div>
  35. </div>
  36. </header>
  37. <!-- Main Content (Hidden until connected) -->
  38. <main id="mainContent" class="main-content hidden">
  39. <!-- ECU Info Bar -->
  40. <div class="ecu-info-bar glass-panel">
  41. <div class="ecu-item">
  42. <span class="label">MODULE</span>
  43. <span class="value">08 - Auto HVAC</span>
  44. </div>
  45. <div class="ecu-item">
  46. <span class="label">PART NUMBER</span>
  47. <span class="value" id="ecuPartNum">--</span>
  48. </div>
  49. <div class="ecu-item">
  50. <span class="label">EXTRA INFO</span>
  51. <span class="value" id="ecuExtra">--</span>
  52. </div>
  53. <div class="ecu-actions">
  54. <button id="exportAllBtn" class="btn btn-export" title="Export all data for AI analysis">
  55. <svg width="16" height="16" viewBox="0 0 16 16" fill="currentColor"><path d="M8 0a1 1 0 0 1 1 1v5.586l2.293-2.293a1 1 0 0 1 1.414 1.414l-4 4a1 1 0 0 1-1.414 0l-4-4a1 1 0 0 1 1.414-1.414L7 6.586V1a1 1 0 0 1 1-1zM1 10a1 1 0 0 1 1 1v2a1 1 0 0 0 1 1h10a1 1 0 0 0 1-1v-2a1 1 0 1 1 2 0v2a3 3 0 0 1-3 3H3a3 3 0 0 1-3-3v-2a1 1 0 0 1 1-1z"/></svg>
  56. Export Report
  57. </button>
  58. </div>
  59. </div>
  60. <!-- Live Dashboard Gauges -->
  61. <section id="gaugeDashboard" class="gauge-dashboard glass-panel">
  62. <div class="panel-header">
  63. <h2>Live Dashboard</h2>
  64. <div class="panel-actions">
  65. <div class="live-toggle">
  66. <label class="switch">
  67. <input type="checkbox" id="dashLiveToggle">
  68. <span class="slider round"></span>
  69. </label>
  70. <span>Auto-Refresh</span>
  71. </div>
  72. </div>
  73. </div>
  74. <div class="gauge-grid">
  75. <!-- Row 1: Temperature Gauges -->
  76. <div class="gauge-card" id="gaugeInteriorTemp">
  77. <canvas id="gaugeCanvasInterior" width="160" height="160"></canvas>
  78. <div class="gauge-info">
  79. <span class="gauge-value" id="gaugeValInterior">--</span>
  80. <span class="gauge-unit">°C</span>
  81. </div>
  82. <span class="gauge-label">Interior Temp</span>
  83. </div>
  84. <div class="gauge-card" id="gaugeOutsideTemp">
  85. <canvas id="gaugeCanvasOutside" width="160" height="160"></canvas>
  86. <div class="gauge-info">
  87. <span class="gauge-value" id="gaugeValOutside">--</span>
  88. <span class="gauge-unit">°C</span>
  89. </div>
  90. <span class="gauge-label">Outside Temp</span>
  91. </div>
  92. <div class="gauge-card" id="gaugeEvapTemp">
  93. <canvas id="gaugeCanvasEvap" width="160" height="160"></canvas>
  94. <div class="gauge-info">
  95. <span class="gauge-value" id="gaugeValEvap">--</span>
  96. <span class="gauge-unit">°C</span>
  97. </div>
  98. <span class="gauge-label">Evaporator Temp</span>
  99. </div>
  100. <!-- Row 2: Operational Gauges -->
  101. <div class="gauge-card" id="gaugeBlower">
  102. <canvas id="gaugeCanvasBlower" width="160" height="160"></canvas>
  103. <div class="gauge-info">
  104. <span class="gauge-value" id="gaugeValBlower">--</span>
  105. <span class="gauge-unit">V</span>
  106. </div>
  107. <span class="gauge-label">Blower Speed</span>
  108. </div>
  109. <div class="gauge-card" id="gaugeCompressor">
  110. <div class="compressor-status" id="compressorStatusIcon">
  111. <div class="compressor-ring off">
  112. <svg width="60" height="60" viewBox="0 0 60 60" fill="none">
  113. <circle cx="30" cy="30" r="24" stroke="currentColor" stroke-width="3" fill="none"/>
  114. <text x="30" y="34" text-anchor="middle" fill="currentColor" font-size="14" font-weight="700">A/C</text>
  115. </svg>
  116. </div>
  117. </div>
  118. <div class="gauge-info">
  119. <span class="gauge-value" id="gaugeValCompressor">OFF</span>
  120. <span class="gauge-unit"></span>
  121. </div>
  122. <span class="gauge-label">Compressor</span>
  123. </div>
  124. <div class="gauge-card" id="gaugeSystemV">
  125. <canvas id="gaugeCanvasSysV" width="160" height="160"></canvas>
  126. <div class="gauge-info">
  127. <span class="gauge-value" id="gaugeValSysV">--</span>
  128. <span class="gauge-unit">V</span>
  129. </div>
  130. <span class="gauge-label">System Voltage</span>
  131. </div>
  132. </div>
  133. </section>
  134. <!-- Car Sensor Diagram -->
  135. <section class="car-diagram-section glass-panel">
  136. <div class="panel-header">
  137. <h2>Sensor Map — Audi A4 B5</h2>
  138. <span class="diagram-legend">
  139. <span class="legend-item"><span class="legend-dot ok"></span> Normal</span>
  140. <span class="legend-item"><span class="legend-dot warn"></span> Warning</span>
  141. <span class="legend-item"><span class="legend-dot fault"></span> Fault / Open</span>
  142. </span>
  143. </div>
  144. <div class="car-diagram-container">
  145. <svg id="carDiagram" viewBox="0 0 900 420" xmlns="http://www.w3.org/2000/svg">
  146. <defs>
  147. <filter id="glow-ok">
  148. <feGaussianBlur stdDeviation="3" result="blur"/>
  149. <feMerge><feMergeNode in="blur"/><feMergeNode in="SourceGraphic"/></feMerge>
  150. </filter>
  151. <filter id="glow-fault">
  152. <feGaussianBlur stdDeviation="4" result="blur"/>
  153. <feMerge><feMergeNode in="blur"/><feMergeNode in="SourceGraphic"/></feMerge>
  154. </filter>
  155. <linearGradient id="bodyGrad" x1="0" y1="0" x2="1" y2="1">
  156. <stop offset="0%" stop-color="rgba(30,30,50,0.6)"/>
  157. <stop offset="100%" stop-color="rgba(15,15,30,0.8)"/>
  158. </linearGradient>
  159. <linearGradient id="windowGrad" x1="0" y1="0" x2="0" y2="1">
  160. <stop offset="0%" stop-color="rgba(0,212,255,0.08)"/>
  161. <stop offset="100%" stop-color="rgba(0,212,255,0.02)"/>
  162. </linearGradient>
  163. </defs>
  164. <!-- Car Body - Top-down view (sedan profile) -->
  165. <!-- Main body outline -->
  166. <path d="M 150,60 Q 120,60 100,80 L 80,120 Q 70,150 70,210 Q 70,270 80,300 L 100,340 Q 120,360 150,360 L 750,360 Q 780,360 800,340 L 820,300 Q 830,270 830,210 Q 830,150 820,120 L 800,80 Q 780,60 750,60 Z"
  167. fill="url(#bodyGrad)" stroke="rgba(255,255,255,0.15)" stroke-width="2"/>
  168. <!-- Hood area -->
  169. <path d="M 150,75 L 300,75 L 300,345 L 150,345 Q 130,345 115,325 L 95,290 Q 85,265 85,210 Q 85,155 95,130 L 115,95 Q 130,75 150,75 Z"
  170. fill="rgba(255,255,255,0.02)" stroke="rgba(255,255,255,0.06)" stroke-width="1"/>
  171. <text x="190" y="215" fill="rgba(255,255,255,0.15)" font-size="13" text-anchor="middle" font-family="Outfit">ENGINE BAY</text>
  172. <!-- Windshield -->
  173. <path d="M 300,90 L 380,90 L 380,330 L 300,330 Z"
  174. fill="url(#windowGrad)" stroke="rgba(0,212,255,0.15)" stroke-width="1.5"/>
  175. <text x="340" y="215" fill="rgba(255,255,255,0.1)" font-size="10" text-anchor="middle" font-family="Outfit">WINDSHIELD</text>
  176. <!-- Dashboard / Firewall area -->
  177. <line x1="300" y1="75" x2="300" y2="345" stroke="rgba(255,255,255,0.1)" stroke-width="1" stroke-dasharray="4,4"/>
  178. <!-- Cabin area -->
  179. <rect x="380" y="90" width="220" height="240" rx="5"
  180. fill="rgba(255,255,255,0.01)" stroke="rgba(255,255,255,0.06)" stroke-width="1"/>
  181. <text x="490" y="215" fill="rgba(255,255,255,0.1)" font-size="13" text-anchor="middle" font-family="Outfit">CABIN</text>
  182. <!-- Rear window -->
  183. <path d="M 600,95 L 670,95 L 670,325 L 600,325 Z"
  184. fill="url(#windowGrad)" stroke="rgba(0,212,255,0.12)" stroke-width="1"/>
  185. <!-- Trunk area -->
  186. <path d="M 670,80 L 750,80 Q 770,80 785,95 L 805,125 Q 815,150 815,210 Q 815,270 805,295 L 785,325 Q 770,340 750,340 L 670,340 Z"
  187. fill="rgba(255,255,255,0.01)" stroke="rgba(255,255,255,0.06)" stroke-width="1"/>
  188. <text x="740" y="215" fill="rgba(255,255,255,0.1)" font-size="11" text-anchor="middle" font-family="Outfit">TRUNK</text>
  189. <!-- Wheels -->
  190. <ellipse cx="200" cy="65" rx="35" ry="10" fill="rgba(255,255,255,0.04)" stroke="rgba(255,255,255,0.1)" stroke-width="1.5"/>
  191. <ellipse cx="200" cy="355" rx="35" ry="10" fill="rgba(255,255,255,0.04)" stroke="rgba(255,255,255,0.1)" stroke-width="1.5"/>
  192. <ellipse cx="680" cy="65" rx="35" ry="10" fill="rgba(255,255,255,0.04)" stroke="rgba(255,255,255,0.1)" stroke-width="1.5"/>
  193. <ellipse cx="680" cy="355" rx="35" ry="10" fill="rgba(255,255,255,0.04)" stroke="rgba(255,255,255,0.1)" stroke-width="1.5"/>
  194. <!-- HVAC Box (behind dashboard) -->
  195. <rect x="310" y="140" width="65" height="140" rx="4"
  196. fill="rgba(0,212,255,0.05)" stroke="rgba(0,212,255,0.2)" stroke-width="1" stroke-dasharray="3,3"/>
  197. <text x="342" y="195" fill="rgba(0,212,255,0.3)" font-size="8" text-anchor="middle" font-family="Outfit" transform="rotate(-90,342,195)">HVAC UNIT</text>
  198. <!-- ======= SENSOR MARKERS ======= -->
  199. <!-- G17 - Outside Air Temp - Front bumper/radiator area -->
  200. <g class="sensor-group" id="sensorG17" data-sensor="G17">
  201. <circle cx="95" cy="210" r="8" fill="rgba(0,212,255,0.15)" stroke="#00d4ff" stroke-width="2" filter="url(#glow-ok)"/>
  202. <circle cx="95" cy="210" r="3" fill="#00d4ff"/>
  203. <line x1="103" y1="210" x2="130" y2="175" stroke="rgba(0,212,255,0.4)" stroke-width="1"/>
  204. <rect x="65" y="155" width="95" height="36" rx="4" fill="rgba(0,0,0,0.7)" stroke="rgba(0,212,255,0.3)" stroke-width="1"/>
  205. <text x="112" y="168" fill="#00d4ff" font-size="9" text-anchor="middle" font-family="Outfit" font-weight="600">G17 — OUTSIDE</text>
  206. <text x="112" y="183" fill="#f0f0f5" font-size="14" text-anchor="middle" font-family="JetBrains Mono" font-weight="700" id="diag_G17">--°C</text>
  207. </g>
  208. <!-- G65 - High Pressure Sensor - Engine bay, near A/C lines -->
  209. <g class="sensor-group" id="sensorG65" data-sensor="G65">
  210. <circle cx="240" cy="130" r="8" fill="rgba(0,230,118,0.15)" stroke="#00e676" stroke-width="2" filter="url(#glow-ok)"/>
  211. <circle cx="240" cy="130" r="3" fill="#00e676"/>
  212. <line x1="248" y1="130" x2="270" y2="100" stroke="rgba(0,230,118,0.4)" stroke-width="1"/>
  213. <rect x="210" y="78" width="95" height="36" rx="4" fill="rgba(0,0,0,0.7)" stroke="rgba(0,230,118,0.3)" stroke-width="1"/>
  214. <text x="257" y="91" fill="#00e676" font-size="9" text-anchor="middle" font-family="Outfit" font-weight="600">G65 — A/C PRESS</text>
  215. <text x="257" y="106" fill="#f0f0f5" font-size="14" text-anchor="middle" font-family="JetBrains Mono" font-weight="700" id="diag_G65">-- V</text>
  216. </g>
  217. <!-- G263 - Evaporator Temp - Inside HVAC box -->
  218. <g class="sensor-group" id="sensorG263" data-sensor="G263">
  219. <circle cx="335" cy="180" r="8" fill="rgba(0,212,255,0.15)" stroke="#00d4ff" stroke-width="2" filter="url(#glow-ok)"/>
  220. <circle cx="335" cy="180" r="3" fill="#00d4ff"/>
  221. <line x1="343" y1="175" x2="375" y2="135" stroke="rgba(0,212,255,0.4)" stroke-width="1"/>
  222. <rect x="325" y="110" width="100" height="36" rx="4" fill="rgba(0,0,0,0.7)" stroke="rgba(0,212,255,0.3)" stroke-width="1"/>
  223. <text x="375" y="123" fill="#00d4ff" font-size="9" text-anchor="middle" font-family="Outfit" font-weight="600">G263 — EVAP</text>
  224. <text x="375" y="138" fill="#f0f0f5" font-size="14" text-anchor="middle" font-family="JetBrains Mono" font-weight="700" id="diag_G263">--°C</text>
  225. </g>
  226. <!-- G89 - Fresh Air Intake - Plenum, below cabin filter -->
  227. <g class="sensor-group" id="sensorG89" data-sensor="G89">
  228. <circle cx="310" cy="105" r="8" fill="rgba(0,212,255,0.15)" stroke="#00d4ff" stroke-width="2" filter="url(#glow-ok)"/>
  229. <circle cx="310" cy="105" r="3" fill="#00d4ff"/>
  230. <line x1="310" y1="97" x2="310" y2="50" stroke="rgba(0,212,255,0.4)" stroke-width="1"/>
  231. <rect x="260" y="22" width="100" height="36" rx="4" fill="rgba(0,0,0,0.7)" stroke="rgba(0,212,255,0.3)" stroke-width="1"/>
  232. <text x="310" y="35" fill="#00d4ff" font-size="9" text-anchor="middle" font-family="Outfit" font-weight="600">G89 — FRESH AIR</text>
  233. <text x="310" y="50" fill="#f0f0f5" font-size="14" text-anchor="middle" font-family="JetBrains Mono" font-weight="700" id="diag_G89">--°C</text>
  234. </g>
  235. <!-- G107 - Sunlight Sensor - Top of dashboard, near defroster -->
  236. <g class="sensor-group" id="sensorG107" data-sensor="G107">
  237. <circle cx="395" cy="210" r="8" fill="rgba(255,165,2,0.15)" stroke="#ffa502" stroke-width="2" filter="url(#glow-ok)"/>
  238. <circle cx="395" cy="210" r="3" fill="#ffa502"/>
  239. <line x1="403" y1="210" x2="440" y2="210" stroke="rgba(255,165,2,0.4)" stroke-width="1"/>
  240. <rect x="440" y="195" width="100" height="36" rx="4" fill="rgba(0,0,0,0.7)" stroke="rgba(255,165,2,0.3)" stroke-width="1"/>
  241. <text x="490" y="208" fill="#ffa502" font-size="9" text-anchor="middle" font-family="Outfit" font-weight="600">G107 — SUNLIGHT</text>
  242. <text x="490" y="223" fill="#f0f0f5" font-size="14" text-anchor="middle" font-family="JetBrains Mono" font-weight="700" id="diag_G107">--</text>
  243. </g>
  244. <!-- G56 - Dash Panel Temp - Behind climate control faceplate, center console -->
  245. <g class="sensor-group" id="sensorG56" data-sensor="G56">
  246. <circle cx="395" cy="260" r="8" fill="rgba(0,212,255,0.15)" stroke="#00d4ff" stroke-width="2" filter="url(#glow-ok)"/>
  247. <circle cx="395" cy="260" r="3" fill="#00d4ff"/>
  248. <line x1="403" y1="260" x2="440" y2="260" stroke="rgba(0,212,255,0.4)" stroke-width="1"/>
  249. <rect x="440" y="245" width="115" height="36" rx="4" fill="rgba(0,0,0,0.7)" stroke="rgba(0,212,255,0.3)" stroke-width="1"/>
  250. <text x="497" y="258" fill="#00d4ff" font-size="9" text-anchor="middle" font-family="Outfit" font-weight="600">G56 — DASH PANEL</text>
  251. <text x="497" y="273" fill="#f0f0f5" font-size="14" text-anchor="middle" font-family="JetBrains Mono" font-weight="700" id="diag_G56">--°C</text>
  252. </g>
  253. <!-- G86 - Interior Temp (Headliner) - In the headliner -->
  254. <g class="sensor-group" id="sensorG86" data-sensor="G86">
  255. <circle cx="490" cy="150" r="8" fill="rgba(0,212,255,0.15)" stroke="#00d4ff" stroke-width="2" filter="url(#glow-ok)"/>
  256. <circle cx="490" cy="150" r="3" fill="#00d4ff"/>
  257. <line x1="490" y1="142" x2="490" y2="80" stroke="rgba(0,212,255,0.4)" stroke-width="1"/>
  258. <rect x="440" y="48" width="100" height="36" rx="4" fill="rgba(0,0,0,0.7)" stroke="rgba(0,212,255,0.3)" stroke-width="1"/>
  259. <text x="490" y="61" fill="#00d4ff" font-size="9" text-anchor="middle" font-family="Outfit" font-weight="600">G86 — HEADLINER</text>
  260. <text x="490" y="76" fill="#f0f0f5" font-size="14" text-anchor="middle" font-family="JetBrains Mono" font-weight="700" id="diag_G86">--°C</text>
  261. </g>
  262. <!-- Flap Motors label cluster (inside HVAC box) -->
  263. <g class="sensor-group" id="sensorFlaps">
  264. <rect x="315" y="235" width="55" height="40" rx="3" fill="rgba(0,0,0,0.5)" stroke="rgba(255,255,255,0.1)" stroke-width="1"/>
  265. <text x="342" y="250" fill="rgba(255,255,255,0.4)" font-size="7" text-anchor="middle" font-family="Outfit">FLAP MOTORS</text>
  266. <text x="342" y="262" fill="rgba(255,255,255,0.25)" font-size="7" text-anchor="middle" font-family="JetBrains Mono">V68 V70</text>
  267. <text x="342" y="272" fill="rgba(255,255,255,0.25)" font-size="7" text-anchor="middle" font-family="JetBrains Mono">V71 V85</text>
  268. </g>
  269. <!-- Coolant Temp - Engine block area -->
  270. <g class="sensor-group" id="sensorCoolant">
  271. <circle cx="240" cy="250" r="8" fill="rgba(255,51,102,0.15)" stroke="#ff3366" stroke-width="2" filter="url(#glow-ok)"/>
  272. <circle cx="240" cy="250" r="3" fill="#ff3366"/>
  273. <line x1="248" y1="255" x2="270" y2="290" stroke="rgba(255,51,102,0.4)" stroke-width="1"/>
  274. <rect x="215" y="290" width="100" height="36" rx="4" fill="rgba(0,0,0,0.7)" stroke="rgba(255,51,102,0.3)" stroke-width="1"/>
  275. <text x="265" y="303" fill="#ff3366" font-size="9" text-anchor="middle" font-family="Outfit" font-weight="600">COOLANT TEMP</text>
  276. <text x="265" y="318" fill="#f0f0f5" font-size="14" text-anchor="middle" font-family="JetBrains Mono" font-weight="700" id="diag_Coolant">--°C</text>
  277. </g>
  278. <!-- Direction arrow -->
  279. <text x="110" y="390" fill="rgba(255,255,255,0.15)" font-size="11" font-family="Outfit">◀ FRONT</text>
  280. <text x="750" y="390" fill="rgba(255,255,255,0.15)" font-size="11" font-family="Outfit" text-anchor="end">REAR ▶</text>
  281. </svg>
  282. </div>
  283. </section>
  284. <div class="dashboard-grid">
  285. <!-- Fault Codes Panel -->
  286. <section class="panel dtc-panel glass-panel">
  287. <div class="panel-header">
  288. <h2>Fault Codes (DTCs)</h2>
  289. <div class="panel-actions">
  290. <button id="exportDTCBtn" class="btn btn-export-sm" title="Export fault codes">⤓ Export</button>
  291. <button id="readDTCBtn" class="btn btn-secondary">Read Faults</button>
  292. <button id="clearDTCBtn" class="btn btn-danger">Clear</button>
  293. </div>
  294. </div>
  295. <div id="dtcContainer" class="dtc-list scrollable">
  296. <div class="empty-state">
  297. <div class="icon">✓</div>
  298. <p>Click "Read Faults" to check for codes.</p>
  299. </div>
  300. </div>
  301. </section>
  302. <!-- Measurements Panel -->
  303. <section class="panel meas-panel glass-panel">
  304. <div class="panel-header">
  305. <h2>Measurement Blocks</h2>
  306. <div class="group-selector">
  307. <label>Group:</label>
  308. <div class="group-pills" id="groupPills">
  309. <!-- Generated by JS -->
  310. </div>
  311. <input type="number" id="customGroupInput" min="1" max="255" placeholder="Custom">
  312. <button id="readGroupBtn" class="btn btn-secondary">Read</button>
  313. <button id="exportMeasBtn" class="btn btn-export-sm" title="Export measurement blocks">⤓ Export</button>
  314. </div>
  315. </div>
  316. <div class="meas-controls">
  317. <div class="live-toggle">
  318. <label class="switch">
  319. <input type="checkbox" id="liveModeToggle">
  320. <span class="slider round"></span>
  321. </label>
  322. <span>Live Monitor</span>
  323. </div>
  324. <span id="groupNameLabel" class="group-name">Select a group</span>
  325. </div>
  326. <div id="measContainer" class="meas-grid">
  327. <!-- Measurement Cards (Generated by JS) -->
  328. </div>
  329. </section>
  330. </div>
  331. </main>
  332. <!-- Log Panel -->
  333. <footer class="log-panel glass-panel">
  334. <div class="log-header">
  335. <h3>Communication Log</h3>
  336. <button id="toggleLogBtn" class="icon-btn">▼</button>
  337. </div>
  338. <div id="logContainer" class="log-content scrollable font-mono collapsed">
  339. <div class="log-line system">Ready. Please connect to continue.</div>
  340. </div>
  341. </footer>
  342. </div>
  343. <!-- Modals -->
  344. <div id="confirmModal" class="modal hidden">
  345. <div class="modal-content glass-panel">
  346. <h3>Clear Fault Codes</h3>
  347. <p class="warning">Are you sure you want to clear all stored fault codes from the HVAC module? This action cannot be undone.</p>
  348. <div class="modal-actions">
  349. <button id="cancelModalBtn" class="btn btn-secondary">Cancel</button>
  350. <button id="confirmClearBtn" class="btn btn-danger">Yes, Clear Faults</button>
  351. </div>
  352. </div>
  353. </div>
  354. <script src="/static/js/app.js"></script>
  355. </body>
  356. </html>