Difference between revisions of "Spaceview"

From Hackerspace ACKspace
Jump to: navigation, search
m (lol, forgot to change the numbers xD)
 
(11 intermediate revisions by the same user not shown)
Line 1: Line 1:
{{Project
+
<div style="border: none; padding: 0ex; text-align:right; background: ;">
|State=Completed
+
{{#Widget:SpaceAPI
|Members=Vicarious
+
|url=//ackspace.nl/spaceAPI
 +
|interval=30
 +
|width=260px
 +
|height=20px
 +
|float=left
 
}}
 
}}
<div style="border: none; padding: 1ex; text-align:center; background: ;">
 
!!Tijdelijk niet beschikbaar!!
 
</div>
 
----
 
  
<br>
+
{{#Widget:ImageLoader
 +
|url=http://schijtdoos.allesiskapot.nl:9000/SnapshotJPEG?mode=Refresh
 +
|interval=1
 +
}}
  
De webcams kunnen makkelijk worden uitgelezen via linux met een console tool genaamd fswebcam
+
{{#Widget:UrlButton
 
+
|text=hACKspace
'''fswebcam-video0.conf'''<br>
+
|url=http://schijtdoos.allesiskapot.nl:9000/nphControlCamera?Direction=Preset&PresetOperation=Move&Data=1
<pre>###
+
}}{{#Widget:UrlButton
# fswebcam configuration
+
|text=slACKspace
# run with fswebcam -c fswebcam-video0.conf
+
|url=http://schijtdoos.allesiskapot.nl:9000/nphControlCamera?Direction=Preset&PresetOperation=Move&Data=2
# only for one cam at device node /dev/video0
+
}}{{#Widget:UrlButton
# this will copy the image to /home/jerry/pictures/&lt;date&gt;/&lt;date&gt;-&lt;time&gt;.jpeg
+
|text=Soldering
# and to /home/jerry/pictures/video0.jpeg
+
|url=http://schijtdoos.allesiskapot.nl:9000/nphControlCamera?Direction=Preset&PresetOperation=Move&Data=3
###
+
}}
quiet
+
</div>
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
+
The cam is connected to fuse group [[Fuse group::A]].
  fswebcam -c fswebcam-video0.conf
+
[[Category:Interior]]
  sleep 10
 
done
 
</pre>
 
<br>
 

Latest revision as of 11:35, 7 October 2018

The cam is connected to fuse group A.