Back

Topic

[KB1240]Influx DB provider – Version 1

Tags: Big data, NoSQL, Open source, Provider, TSDB

2 months ago
By LM
Options
Print

Applies to:

 

PcVue 16 onwards


Summary:

 

This article contains attached files at the end. Common use case with InfluxDB and PcVue is IoT and BigData. With the expansion of IoT in various fields InfluxDB is getting widely adopted because of its high throughput ingestion and real-time querying capabilities and Time Series functionalities.
The Flux language offered by Influx DB is very rich and opens huge possibilities for PcVue.


Status:

 

This provider has the status: Release candidate


Details:

 

Download the latest version of the provider proposed in the table at the end of this article and unzip it to execute the msi file.

Follow the instruction given in the ADO.Net Providers installation procedure article to install this provider.

To declare a connection into PcVue, goto General -> Data connections -> Add a SQL connection and select the Data source Built-in providers, then you can choose .NET Framework Data Provider for Influx DB Data provider:

Influx DB Provider declaration part 1

Influx DB Provider declaration part 1

Finally go to the second tab (Built-in) to configure the connection:

Influx DB Provider declaration part 2

Influx DB Provider declaration part 2

Few sample queries:

from(bucket: “ado-bucket”)
|> range(start: -1h)
|> aggregateWindow(every: 5s, fn: mean, createEmpty: false)
|> yield(name: “mean”)

from(bucket: “ado-bucket”)
|> range(start: -1h)
|> filter(fn: (r) => r[“_measurement”] == “airSensors”)
|> pivot(rowKey: [“_time”], columnKey: [“_field”], valueColumn: “_value”)

from(bucket: “ado-bucket”)
|> range(start: 2023-06-29T07:00:00.000Z, stop: 2023-06-29T12:00:00.000Z)
|> aggregateWindow(every: v.windowPeriod, fn: last, createEmpty: false)
|> pivot(rowKey: [“_time”], columnKey: [“_field”], valueColumn: “_value”)

from(bucket: “ado-bucket”)
|> range(start: 2023-06-29T07:00:00.000Z, stop: 2023-06-29T09:00:00.000Z)
|> filter(fn: (r) => r[“_measurement”] == “airSensors”)
|> aggregateWindow(every: 5s, fn: last, createEmpty: false)
|> pivot(rowKey: [“_time”], columnKey: [“_field”], valueColumn: “_value”)
|> drop(columns: [“_stop”, “_start”, “_measurement”])

Files attached consist in the:

Attached file Description
sv-adonet-provider_InfluxDB_1.0.650.zip Version 1.0.650 of Influx DB provider
  The documentation
  The Release Notes

   

Created on: 24 Mar 2025