On Sunday, January 17, 2016 at 9:05:50 AM UTC-8, henryj...@gmail.com wrote:
>
> How do I make my web2py app able to use the device hardwares like 
>
>  camera?  also how to make it able to use some other apps on the device?
>
 
For the camera, you probably want to run an external command by launching a 
process.  If the external command is likely to take a long time, you will 
want to use the scheduler for this.  Running other applications is done the 
same way.  Interactive applications will not work well this way, but 
anything that can be invoked from bash with no input besides command line 
args should work.  I've done the external commands, but I haven't done 
hardware control.

The answer changes a little if you want to use the camera as a source of 
live streaming video.  You will probably be using cStreamIO calls, perhaps 
to read a file the camera is dumping data to.  I haven't done this at all, 
but there are some posts in the archives that I've noticed and are about 
streaming audio.

/dps




-- 
Resources:
- http://web2py.com
- http://web2py.com/book (Documentation)
- http://github.com/web2py/web2py (Source code)
- https://code.google.com/p/web2py/issues/list (Report Issues)
--- 
You received this message because you are subscribed to the Google Groups 
"web2py-users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to web2py+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to