Presenting the InfluxDB data using Grafana
In this section, we will finalize the temperature logger setup by configuring Grafana, our chart manipulating tool, to get data from the InfluxDB database and present it in charts created in a Dashboard environment. The first thing to do is to configure the database source where we will pull the data from. We will do that by following these steps:
- Open Grafana by clicking on the link in the Home Assistant sidebar. Click on the Grafana Configuration menu (the gear icon) and then on Data sources. We will change the configuration we did in Chapter 7 a little. Click on the InFluxDB data source. In the Name field, rename
InFluxDB
toInFluxDB - Temperatures
. Make sure the Database field is filled withTemperatures
. Fill in the User and Password fields withyour_name
andyour_password
, respectively. Click on the Save & test button. Now, as the database has data, you should get the message datasource is working. 1 measurements found.
...