Skip to content

Instantly share code, notes, and snippets.

@schappim
Created November 22, 2014 03:44
Show Gist options
  • Select an option

  • Save schappim/cac4e2570ac4efb08034 to your computer and use it in GitHub Desktop.

Select an option

Save schappim/cac4e2570ac4efb08034 to your computer and use it in GitHub Desktop.
#!/usr/bin/env ruby
require 'rubygems'
require 'sinatra'
get '/' do
"hello world"
end
get '/camera' do
`raspistill -w 640 -h 480 -t 50 -o ./public/image.jpg`
"<img src='/image.jpg' />"
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment