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.
- Clone the repository ( Star this repository as well ;) )
- Install the dependencies with
npm install
- Run the server with
npm start
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.
- Connect your serial input device
- Run the server with
npm start
to get a list of serial devices - Configure the name of the device, COM_PORT, at
./settings/config.js
OR Start the server asnpm start <COM_PORT>
, where COM_PORT will be something likeCOM4
in Windows systems or/dev/tty-usbserial1
in Unix-like systems. - Head to the started server with your browser, which defaults to
http://localhost:8080
- Customize this at your own will!
Check the settings/config.js
for available configurations.
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.