-
Notifications
You must be signed in to change notification settings - Fork 4
usb_cam_driver and usb_cam_resource
Ulf edited this page Aug 23, 2013
·
6 revisions
This driver is able to driver a usb cam. The pictures which are taken are stored on a NAS. That is done, because i want to share them between nodes.
Before you can use the driver you have to install streamer
sudo apt-get install streamerIn your things.config file you have set activ to true and you have to configure the path to the photo store. In my enviroment i set the path to /home/pi/photos
[{path, "/home/pi/photos"}, {last_shot, 0}]last_shot is used internal and stores the time when the last photo is taken.
In my env i have a raspberry which takes the photos and an raspberry which host the web applications. So, i had to do the following step on both machines.
Follow the instructions to setup the NAS : NAS
In your /etc/fstap file you have to insert the following line.
IP_OF_YOUR_NAS:/volume1/usbcam /home/pi/photos nfs nouser,rsize=8192,wsize=8192,atime,auto,rw,dev,exec,suid 0 0and then you can mount it with :
sudo mount -a -o nolock