Visualization of data from EnergyDataDK can help you determine whether the data has gaps, assess the quality of the data, be utilized to monitor whether datastreams fall outside of tolerances, for demonstration purposes, ect.
EnergyDataDK has built-in functionality that helps you do this; Simply select a dataset you have viewing rights to, select a datastream, and enter a time range to get a preview. This will help you assess whether this time period has data, and whether there are any gaps.
You can find detailed instructions in our Platform Guide.
You can additionally use our APIs to extract data and use a variety of options to present the data visually.
Below we will provide instructions, examples, and perhaps even some inspiration.
If you encounter any errors in this document or have suggestions for improvement, please contact us at EnergyDataDK@DTU.DK.
There are a number of 3rd party visualization applications available which allow you to generate graphs based on either historical, or live data.
Many data visualizing applications can be used free of charge, are relatively easy to use, and you can usually get started within just a few minutes.
Grafana is an open-source analytics and visualization web application. It connects to time series databases and other data sources, allowing users to build dashboards that display metrics, logs, and traces.
Wikipedia
Grafana is our preferred data visualization tool. It’s a powerful and easy to use Open Source solution, which means you can use Grafana for free. You can find it here.
Installing Grafana is relatively straight forward, so for the purpose of this guide we’ll assume you’ll be able to get started with Grafana by following the steps involved with the registration process.
In this guide we’ll keep things relatively simple, but as mentioned above, Grafana is offers a wide variety of features. If you’re interested in learning more about the solution, we refer you to their documentation page.
First and foremost, you’ll need to install the “MQTT data source plugin“. Follow the link to learn more, or continue below to install.
Step 1: Select Administration → Plugins and data → Plugins from the main menu on the left.
Step 2: In the Search field enter “MQTT” and click the MQTT tile.
Step 3: Click the Install button in the upper right corner.
Next, we need to establish the connection to the datastream.
Now that we have a connection, it’s time to actually visualize the datastream.
dataset/datastream-collection/datastream.
You should now see a graph generating.
You can add additional panels by repeating the steps above for each datastream you want to monitor.
You can use EnergyDataDK’s API to create your own custom visualization. These can be thing like graphs, diagrams, or dashboards.
Below we will demonstrate examples of visualizations utilizing the EnergyDataDK API.
The Graph generator essentially allows you to upload a file which describes the dataset you want to visualize from EnergyDataDK, after which you choose which datastreams you want to generate graphs for, and for which period.
Graphs will be generated for each of the selected datastreams for that period.
The application is made entirely with client-side scripting (JavaScript). It constructs a fetch command based on the user’s input and uses this information to construct graphs using jsGraph.
A dashboard generally is just to demonstrate a state of affairs. Therefor, you would generally subscribe to a MQTT broker to continuously receive the latest values.
Alternatively you would set an interval at which you collect the newest value.
Below are examples of dashboards using the EnergyDataDK API.