π·οΈ Release: v1.2 - Interactive Frontend, Log View & Manual Save
π Overview
This release significantly enhances user interaction by introducing a dedicated HTML frontend accessible via the root endpoint (/). This new interface provides a direct, intuitive way to view processed lab report data and system logs, acting as a real-time monitor. We've also added convenient direct controls on the frontend for manual data operations.
LabReportAPI continues to leverage .NET for its core functionality, providing a robust system for processing lab machine data via its custom STX/ETX protocol.
π¦ Whatβs Included
-
New Interactive HTML Frontend (
/):- Live Data & Log Display: The root page now serves a responsive HTML interface that acts as a display for the lab data processed by the API, and crucial system logs. It presents this information in a clear, organized manner for easy monitoring.
- "Logs" Section: Directly displays the data retrieved from the new
/api/logsendpoint, offering a structured view of system activities or detailed lab report records. - Manual Save Button: A prominent button has been added to the frontend, allowing users to trigger the manual saving of current lab data to the USB drive, leveraging the
POST /api/labdata/saveendpoint directly from the browser.
-
New API Endpoint:
GET /api/logs: A dedicated endpoint to retrieve system logs or a more detailed feed of processed lab data, which is then dynamically displayed on the frontend.
-
Core Functionality (Continued):
- Self-contained Windows 64-bit executable
- Background TCP listener (port 12377)
- Auto-saving valid lab messages to
LabData.json - Existing Web API endpoints:
GET /api/labdata/statusβ provides system & network info (also visible on the frontend)POST /api/labdata/saveβ triggers manual USB save (now accessible via frontend button)
- Local IP discovery, error handling, retry logic
- Security features: IP blocking and input validation
- Idle-time detection (writes JSON when no messages for 30s)
π Notes
This version significantly boosts usability by providing a comprehensive visual interface for monitoring both processed lab reports and system logs. The addition of the manual save button directly on the frontend streamlines common operations.
We welcome your feedback on these new features and overall usability!