Python script for a Raspberry Pi to read values off a pulse electricity meter and calculate power consumption
Branch: master
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Type Name Latest commit message Commit time
Failed to load latest commit information.


Use an LDR to read pulses from an LED on an electricity meter, and use them to calculate the instantaneous power consumption. See the blog post at

Getting started

  • Get Raspbian up and running on your Pi.
  • apt-get install python virtualenv
  • create a virtualenv as desired
  • install RPi.GPIO - using pip; you can pip install < requirements.txt
  • follow the blog post to get the hardware set up
  • python to get monitoring!