Skip to content

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

License

Notifications You must be signed in to change notification settings

SebSixSq/opc-ua-sensor-simulator

 
 

Repository files navigation

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

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Python 96.7%
  • Dockerfile 3.3%