How asguizar/lcd-watch-testing works
Project type and purpose
• CareGuardian-IMU is a real-time data-visualization web application. Its primary goal is to collect inertial sensor (IMU) data—either from an actual device (e.g., QMI8658) or from a simulator—and display accelerometer and gyroscope readings live in a browser using Chart.js.
• Key technologies: Node.js, MQTT, WebSockets, Chart.js.
File structure
• Top‐level files:
• server.js → Node.js HTTP & WebSocket server, MQTT client
• mqtt-simulator.js → optional script to publish IMU-like data to MQTT
• imu_data_log.jsonl → recorded sample data (optional replay or logging)
• package.json, package-lock.json → dependencies (mqtt, ws, express, chart.js, etc.)
• README.md
• No dedicated “frontend” folder—static client assets (HTML/JS) are likely served from server.js.
• No microservices: this is a single‐process backend handling both HTTP/WebSocket serving and MQTT subscription.
README for additional insights
• Confirms WebSocket URL ws://localhost:3000.
• Mentions real-time streaming of accelerometer/gyroscope data.
• Notes integration path: IMU hardware → MQTT → WebSocket → Chart.js.
– Labels: Component names, protocol names (MQTT, WebSocket, HTTP)
• blue for backend server,
• orange for front-end/browser.
Detailed breakdown
• (Optional) show “imu_data_log.jsonl” connected as a data source for Node.js