flopach / opc-ua-sensor-simulator

OPC UA simulation server written in Python, which sends out 3 values from a real data set

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

OPC UA Simulation Server

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.

Installation

  1. Download or clone all files

git clone https://github.com/flopach/opc-ua-sensor-simulator

  1. Install required Python packages (Python 3 is required)

pip install -r requirements.txt

  1. Extract the sensor.csv file (120MB) located in the ZIP archive.

  2. Run the script (Port 4840 needs to be open!):

python opc-ua-server.py

Sensor Data

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.

Testing

You can test the server immediately by using any OPC UA Client. For example: Simple Python OPC-UA GUI client

opcuaclient

License

This python script is licensed under the LGPL-3.0 License - see the LICENSE.md file for details.

Further Links

About

OPC UA simulation server written in Python, which sends out 3 values from a real data set

License:GNU Lesser General Public License v3.0


Languages

Language:Python 100.0%