Skip to content

Log OPC UA data to InfluxDB v2 with Docker

License

Notifications You must be signed in to change notification settings

thomasglauser/opcua-logger

Repository files navigation

CodeQL Publish Docker image GitHub GitHub issues

OPCUA logger

Log OPC UA data to InfluxDB v2 with Docker

Features

  • Easy deployment with docker-compose
  • Cross platform compatibility
  • Logs numbers, booleans and strings

Built With

Deployment with docker-compose

  1. Clone the repo.

    git clone https://github.com/thomasglauser/opcua-logger.git
  2. Create an .env file and define all required variables as specified in the example.env file.

    touch .env
  3. Create an config.json file and configure your OPC UA server interface as specified in the example.config.json file.

    touch config.json
  4. Start the services.

    docker-compose up -d
  5. Log in to the InfluxDB web interface and complete the initial setup. You need to create a new authentication token and add it to the .env file as "INFLUX_TOKEN".

  6. Re-create the services with the updated token. opcua-logger can now authenticate with the newly generated token.

     docker-compose up -d

Credits

This is a Fork of node-opcua-logger

Thanks to:

License

Distributed under the MIT License. See LICENSE.txt for more information.