Setting up InfluxDB and Grafana for storing and viewing Arduino measured sensor values

Viewing the raw data

After uploading the sketch in your Arduino, and making sure that it can connect to the computer which hosts the InfluxDB server, you should see something like the animation below, which are the Arduino’s serial port monitor and InfluxDB terminal:

If you are seeing something similar to the above animation, then everything is right! Otherwise, discuss in the comment section or in the forum and I will try to help you out.

To access the administration panel of InfluxDB, open a browser on the host computer and go to ‘localhost:8083‘. On the top of the page, select the database to work on (remember we named it embedonix if you have changed that name, then it is something else :P). After that in the Query text box, enter the following query:

Then you should see an overview of recently received data.

So far, these are raw data in the database. They can be viewed, queried and sorted based on metrics such as time, maximum and minimum and average. But This is not what we want! we want a nice and clean graphical presentation, which leads us to the next section, using Grafana!

Saeid Yazdani

An Electronics Engineer with passion in Embedded Systems, Wireless Sensor Networks, Assembly, Desktop and Mobile Development, Web Development and generally anything that has to do with hardware and software of any kind!

Leave a Reply

Your email address will not be published. Required fields are marked *