public
Description: Ruby code for getting data from the CurrentCost energy monitor
Homepage:
Clone URL: git://github.com/Floppy/currentcost-ruby.git
name age message
file .gitignore Wed Aug 20 12:53:24 -0700 2008 add gem build task to Rakefile [Floppy]
file COPYING Tue Aug 05 15:04:28 -0700 2008 added support files [Floppy]
file README Sun Nov 15 07:47:00 -0800 2009 update doc link [James Smith]
file Rakefile Wed Aug 20 12:53:24 -0700 2008 add gem build task to Rakefile [Floppy]
directory bin/ Tue Aug 26 16:47:23 -0700 2008 added EEML server to tray app, and updated docu... [Floppy]
file currentcost-ruby.gemspec Sun Nov 15 04:08:40 -0800 2009 Update gem details for move to gemcutter [james]
directory examples/ Thu Oct 29 15:28:04 -0700 2009 update simple example to use cc128 mode [Floppy]
directory lib/ Mon May 11 13:37:32 -0700 2009 Explicitly set serial params [Floppy]
directory spec/ Thu Feb 19 13:55:51 -0800 2009 Add sensor number support, and lay out classic ... [Floppy]
README
== CurrentCost-Ruby

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

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

Author: James Smith (james@floppy.org.uk / http://www.floppy.org.uk)

Homepage: http://github.com/Floppy/currentcost-ruby

Documentation: http://rdoc.info/projects/Floppy/currentcost-ruby

== INSTALLATION

1) Enable gems from gemcutter, if you haven't already done so:
    > sudo gem install gemcutter
    > sudo gem tumble

2) Install gem
    > sudo gem install currentcost

== REQUIREMENTS

rb232 >= 0.2.3

== USAGE

You can read data from the meter by creating an instance of the CurrentCost::Meter
class, and registering an observer which will receive readings. See examples/simple.rb
or the CurrentCost::Meter documentation for a simple example of how to do this.

== TRAY MONITOR

This gem includes the 'currentcost_tray_monitor.rb' application. This is a program
which will sit in your system tray and display a coloured icon based on your power
usage. To use the program, run:

  currentcost_tray_monitor.rb -p your_serial_port_name

The program requires the Gtk2 libraries for Ruby (available from
http://ruby-gnome2.sourceforge.jp/). If the EEML gem (http://github.com/Floppy/eeml-ruby)
is installed, it can also serve your power data over an HTTP connection to a system like
Pachube (http://www.pachube.com).

For more details, see http://github.com/Floppy/currentcost-ruby/wikis/currentcosttraymonitor