From dcd6cfb2ada367f7a0f5868daf35e2b57a88d7e1 Mon Sep 17 00:00:00 2001 From: MohitAgarwal <56719162+mohitkumaragarwal@users.noreply.github.com> Date: Thu, 25 Jan 2024 10:54:46 +0100 Subject: [PATCH] Update README.md --- .../Release2/NodeOPCUA_IJT_Client/README.md | 48 +++++++++++-------- 1 file changed, 28 insertions(+), 20 deletions(-) diff --git a/OPC_UA_Clients/Release2/NodeOPCUA_IJT_Client/README.md b/OPC_UA_Clients/Release2/NodeOPCUA_IJT_Client/README.md index c846686..cb22020 100644 --- a/OPC_UA_Clients/Release2/NodeOPCUA_IJT_Client/README.md +++ b/OPC_UA_Clients/Release2/NodeOPCUA_IJT_Client/README.md @@ -10,40 +10,48 @@ Email: joakim.h.gustafsson@atlascopco.com Mohit Agarwal Email: mohit.agarwal@atlascopco.com -## NodeOPCUA related +## Overview -Etienne Rossignon -Email: etienne.rossignon@sterfive.com +This application uses the open source OPC UA ASYNCUA Stack. The purpose of this application is to consume the data from any OPC UA server based on the OPC UA Industrial Joining Technologies Companion Specifications. -## Overview +## Pre-requisites -This application uses the open source NodeOPCUA Stack. The purpose of this application is to consume the data from any OPC UA server based on the OPC 40451-1 UA CS for Tightening Systems 1.00. +1. Fork or clone the repository. +2. **Go to** OPCUA_Clients\Release2\NodeOPCUA_IJT_Client folder. +3. **Set up** Python virtual environment as per the following steps: -This client will be updated based on the newer versions of the companion standards developed by VDMA Industrial Joining Technologies Working Group. + Python -m venv venv -## Pre-requisites + venv/Scripts/activate.ps1 +5. **Install** the following packages in the virtual environment: + + pip install --upgrade pip -1. Fork or clone the repository -2. Go to OPCUA_Clients\NodeOPCUA_IJT_Client folder -3. Run `npm install` + pip install websockets + + pip install asyncua + + pip install live-server ## How to run? -1. Run the following command: `node index.js` -2. The above command will start the socket.io server at `http://localhost:3000` -3. Open the `http://localhost:3000` in the browser and start using the client. +1. **Open** the Python Virtual Environment: + + & "/OPC_UA_Clients/Release2/NodeOPCUA_IJT_Client/venv/Scripts/Activate.ps1" +3. **Start** Python Server using the following command: + + py index.py or python index.py +4. **Start** live server to present the webpage and reload when files are updated. Run the following command from a separate terminal: + + live-server --port=8000 +6. The above commands will start the socket.io server at `http://localhost:3000` +7. Open the `http://localhost:3000` in the browser and start using the client. ## OPC UA Server -1. Use the following OPC UA Server to utilize the OPC UA Client: -2. Select Servers -> Local in the OPC UA Client to connect to the local OPC UA Server. +1. Use the following OPC UA Server to utilize the OPC UA Client: https://github.com/umati/UA-for-Industrial-Joining-Technologies/tree/main/OPC_UA_Servers/Release2 ## Tips -* To update existing node-opcua modules, run the following commands: -```bash -npx npm-check-updates -u -f 'node-opcua*' -npm install -```