This repo contains the software for the piMeter_hardware project. You need a running InfluxDB and Grafana installation. A Tutorial on how to setup can be found at www.digitaldex.de
sudo raspi-config
-> Interface Option
-> Enable SPI
// Install bcm2835 Library
wget http://www.airspayce.com/mikem/bcm2835/bcm2835-1.52.tar.gz
tar zxvf bcm2835-1.52.tar.gz
./configure
make
sudo make check
sudo make install
influxdb_cpp::server_info si("IP", 8086, "DB", "user", "password");
g++ main.cpp spiComm.cpp -o piMeter -lbcm2835
// bcm2835 Lib needs root
sudo ./piMeter &
Example Grafana Export can be found in the /visu folder