My guide to grafana / influxdb: Difference between revisions
No edit summary |
No edit summary |
||
Line 20: | Line 20: | ||
==Filling influxdb using evologger== | ==Filling influxdb using evologger== | ||
[https://evohome-client.readthedocs.io/en/latest/index.html Evohome client readme] | |||
[https://github.com/watchforstock/evohome-client Evohome client github] | |||
[https://github.com/freeranger/evologger Freeranger evologger] | |||
<pre> | <pre> | ||
apt install git | apt install git | ||
Line 25: | Line 29: | ||
cd /opt/ | cd /opt/ | ||
git clone https://github.com/freeranger/evologger.git | git clone https://github.com/freeranger/evologger.git | ||
pip install ./evohome-client | |||
</pre> | |||
=Grafana= | =Grafana= |
Revision as of 14:25, 13 May 2019
adapted from SmartThings Data Visualisation using InfluxDB and Grafana
Influxdb
apt-get install influxdb influxdb-cli influxdb-client service influxdb start systemctl enable influxdb influx
you can also surf to http://db-01.edgarbv.int:8083/ to check if it works
Back in the cli (influx) enter <jpre> Visit https://enterprise.influxdata.com to register for updates, InfluxDB server management, and monitoring. Connected to http://localhost:8086 version 1.0.2 InfluxDB shell version: 1.0.2 > create database "honeywell" > create user "grafana" with password 'password'
Filling influxdb using evologger
Evohome client readme Evohome client github Freeranger evologger
apt install git apt-get install python-pip cd /opt/ git clone https://github.com/freeranger/evologger.git pip install ./evohome-client
Grafana
The Grafana download page debian installation page for grafana
apt-get install libfontconfig1 apt-transport-https
vi /etc/apt/sources.list
deb https://packages.grafana.com/oss/deb stable main
now you can install
dselect update apt-get install grafana systemctl daemon-reload systemctl enable grafana-server mv /var/lib/grafana/ /home/ ln -s /home/grafana /var/lib/grafana systemctl start grafana-server
Verify it works by visiting
http://monitor.edgarbv.int:3000
admin / admin
change password
vi /etc/grafana/grafana.ini
;allow_sign_up = false
Now you can add a data source, which is an influxdb, with name set to Honeywell, URL set to http://db-01.edgarbv.int:8086/ and Influxdb database name, user and password filled in. You can then save and test.
NOTE the URL for data access is port 8086!