This repository is private.
All pages are served over SSL and all pushing and pulling is done over SSH.
No one may fork, clone, or view it unless they are added as a member.
Every repository with this icon (
) is private.
Every repository with this icon (
This repository is public.
Anyone may fork, clone, or view it.
Every repository with this icon (
) is public.
Every repository with this icon (
commit 322b6548d5c8577733147eb2dff69a589b102db7
tree 1fc642f7487abad155601ccf0304ea90e9d0cd30
parent 6823f1ecd110d93c3a5af6a77e6c2ce446382505
tree 1fc642f7487abad155601ccf0304ea90e9d0cd30
parent 6823f1ecd110d93c3a5af6a77e6c2ce446382505
| name | age | message | |
|---|---|---|---|
| |
.gitignore | ||
| |
COPYING | Tue Aug 05 15:04:28 -0700 2008 | |
| |
README | ||
| |
Rakefile | ||
| |
bin/ | ||
| |
currentcost-ruby.gemspec | ||
| |
examples/ | ||
| |
lib/ | ||
| |
spec/ |
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 == 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.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








