Ruby

Just built my first Jeenode Relay plug

201008252109.jpg

and rewrote my rewrite of the "rooms" sketch to add control of both relays from a computer.

I just used this to turn on and off a RGB LED strip I'm going to use for a light inside a set of cabinets. It works.

Next step is now to build 2 MOSFET plugs to let me control light levels and colours.

It's all starting to come together.

The charting of electricity usage are improving as my understanding of highcharts is improving - and they now look better

201008240914.jpg

(Click for larger)

It is of course difficult to use the dynamic zoom features in a static image as the one I have embedded here (-; .

My first try at generating nice javascript graphs (using highcharts) from the Wattson electricity consumption meter :

201008162311.jpg

nb! All text x-axis text is wrong, and the header text is wrong as well. (Did I mention that this was my first try)

I've given in - and from now on I'll use a MySQL database to continuously store all the readings from the various ROOMS sensors dotted around the house.

The database is very simple :

201008150922.jpg

(Click for larger)

For those who wonder about the first field (id) - it's there to make usage in Ruby on Rails easier for a novice like me.

And to get the data out - here is a simple code example in Ruby

----------
Read more

Technorati Tags:Technorati Tags:

As I really want to learn Ruby On Rails - and as I have chosen to build a "dashboard" for our home monitoring system (and not wanting to do it in Flash - as we have both iPhones and iPads) I found a ruby gem called "acs_as_dashboard" to start off with (version 0.4.0 for those that are interested).

But after wrestling with it on and off for 2 days and still not managing to get the application up and running I managed to find a downloadable demo called "acts_as_dashboard_example" - downloaded it, and it worked immediately!
Read more

Syndicate content