Announcement

REXYGEN forum has been moved. This one is closed.
Head over to the new REXYGEN Community Forum at https://forum.rexygen.com.

Looking forward to meeting you there!
 

#1 2019-02-26 23:38:03

scoobsalamander
Member
From: Belgium - Hulshout
Registered: 2015-10-27
Posts: 217

Function block to post 8 values to InfluxDB

Just want to share a function block which can be used to post 8 values to an influxdb (open source time series database).
Definitely not finished and still room for improvement...

The data in the database can then be visualised by means of Grafana.
Both, Grafana and Influxdb, are running on my Synology NAS as a docker container image and this is working just fine for months now without any interruption.

All Grafana charts can be also used in REXYGEN HMI Designer by linking the URL of the chart with the 'Custom HTML.svg' found in the library.

srcfile.c
INFLUX.mdl

Offline

#2 2019-03-01 14:34:37

jaroslav_sobota
Administrator
Registered: 2015-10-27
Posts: 535

Re: Function block to post 8 values to InfluxDB

Hi scoobsalamander,
awesome. Any plans to turn it into a library subsystem for the newest version 2.50.8?

Kind regards,
Jaroslav

Offline

#3 2019-03-02 00:18:16

scoobsalamander
Member
From: Belgium - Hulshout
Registered: 2015-10-27
Posts: 217

Re: Function block to post 8 values to InfluxDB

Hi Jaroslav,

I just made my first library file and included the INFLUXDB - function block by dragging it into it.
What should I do with the srcfile.c for the REXLANG FB which is used inside this function block? I think I still need to copy it into the folder, correct?

Offline

#4 2019-03-03 14:37:12

jaroslav_sobota
Administrator
Registered: 2015-10-27
Posts: 535

Re: Function block to post 8 values to InfluxDB

Hi,
yes the REXLANG source file (typically *.c or *.stl) must be put into the same folder as the library itself (*.mdl).

Kind regards,
Jaroslav

Offline

Board footer

Powered by FluxBB