https://github.com/imadx/serial-data-visualization-server
Serial Data Visual Server Starter Kit for serial port related projects
https://github.com/imadx/serial-data-visualization-server
arduino nodejs realtime serial socket-io
Last synced: 5 months ago
JSON representation
Serial Data Visual Server Starter Kit for serial port related projects
- Host: GitHub
- URL: https://github.com/imadx/serial-data-visualization-server
- Owner: imadx
- License: apache-2.0
- Created: 2016-12-30T05:36:09.000Z (about 9 years ago)
- Default Branch: master
- Last Pushed: 2016-12-31T05:27:38.000Z (about 9 years ago)
- Last Synced: 2025-06-21T00:07:13.497Z (7 months ago)
- Topics: arduino, nodejs, realtime, serial, socket-io
- Language: JavaScript
- Size: 13.7 KB
- Stars: 2
- Watchers: 1
- Forks: 1
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# Serial Data Visualization Server
Use this Serial Data Visualization Server as a starter kit for your serial port related projects. Tested with Arduino data written to serial output, connected through USB.
## Getting Started
1. Clone the repository ( Star this repository as well ;) )
2. Install the dependencies with `npm install`
3. Run the server with `npm start`
## Special Note
This is still in beta. Currently a single numeric reading (e.g. `834.74`) separated with `'\n'` should be written through the Serial Port, for the web interface to run correctly.
## Walkthrough
1. Connect your serial input device
2. Run the server with `npm start` to get a list of serial devices
3. Configure the name of the device, COM_PORT, at `./settings/config.js`
OR
Start the server as `npm start `, where COM_PORT will be something like `COM4 ` in Windows systems or `/dev/tty-usbserial1` in Unix-like systems.
4. Head to the started server with your browser, which defaults to `http://localhost:8080`
5. Customize this at your own will!
## Configurations
Check the `settings/config.js` for available configurations.
```javascript
module.exports = {
port: "8080",
COM_PORT: undefined, // e.g. "COM1"
COM_baudRate: 9600,
dashboardEndpoint: "/",
log_data_exchanged_on_console: false,
}
```
At runtime, when the browser is pointed to the dashboard page, which defaults to `http://localhost:8080`, set `enable_log_data_to_console=true;` in console (Debugger Tools) to enable data output on the console.