The Joulemetre Viewer is a web application designed to display real-time data read from a serial port. It visualizes key electrical parameters including power, voltage, current, energy, and time. The application utilizes WebSockets for live updates, ensuring that users receive the most current data without needing to refresh the page.
The Joulemetre Viewer is a web application designed to display real-time data read from a serial port. It visualizes key electrical parameters including power, voltage, current, energy, and time. The application utilizes WebSockets for live updates, ensuring that users receive the most current data without needing to refresh the page.
## Versions
Node.JS version : 18.19.1
## Project Structure
## Project Structure
```
```
joulemetre-viewer
joulemetre-viewer
├── src
├── src
@ -21,32 +27,36 @@ joulemetre-viewer
```
```
## Installation
## Installation
1. Clone the repository:
1. Clone the repository:
```
```
git clone <repository-url>
git clone <repository-url>
cd joulemetre-viewer
cd joulemetre-viewer
```
```
2. Install the dependencies:
2. Install the dependencies:
```
```
npm install
npm install
```
```
3. Upload the .hex file in the arduino_hex folder to the arduino board.
## Usage
## Usage
1. Start the server:
1. Start the server:
```
```
npm start
npm start
```
```
2. Open your web browser and navigate to `http://localhost:3000` to view the application.
If you want to use another serial port (COM3 for example), the command is :
## Features
```
- Real-time data display from a serial port.
npm start COM3
- WebSocket communication for live updates.
```
- User-friendly interface for monitoring electrical parameters.
## Contributing
2. Open your web browser and navigate to `http://localhost:3000` to view the application.
Contributions are welcome! Please submit a pull request or open an issue for any enhancements or bug fixes.