No commit activity in last 3 years
No release in over 3 years
Ruby interface to the CurrentCost energy meter
2005
2006
2007
2008
2009
2010
2011
2012
2013
2014
2015
2016
2017
2018
2019
2020
2021
2022
2023
2024
2025
 Dependencies

Runtime

>= 0.2.4
 Project 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