The stability of my Raspberry Pi that I use for the project Temperature Monitor is not what is should be. Sometimes it simply stops and I need to reboot the RPi to fix it, but somewhere in November a simple reboot did not work. I was able to open Grafana but it didn’t showed any new data. So I opened a ssh session only to find out that Python no longer functioned!
The same counted for some other critical functions like apt and or journalctl, but… Grafana and InflixDB still worked. The data was intact and fortunately I still had a second RPi-Zero that I had used to document the Temperature Monitor Project. Today I found the time to move all the data from RPi to RPi.
In Part 1 and 2 we made it possible to read out the DHT22 sensor and save the data in an InfluxDB database. But this is not so useful if you can’t visualise the data. In this part we will install Grafana on the RPi and visualise the data in the browser.
This projected started about 3 years ago as an Arduino project with a Raspberry PI pulling data from a DHT22 sensor and saving it in a csv-file and evolved over time to a DHT22 connected to a Raspberry PI writing data to an InfluxDB and visualising it with Grafana, both running on the RPi. To boost the cool factor, I also added a monochrome LCD display providing the current temperature, but in this part I will only cover the DHT22 Sensor together with Grafana and InfluxDB.
I just started to learn C++ and finding a good compiler for windows Vista isn’t as easy as I thought it would be. Even more, after I found one it didn’t really work on its own. Offcource you can find lots of information how to get it running if you google a little bit, but even then it was hard for me to get it up and running. Because I know that I’m not the only leek in the world who is learning C++, I written a small tutorial in human language. Here you can read how you install MinGW and get it up and running together with Geany under Windows Vista. I did this under the “home premium” edition of Vista, so the change is big this will work under other versions as well. (and hopefully also under VISTA SP1)