Find file
Fetching contributors…
Cannot retrieve contributors at this time
24 lines (12 sloc) 766 Bytes

Flat Control Panel

Sinatra app and daemons to handle flat automation.

Unlock front door via:

  • RFID card (Octopus)
  • Web interface
  • iPhone app that uses web API

Can also turn on lounge fan, lounge lights, hall lights via the web & iPhone interfaces.

Triggers actions when the front door is unlocked.

  • When it’s daytime, check whether XBMC is currently playing music or video. If not, start playing a Last.FM station.
  • When it’s nighttime, turn on the hall light automatically for 15 minutes so I don’t stumble around in the dark.

Tells me whether or not to take an umbrella to work.

  • Periodically checks for the day’s weather. If its going to rain, it switches on some lights in a bucket outside that holds our umbrellas.