##Forked
A personal assistant that bases on camera and QR.
Components:
Recognize QR in NSimage: ZXing
Volume button handler: JPSVolumeButtonHandler
Network: AFNetworking
##Data flow structure
get '/agent/:agent_id' do
content_type :json
{
#do you want to?..
:step => 0,
:play => 'http://tapget.com/audios/a1.mp3',
:process => 'http://lostpub.com/process/1',
:nextinput => 'tap',
:next => {
#doing
:step => 1,
:play => 'http://tapget.com/audios/a2.mp3',
:process => "http://lostpub.com/process/2",
:nextinput => 'auto',
:next => {
#get the latest result
:step => 2,
:play => 'http://tapget.com/audios/a3.mp3', #dynamic generated?
:process => '',
:nextinput => '',
:next => ''
}
}
}.to_json
end