Hi @ThomDietrich. Thank you for the terrific tutorial on installing InfuxDB and Grafana. Without this tutorial I would have had no idea how to do this.
I performed an install on my Raspberry Pi 3B a couple of days ago on 12/15/18. The instructions were flawless other than the location of some of the repositories changed. Here are the steps i followed.
Starting point:
Raspberry Pi 3B
OpenHAB version: 2.3.0-1 installed with openHABianPi
Raspberry Pi version: Raspbian GNU/Linux 9 (stretch)
apt-transport-https is already present (apt list apt-transport-https)
InfluxDB
From this link the recommended installation for stretch is:
curl -sL https://repos.influxdata.com/influxdb.key | sudo apt-key add -
echo "deb https://repos.influxdata.com/debian stretch stable" | sudo tee /etc/apt/sources.list.d/influxdb.list
sudo apt-get update
sudo apt-get install influxdb
sudo systemctl start influxdb
To enable InfuxDB on startup execute the following commands
sudo systemctl daemon-reload
sudo systemctl enable influxdb.service
Granafa
Grafana now has a package for Raspberian stretch. The Grafana arm architecture packages can be found here. The Raspberian stretch architecture is ARMv7 (not ARM64 as the operating system is compiled as a 32 bit OS).
Installation is:
sudo wget https://dl.grafana.com/oss/release/grafana_5.4.2_armhf.deb
sudo dpkg -i grafana_5.4.2_armhf.deb
If you want Grafana to start at system startup execute the following commands:
sudo /bin/systemctl daemon-reload
sudo /bin/systemctl enable grafana-server
Finally, to start Grafana execute:
sudo /bin/systemctl start grafana-server
Add phantomjs to the Grafana install
Grafana for the ARM architecture does not come with a package to render a graph using a direct link. When clicking on the āDirect link rendered imageā button on Grafana a page with ā404 page not foundā will be shown. This can be fixed by downloading a phantomjs created by @fg2it. It is located here. Copy the phantomjs file to /usr/share/grafana/tools/phantomjs/
It seems that phantomjs is not longer being actively developed or supported. Therefore there may be a better alternative in the near future which means this part of these instructions may soon become obsolete.
Continue with the setup steps in the first posting.