The main goal of this repo is to build a python script that converts any OPCUA data to JSON.
In addition, each variables nodes are subscribed and the JSON data are updated when the OPCUA node values change
sudo apt install python3-venv
python3 -m venv ./env
source ./env/bin/activate
pip install opcua jsonpath_ng cryptography
- Convert an OPCUA folder of nodes to a JSON file
- Subscribe to each variable and update JSON file
source ./env/bin/activate
python OpcuaToJson.py -u opc.tcp://MacBook-Air-M1.local:53530/OPCUA/SimulationServer -p "Root/Objects/Simulation" -o ./export_opcua.json -d 2
cf : www.prosysopc.com these variables changes each second