Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Provides octopus card (RFID) and HTTP access to unlock flat door, turn on lights, etc
Ruby Shell
tree: 392e1b15ff

Fetching latest commit…

Cannot retrieve the latest commit at this time

Failed to load latest commit information.
config
public/stylesheets
script
views
.gitignore
Capfile
Gemfile
README.textile
dsp420.rb
octopus.rb
octopus_daemon.rb
octopus_sinatra.rb
weather_daemon.rb
xbmc.rb

README.textile

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 weather.com for the day’s weather. If its going to rain, it switches on some lights in a bucket outside that holds our umbrellas.
Something went wrong with that request. Please try again.