bk99.de entertain the web since 1997

Analysing energy data on Linux over the long term

Summary

Hackaday describes a Perl script that captures XML readings from a Current Cost electricity monitor on Linux and sends them to an analysis service. The device used is the Current Cost CC128. The manufacturer documented its XML format.

Ideas

  • The CC128 outputs readings as documented XML.
  • A serial cable connects the energy monitor and the Linux computer.
  • Perl parses and transmits the running data.
  • Time series show consumption patterns beyond the instantaneous display.

Insights

  • Documented local interfaces keep devices useful after a cloud service ends.
  • Long-term data turns a display into a diagnostic tool.
  • Simple text formats lower the hurdle for your own integrations.

Facts

  • At the time, Google PowerMeter received the readings.

Recommendations

  • Store raw readings independently of the external analysis service.
  • Synchronise timestamps before comparing several sensors.

References

Read the original article

Search the Web Archive