This is a simple test to show how to connect an OPC UA server to an InfluxDB database.
This projects consists of three parts:
- OPC UA Server: This element simulates a sensor and sends out data on three variables - temperature, pressure and a setting.
- Broker: This element is a simple OPC UA client that retrieves data from the server and sends it to the InfluxDB database.
- InfluxDB: This is a time-series database that stores the data sent by the broker.
No element is publicly accessible. Access on is granted through personal request.
The OPC UA Server is a Docker container on a VM in the Akamai Cloud. The broker is another Docker container on the same VM. The InfluxDB is a managed service on Azure, accessible through Influxdata's web app.
The OPC UA Server is written in Python and uses the asyncua
library. The broker is also written in Python and uses the asyncua
and influxdb
libraries. The InfluxDB is fully managed.