Spaceview

From Hackerspace ACKspace
Revision as of 21:44, 24 August 2013 by PsychiC (talk | contribs)
Jump to: navigation, search
Project: Spaceview
Featured:
State Completed
Members Vicarious
GitHub No GitHub project defined. Add your project here.
Description
Picture
No project picture! Fill in form Picture or Upload a jpeg here

!!Tijdelijk niet beschikbaar!!



De webcams kunnen makkelijk worden uitgelezen via linux met een console tool genaamd fswebcam

fswebcam-video0.conf

###
# fswebcam configuration
# run with fswebcam -c fswebcam-video0.conf
# only for one cam at device node /dev/video0
# this will copy the image to /home/jerry/pictures/<date>/<date>-<time>.jpeg
# and to /home/jerry/pictures/video0.jpeg
###
quiet
device /dev/video0

# Save another copy for the archive. The archive contains a folder for each
# day of images. First we create the folder if it doesn't already exist.
exec "mkdir /home/jerry/pictures/%Y%m%d 2> /dev/null"

# Then save the image into it.
save "/home/jerry/pictures/%Y%m%d/%Y%m%d-%H%M%S.jpeg"
save "/home/jerry/pictures/video0.jpeg"

fswebcam-video0-poll:

#!/usr/bin/env bash

while [ 1 ]; do
  fswebcam -c fswebcam-video0.conf
  sleep 10
done