Last Code Revision Date: 03-Sep-2025
This project reads data from an OPC UA server and streams it to a browser using WebSocket. The tags to read are defined in a CSV file (tags.csv
).
tags.csv
npm install
npm install csv-parse
tags.csv
(format: name,nodeId
).node server.js
name,nodeId
Constant,ns=3;i=1001
Counter,ns=3;i=1002
Random,ns=3;i=1003
Sawtooth,ns=3;i=1004
Sinusoid,ns=3;i=1005
Square,ns=3;i=1006
Triangle,ns=3;i=1007
tags.csv
and restart the server.tags.csv
requires a server restart and browser refresh to see them.public/index.html
and public/app.js
. For fully dynamic tag updates, further code changes are needed.₹ 499.00