- 1. Intro
- 2. InfluxDB Line Protocol on HTTP
- 3. Sending data to InfluxDB using Arduino over HTTP
- 4. Viewing the raw data
- 5. Setting up Grafana to view InfluxDB data
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:
SELECT * FROM my_house_data
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!