xoseperez / hlw8012

HLW8012 library for Arduino and ESP8266 using the Arduino Core for ESP8266.
GNU General Public License v3.0
126 stars 48 forks source link

Pull request: Energy monitoring #2

Closed xoseperez closed 6 years ago

xoseperez commented 7 years ago

Originally reported by: Hermann Kraus (Bitbucket: hermr2d2, GitHub: Unknown)


This is actually a pull request, but I can't open one directly ("Access denied"). Please pull from https://bitbucket.org/hermr2d2/hlw8012.

It adds a function to directly measure the energy. This helps in at least two scenarios: 1) Measure how much energy a device uses per day. 2) Measure very low power devices. As this does no numerical integration is quite accurate if you measure over a long time.

xoseperez commented 7 years ago

Original comment by Hermann Kraus (Bitbucket: hermr2d2, GitHub: Unknown):


Sorry, I'm new to Bitbucket. I just noticed that pull request work differently than in Github. I now created one.