CurrentCost-Ruby

A gem to provide a Ruby interface to the CurrentCost energy meter (www.currentcost.com)

Licensed under the MIT license (See COPYING file for details)

Author: James Smith ([email protected] / www.floppy.org.uk)

Homepage: github.com/Floppy/currentcost-ruby

INSTALLATION

1) Enable gems from github, if you haven’t already done so (rubygems >= 1.2):

> sudo gem sources -a http://gems.github.com

2) Install gem

> sudo gem install Floppy-currentcost

REQUIREMENTS

Floppy-rb232 >= 0.1.0

USAGE

You can read data from the meter by creating an instance of the Meter class, and regularly polling it for readings. See examples/simple.rb for an easy example of how to do this.