A simple server for exposing data inside InfluxDB over OPCUA, brought to you by factry.
This project was built as a proof of concept to get data in InfluxDB (for example the result of some event processing algorithm) back to the automation layer. OPCUA is the de facto protocol to use.
This server takes a config file in which you specify which measurements in InfluxDB you want to expose. The application assumes that there is only 1 retention policy in the DB (for now) For each measurement, the last values of each individual series/field combination will be exposed in the OPCUA namespace like this:
Objects
|- Database1
| |- Measurement1
| |- Tag1=Tag1Value1,Tag2=Tag2Value1
| | |- Field1.last
| | |- Field2.last
| |- Tag1=Tag1Value2,Tag2=Tag2Value1
| |- Field1.last
| |- Field2.last
|- Database2
|- Measurement1
...
TODO: provide ready-to-run packages for each OS.
This project requires node v8 or highter.
npm installCONFIG_PATHnode index.jsYou can find an example config file in /example_config
Some settings for running the OPCUA server:
The connection details for influxDB:
An array of measurents to expose on the OPCUA server.
git checkout -b my-new-featuregit commit -am 'Add some feature'git push origin my-new-featureMIT
docker pull loq9/influx-opcua-server:latest