Archive for February, 2008

links for 2008-02-27

Wednesday, February 27th, 2008

Popularity: 4% [?]

links for 2008-02-26

Tuesday, February 26th, 2008

Popularity: 4% [?]

links for 2008-02-25

Monday, February 25th, 2008

Popularity: 3% [?]

links for 2008-02-23

Saturday, February 23rd, 2008

Popularity: 4% [?]

links for 2008-02-22

Friday, February 22nd, 2008

Popularity: 4% [?]

links for 2008-02-21

Thursday, February 21st, 2008

Popularity: 4% [?]

links for 2008-02-18

Monday, February 18th, 2008

Popularity: 4% [?]

Graphing with Gruff

Sunday, February 17th, 2008

The house monitoring project has made a little bit of progress, as I’ve now got data being collected into a rails app using backgroundrb, and can get that data back out into very pretty graphs with gruff.  (I also looked a little bit a sparklines, but that’s specifically for graphs without labels.)
 

We’re running above target temp as it’s the weekend, so the wood stove is on.  As is the furnace fan to spread the heat through the house.  I’m overloading the values for heat on an fan on to be either the bottom of the graph or a specific small value.  I need to sort out a better way to put that into the graph, which may require some hacking on gruff itself.

Popularity: 25% [?]

links for 2008-02-17

Sunday, February 17th, 2008

Popularity: 5% [?]

Early working thermostat code

Sunday, February 17th, 2008

I definitely don’t have this anywhere near I like it, but I did manage to just dump out a bunch of info from my thermostat and turn off the fan with this script:

#!/usr/bin/ruby

require ‘thermostat’
require ‘pdp_constants’
include Proliphix

t = Thermostat.new("192.168.1.30","admin","XXXXXXXX")
t.set_senors(ThermHvacMode, ThermHvacState, ThermFanState, ThermFanMode, ThermAverageTemp, ThermHeat1Usage)
t.fetch_data

# dump out what we have
puts t

# turn off the fan
t.set_data(ThermFanMode, 1)
 

I need some nicer symbolic constants for state setting, and pull together a rails site just to keep track of thermostat data over the course of the day.  All this code is going on my newly registered rubyforge project.

Popularity: 22% [?]