Blog2013 ≫ Slight rework of my lightwaverf ruby gem

Been having problems with the sd card on my raspberry pi so I've ordered a new one. It's constantly reporting disk errors forcing fsck so I hope i have better luck with the next one.

As a result I've copied my lightwaverf stuff on to my laptop and am running the timers and so on from there temporarily. When I moved the config file all of the rooms were reordered, so when I thought I was turning on the dining room lights the lounge lights came on... Everyone has been waiting for this day I think, expecting our house to become like the fire station in The Love Bug with all the doors opening and the lights flashing constantly out of control... it's not quite that bad, but I've had to change how I store the config file. I am using a hash (associative array) of rooms stored in YAML, not realising that the order is not guaranteed. So I've had to change to a slightly more complicated format. Won't make a difference to any new users, but I need to help people migrate. OR, I need to just say "well it's free, and it's changed, you need to sort this out, sorry".

I fixed it last night, so my settings are all OK, but I haven't pushed the ruby gem yet.

Source code still here1 and you can get the next version of the gem with "gem install lightwaverf" (when I publish).

raspberry pi: Credit card sized super cheap computer, awesome.

⬅️ :: ➡️

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