Difference between revisions of "Spaceview"

From Hackerspace ACKspace
Jump to: navigation, search
(test cam stuff)
Line 1: Line 1:
{{Project
+
<div style="border: none; padding: 0ex; text-align:right; background: ;">
|State=Completed
+
{{#widget:Iframe
|Members=Vicarious
+
|url=http://glitchentertainment.nl/ACKtion-snapshot.jpg
 +
|width=250
 +
|height=30
 +
|border=0
 
}}
 
}}
<div style="border: none; padding: 1ex; text-align:center; background: ;">
+
</div>
!!Tijdelijk niet beschikbaar!!
 
</div>
 
----
 
 
 
<br>
 
 
 
De webcams kunnen makkelijk worden uitgelezen via linux met een console tool genaamd fswebcam
 
 
 
'''fswebcam-video0.conf'''<br>
 
<pre>###
 
# 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/&lt;date&gt;/&lt;date&gt;-&lt;time&gt;.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&gt; /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"
 
</pre>
 
'''fswebcam-video0-poll:'''
 
<pre>#!/usr/bin/env bash
 
 
 
while [ 1 ]; do
 
  fswebcam -c fswebcam-video0.conf
 
  sleep 10
 
done
 
</pre>
 
<br>
 

Revision as of 15:32, 12 October 2014