historian

package module
v0.0.0-...-d04d4d3 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Apr 14, 2022 License: MIT Imports: 0 Imported by: 0

README

robot

historian - Godoc License

This package provides working examples of OPC UA servers that support storing and querying historical data.

timescaledb

To create your own OPC UA server with historian services provided by TimescaleDB, start here Godoc

In this example, you will use Timescale, the open-source relational database for time-series and analytics. https://www.timescale.com/

One way to install and run an instance of Timescale is to run this docker command: docker run -d --name timescaledb -p 5432:5432 -e POSTGRES_PASSWORD=password timescale/timescaledb:latest-pg14

In file cmd\main.go, you will find a test server that simulates 12 dynamic process values. The values are stored in the timescaledb instance.

You can use UAExpert by Unified Automation to trend the historical values.

In file 'timescaledb_test.go', you will find client code that connects to the running server, queries the historical data, displaying both raw values and aggregated values.

The timescaledb example supports aggregation functions Avg, Min, Max and Count.

Documentation

Overview

Package historian provides support for adding historian services to OPCUA servers in Go. For more information, vist https://opcfoundation.org/ and download the OPC Unified Architecture Specification, release 1.04.

Directories

Path Synopsis
cmd
Package timescaledb supports adding history services to an OPC UA server using Postgres with TimeScaleDb addin.
Package timescaledb supports adding history services to an OPC UA server using Postgres with TimeScaleDb addin.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL