This example includes a demo for the time series data plugin. It is designed to to be used with the time series data submodel template specified by the IDTA. The specification can be found here.
The plugin supports the following segment types:
- InternalSegment: This segment defines time series data within the AAS
- ExternalSegment: This segment defines time series data inside a file or blob SubmodelElement (the example includes a csv file as an example)
- LinkedSegment: This segment defines time series data inside a linked time series database (the example includes an InfluxDB together with telegraf for mqtt as an example)
- Docker
- Clone the repository
- Run
docker-compose up -din this directory
You can now access the AAS Web UI (http://localhost:3000) and InfluxDB UI (http://localhost:8086) in your browser.
The username and password for InfluxDB are admin and influxpassword.
- Open the AAS Web UI in your browser (http://localhost:3000)
- Select the
TimeSeriesDemoAAS and click on theTimeSeriesTestsubmodel in the treeview - In the
Visualization-window select theInternalSegmentin the Segment dropdown - Select
timeas time-value and for exampletemperatureas y-value - Click on
Fetch Data - In the
Preview Chart-window select a chart type - You should now see a chart with the time series data
- Open the AAS Web UI in your browser (http://localhost:3000)
- Select the
TimeSeriesDemoAAS and click on theTimeSeriesTestsubmodel in the treeview - In the
Visualization-window select theExternalSegmentin the Segment dropdown - Select
timeas time-value and for exampletemperatureas y-value - Click on
Fetch Data - In the
Preview Chart-window select a chart type - You should now see a chart with the time series data
Prerequisites:
- Check if the query property of the
LinkedSegmentcorrosponds to the data you want to fetch from the database. If not, change the query property to the desired query (see images below).
- Open the AAS Web UI in your browser (http://localhost:3000)
- Select the
TimeSeriesDemoAAS and click on theTimeSeriesTestsubmodel in the treeview - In the
Visualization-window select theLinkedSegmentin the Segment dropdown - Select
timeas time-value and for exampletemperatureas y-value - If you see an input field for the InfluxDB Token, copy the token from the docker.compose.yml file
- Click on
Fetch Data - In the
Preview Chart-window select a chart type - You should now see a chart with the time series data
You can always press the Fetch Data button again to update the chart with the latest data from the database.
You can choose between the following chart types:
- Line Chart
- Area Chart
- Scatter Chart
- Histogram
- Gauge
For most of the chart types you can also alter some options. Those include:
- Time Range
- Interpolation Mode
- Number of Bins (for Histogram)
- If Bars should be stacked (for Histogram)
- The LinkedSegment was only tested with InfluxDB
- The ExternalSegment was only tested with csv files (RFC 4180 with header line) in a file SubmodelElement

