pauly/lightwaverf — pull request #3 by julianmclean (2013-03-23 22:13:22+00:00)
Title: Mood Support

Hi Paul,

I've added support for moods to your lightwaverf gem (moods as per the master mood switches, not sequences), and a couple of other minor tweaks. Here's the list of things that should work:

Moods:
- Set a mood with "lightwaverf mood
- (Re)learn a mood with "lightwaverf learnmood

Timers:
- Use moods in google calender by creating an event as "mood "
- Use sequences in google calender by creating an event as "sequence "

Sequences:
- Use moods in sequences by having the 3 elements as "mood"
- Have pauses in sequences by having 2 elements as "pause"

States:
- Use predefined names for common device states ("low" = 25%, "mid" = 50%, high = "75%", full = "100%")

I've also updated the readme with info on most of this and a little bit on sequences that wasn't documented before ;o)

I'm new to Ruby too, so the coding is probably not very pretty, but I tried to follow your lead, so it should be understandable, and there's a bit of debug in there. I'm going to try and contribute to Ian Perrin's SiriProxy wrapper too, so hopefully this could all get quite useful.

Any questions about the code, just let me know. Happy to chat on phone too if easier - just let me know.

Cheers,

Julian