Add chart for the demo device
The Bosch IoT Insights' dashboard allows - among others - to explore your data forwarded by the digital twin layer and to visualize the values in a chart.
The example screenshot shows 3 different types of charts to visualize the compass values. However, there are a lot more options, once you are familiar with the concepts.
For more information on how to use Bosch IoT Insights, refer to the Bosch IoT Insights' documentation.
Table of contents
At this point, we assume you have already configured the connection to forward data from the digital twin layer to Bosch IoT Insights, and that your demo device policy explicitly allows the forwarding.
Find the specific data that should be displayed
Log in to your Bosch IoT Insights project.
Explore > Data Browser
Each event forwarded by the digital twin layer is displayed as one object.
By default, the JSON view is displayed.
Explore > Data Explorer > Add Query Template
The query template can serve as the data source for a widget.
Refer to the Bosch IoT Insights' documentation of the Data Explorer to find out more about query templates.
Set a Name for the template in order to find it again at a later point in time.
The description is optional.
The label is optional.
In case you have registered multiple devices but want to display only one, you can filter for the thing ID e.g.
Replace line 4 "my.namespace.example:demo-01" with the ID of your device respectively.
Save the changes.
If you want to make your query template and corresponding widget available to other users of the project, go to the Access rights area under Template Designer and invite users with the respective roles.
Add a widget to display the values
Scroll down to the very end of your Overview page.
Click Add widget.
From the General view, select the one that you think is closest to your needs.
In this example, we show the steps for a Signals Widget.
The Signals Widget view highlights the missing default settings.
As a Data Source, you can select:
Your own query template created in the section above.
Save data source
The Widget Preview - at the right side - shows that some settings are still missing.
For the Signals Settings:
In the X-Axis / Timestamp Field, select [i].payload.timestamp - this is the time when the digital twin layer modified the data.
In the Y-Axis/ Signals Root select [i].payload.value.compass.properties.status - this is the path where the values of the demo device compass sensor belong to.
For Preselected signals, activate the checkboxes for the values you are interested in. In our example, we selected all except the sensorUnits.
Click Add to have this widget rendered on your Overview page.
By default, the widget shows up at the end of the page.
If you need the size or the title adjusted:
Click Activate Editing at the end of your Overview page
Then click the edit icon in the upper right corner of the chart.
E.g. to adjust the width edit Dashboard settings > Size > Half (2 Columns).
Click Save to close the editing mode.
If you want to see the chart at the start of the page:
Click Start sorting at the end of your Overview page.
Drag and drop the widget to the top.
Please remember, that filtering the amount of data at the step "Explore > Data Analyzer" will be crucial when working with more than "lab data" of one device.