Menu

Tree [r130] /
 History

HTTPS access


File Date Author Commit
 data 2010-10-19 lawsongreg [r129] Check errors after save.
 COPYING 2009-11-25 lawsongreg [r1]
 Import.rb 2010-04-20 lawsongreg [r15] cellaneous change generic debugged
 ModTest.rb 2010-05-28 lawsongreg [r32] Add test drivers, r interface and module classes.
 README 2010-07-13 lawsongreg [r52] Making parsing dependent on acquisitionUpdated?...
 TED.rb 2010-07-04 lawsongreg [r38] Columns with examples in dtabases. Generic Aqui...
 TED_test.rb 2010-05-28 lawsongreg [r32] Add test drivers, r interface and module classes.
 TED_with_WebBox.rb 2010-05-03 lawsongreg [r18] ActiveRecord is now used by webBox.rb, network....
 TEDacquisition.rb 2010-04-20 lawsongreg [r15] cellaneous change generic debugged
 TEDonly.rb 2010-06-16 lawsongreg [r36] Add Kdevelop config files. Add TEDonly for TED ...
 Views.sql 2010-04-20 lawsongreg [r15] cellaneous change generic debugged
 acquire.rb 2010-10-18 lawsongreg [r128] Added debugging output to acquire all.
 acquire_all.rb 2010-10-19 lawsongreg [r129] Check errors after save.
 arConnection.rb 2010-07-22 lawsongreg [r59] Broke up generic.rb into multiple smaller files...
 columns.rb 2010-09-01 lawsongreg [r100] ts_acquisition.rb passed 183 assertions. Lots o...
 db.rb 2010-05-03 lawsongreg [r18] ActiveRecord is now used by webBox.rb, network....
 ga.rb 2010-09-03 lawsongreg [r106] ts_acquisition.rb passed 168 assertions. acquis...
 generic.rb 2010-09-06 lawsongreg [r108] ts_acquisition.rb 152 assertions pass. Refactor...
 global.rb 2010-09-01 lawsongreg [r100] ts_acquisition.rb passed 183 assertions. Lots o...
 homenergyexplor.kdevelop 2010-06-16 lawsongreg [r36] Add Kdevelop config files. Add TEDonly for TED ...
 homenergyexplor.kdevses 2010-10-18 lawsongreg [r128] Added debugging output to acquire all.
 homenergyexplor.rb 2010-09-01 lawsongreg [r101] ts_regexp_Edit.rb passed 36 assertions, by reve...
 huel.rb 2010-05-03 lawsongreg [r18] ActiveRecord is now used by webBox.rb, network....
 inlineAssertions.rb 2010-08-16 lawsongreg [r83] Cleaning up tests. ts_acquisition added and pas...
 model.rb 2010-10-18 lawsongreg [r128] Added debugging output to acquire all.
 monitor.rb 2010-07-09 lawsongreg [r39] Add working version of ts_generic.rb to test Ge...
 network.rb 2010-09-01 lawsongreg [r100] ts_acquisition.rb passed 183 assertions. Lots o...
 parameters.rb 2010-05-03 lawsongreg [r18] ActiveRecord is now used by webBox.rb, network....
 parse.rb 2010-08-16 lawsongreg [r83] Cleaning up tests. ts_acquisition added and pas...
 r.rb 2010-05-28 lawsongreg [r32] Add test drivers, r interface and module classes.
 r_test.rb 2010-05-28 lawsongreg [r32] Add test drivers, r interface and module classes.
 regexp_Edit.rb 2010-09-01 lawsongreg [r100] ts_acquisition.rb passed 183 assertions. Lots o...
 regexp_Parse.rb 2010-08-09 lawsongreg [r80] regexp_Edit.rb now processes parse trees not re...
 remainingAcquisition.rb 2010-06-14 lawsongreg [r35] Got a few test suites started and running.
 scaffold.rb 2010-10-19 lawsongreg [r130] create scaffolding for existing tables.
 scaffold.sh 2010-10-19 lawsongreg [r130] create scaffolding for existing tables.
 sunnywebbox.rb 2010-05-04 lawsongreg [r21] Web box has been implemented with class methods.
 table.rb 2010-04-26 lawsongreg [r16] New class structure for tables. First test case...
 test.rb 2010-01-04 lawsongreg [r12] some cleanup.
 test_helpers.rb 2010-10-16 lawsongreg [r127] acquire_all.rb seems to be working again.
 ts_acquisition.rb 2010-09-22 lawsongreg [r122] Escape URIs.
 ts_columns.rb 2010-07-04 lawsongreg [r38] Columns with examples in dtabases. Generic Aqui...
 ts_generic.rb 2010-09-03 lawsongreg [r106] ts_acquisition.rb passed 168 assertions. acquis...
 ts_html.rb 2010-09-03 lawsongreg [r106] ts_acquisition.rb passed 168 assertions. acquis...
 ts_network.rb 2010-06-16 lawsongreg [r36] Add Kdevelop config files. Add TEDonly for TED ...
 ts_regexp_Edit.rb 2010-09-01 lawsongreg [r101] ts_regexp_Edit.rb passed 36 assertions, by reve...
 ts_regexp_Parse.rb 2010-08-08 lawsongreg [r77] Split regexp_Parse.rb by class into regexp_Pars...
 ts_test_helpers.rb 2010-09-01 lawsongreg [r102] ts_test_helpers.rb passes 3 assertions.
 ts_weather.rb 2010-07-22 lawsongreg [r59] Broke up generic.rb into multiple smaller files...
 ts_webBox.rb 2010-06-14 lawsongreg [r35] Got a few test suites started and running.
 ts_xml.rb 2010-07-26 lawsongreg [r64] now start ts_xml.rb
 weather.rb 2010-07-04 lawsongreg [r38] Columns with examples in dtabases. Generic Aqui...
 webBox.rb 2010-07-13 lawsongreg [r52] Making parsing dependent on acquisitionUpdated?...
 yaml.rb 2010-10-16 lawsongreg [r127] acquire_all.rb seems to be working again.

Read Me

Installation:
Requires previous installation of ruby interpreter and the Postgresql database. A future version is hoped to support ActiveRecord so that MySQL, and Oracle will also be supported.
Some individual programs require nmap and wget be installed.
Installation of ruby rails is optional with this version but will be required for future versons. The ruby rails code is in the subdirectory rails but the doc and vendor directories
have not been included as they are standard and not changed.
The database used is called energy_development following the ruby rails convention for a database still being written.
A ruby rails definition of the databases is in rails/db/schema.rb.
If you are on a private net of the form w.x.y.z, network.rb will search all hosts w.x.0-y.1-254 for supported web interfaces. If y is a large number or 0 to y-1 are networks 
that you shouldn't scan, don't run this version.

Commands for downloading:
apt-get install ruby-full
apt-get install rubygems
apt-get install rails
apt-get install R
apt-get install libpgsql-ruby
gem install activerecord-postgresql-adapter
export R_HOME=/usr/lib/R
export RUBYOPT=rubygems
export GEM_HOME=/var/lib/gems/1.8/gems/1.8

gem install rsruby  -- --with-R-dir=/usr/lib/R --with-R-include=/usr/share/R/include/
gem install hpricot 

File Descriptions:
network.rb - setup program using nmap to find all hosts on local network or lower numbered ones
remainingAcquisition.rb - script to collect non-real-time data from weather (only LAX and Hawthorne for now)
TEDacquisition.rb - acquire real-time data from The Energy Detective (TED)
TED.rb - library to interface with TED
TED_with_WebBox.rb  - net metering interface combining TED with SMA WebBox interface to solar inverter.
sunnywebbox.rb  - library interface with SMA WebBox interface to solar inverter.
weather.rb  - interface to US national weather from airports
table.rb  - generic interface for any table backed by an interface
columns.rb - generic typed data columns
webBox.sh - shell script using wget to get to passworded more detailed data from SMA webBox. May have to be run twice. Password times-out.
Views.sql - postgresql view definition of possible use.
Want the latest updates on software, tech news, and AI?
Get latest updates about software, tech news, and AI from SourceForge directly in your inbox once a month.