This is an OPC UA simulation server written in Python, which sends out 3 values from a real data set when it gets started. It is intended for testing, especially with the Cisco Edge Intelligence IoT software for data extraction.
- Download or clone all files
git clone https://github.com/flopach/opc-ua-sensor-simulator
- Install required Python packages (Python 3 is required)
pip install -r requirements.txt
-
Extract the sensor.csv file (120MB) located in the ZIP archive.
-
Run the script (Port 4840 needs to be open!):
python opc-ua-server.py
When executed, the OPC UA server provides 3 values to the connected clients (infinite loop):
- Pump Temperature (in Fahrenheit), Float
- Pump Pressure (in bar), Float
- Pump Setting (standard or speed), String
The data set Pump sensor data which is available on Kaggle is being used.
You can test the server immediately by using any OPC UA Client. For example: Simple Python OPC-UA GUI client
This python script is licensed under the LGPL-3.0 License - see the LICENSE.md file for details.