Blog2013 ≫ Google calendar central heating timer

I did some work on my lightwaverf home automation code last night, and got the timers working at last. Not sure if anyone else has used a google calendar for timing like this before, but I have now and it works great. I add events to a google calendar and (right now) so long as the name of the event matches up with the devices in my house (as defined in the config file, you can see an example in the source below) the the device is turned on and off at that time. Here is a sample calendar with some sample events for heating and lighting...

My source code is here1 but it will be added to the ruby gem2 which also give easy command line access too. Have to save that for the weekend, but play along with what I have so far with just gem install [lightwaverf](/wiki/#lightwaverf).

Not actually done the central heating yet, only the lights but it does not sound like it will be too hard. It's the same principle, I'd just have to wire in the relay3.

This is still a work in progress, more changes to come!

UPDATE: And published version 0.14 of the ruby gem, with support for google calendar control of your lightwaverf lights / sockets / central heating...

⬅️ :: ➡️

Paul Clarke's blog - I live in Hythe near Folkestone. Wed + dad to two, I am a full-stack web engineer, + I do js / Node, some ruby, other languages ect ect. I like pubbing, parkrun, eating, home automation + other diy stuff, history, tree stuff, Television, squirrels, pirates, lego, + TIME TRAVEL.