Skip to content
Software for piMeter EnergyMonitor
C++
Branch: master
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
visu
README.md
influxdb.hpp init Sep 2, 2018
main.cpp
spiComm.cpp
spiComm.h

README.md

piMeter - a SmartMeter for Raspberry Pi

This is the software for the piMeter_hardware. You need a running InfluxDB and Grafana installation. A Tutorial on how to setup can be found here

The Software

alt text

Setup Raspberry Pi

Enable SPI

sudo raspi-config
-> Interface Option
-> Enable SPI

Install Dependencies

// 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

Build piMeter

g++ main.cpp spiComm.cpp -o piMeter -lbcm2835

Run piMeter

// bcm2835 Lib needs root
sudo ./piMeter &
You can’t perform that action at this time.