Grafana setup - ahpohl/smartmeter GitHub Wiki

Overview

The Smartmeter dashboard was created with Grafana, a popular and easy to use tool for visualization of sensor data in the IoT world.

Fig: Smartmeter dashboard

Installation

Arch Linux Package:

$ yaourt -S grafana-bin

Enable the systemd unit:

$ systemctl enable grafana
$ systemctl start grafana

Configuration

The web interface is available at http://YOUR-IP-ADDRESS:3000/login. Log into Grafana using the default credentials "admin" with password "admin" and set a new password when prompted. Then go to "Configuration" and "Data Sources" and click on "Add data source". Select PostgreSQL and fill out the form as shown with username "grafana" and password grafana". Then click on "Save and Test".

Fig: Smartmeter dashboard

Next go to "Dashboards" and "Manage" and then import the json file. Click on "Upload json file" and browse for the file. The json file is located at /usr/share/smartmeter/grafana/grafana-dashboard.json or in the folder resources/grafana when installing from source. In case you are not on the same host where grafana is installed, you need to copy/paste the json string from the command line into the "Import via panel json" field. Then click on "Load".

Fig: Smartmeter dashboard