docs: switch to ESP32-S3 and add logging server

- Update HARDWARE.md to recommend ESP32-S3 over RP2040 to support Wi-Fi
  logging capabilities and better GPIO availability.
- Initialize a Node.js Express server to receive and store test results
  from the hardware device.
- Add a web-based dashboard to visualize HDMI pin status history, including
  basic pass/fail logic for voltage drops.
This commit is contained in:
2025-12-24 00:24:55 -05:00
parent fbba9e731b
commit 2bfb34724d
4 changed files with 140 additions and 5 deletions

36
server/index.js Normal file
View File

@@ -0,0 +1,36 @@
const express = require('express');
const app = express();
const port = 3000;
app.use(express.json());
app.use(express.static('public'));
let testResults = [];
// Endpoint for the HDMI Tester to upload results
app.post('/api/results', (req, res) => {
const { deviceId, mode, results } = req.body;
const testId = testResults.length + 1;
const timestamp = new Date().toISOString();
const newEntry = {
testId,
deviceId,
mode,
timestamp,
results
};
testResults.push(newEntry);
console.log(`Received test #${testId} from ${deviceId}`);
res.status(201).json({ status: 'success', testId });
});
// Endpoint for the Web Interface to get all results
app.get('/api/results', (req, res) => {
res.json(testResults);
});
app.listen(port, () => {
console.log(`HDMI Tester Server running at http://localhost:${port}`);
});