ecmread.py is a PowerMeter data processor written in perl for Linux. It supports NET Metering and graphing with cacti. For more information, please see this page. The source code is available.