Difference between revisions of "Equipment/Webcams"

From London Hackspace Wiki
Jump to navigation Jump to search
Line 10: Line 10:
 
* Password: hackspace
 
* Password: hackspace
  
===Inferred led control===
+
===Infrared led control===
  
 
To toggle the ir leds:
 
To toggle the ir leds:
Line 25: Line 25:
  
 
===How to get an image===
 
===How to get an image===
[http://192.168.1.6/cgi-bin/getimage Single JPEG]
+
[http://netcam/cgi-bin/getimage Single JPEG]
  
[http://192.168.1.6/cgi-bin/getimage?motion=1 M-JPEG (multipart/x-mixed-replace)]
+
[http://netcam/cgi-bin/getimage?motion=1 M-JPEG] returns a multipart/x-mixed-replace stream.  However, the boundary provided is incorrect, which motion does not appreciate, so use:
  
[http://192.168.1.6/cgi-bin/getimage?java=1 Stream of width and size before JPEG]
+
  mkfifo campipe; nc -l -p 8011<campipe | nc netcam 80|sed -r 's/(boundary=)--sonixboundary/\1sonixboundry/'>campipe
 +
 
 +
And stream from [http://localhost:8011/cgi-bin/getimage?motion=1 there].
 +
 
 +
[http://netcam/cgi-bin/getimage?java=1 Java] a stream of width and size before JPEG.
  
 
== From outside the space==
 
== From outside the space==
  
Currently http://hack.rs:8002 or http://knuth.london.hackspace.org.uk:8002
+
Currently http://hack.rs:8001 or http://knuth.london.hackspace.org.uk:8001

Revision as of 01:25, 19 April 2010

The IP Secure300r webcam

The camera is one of these.

Warning

The java app on the main admin page of the camera tends to lockup firefox

Access

  • IP: 192.168.1.6
  • Username: admin
  • Password: hackspace

Infrared led control

To toggle the ir leds:

wget 192.168.1.6/goform/WebCam_MotoForm?MotoBut=Light --http-user=admin --http-password=hackspace

you will get a page returned as either:

webcam_logoIROff.htm (Meaning the leds are on)

or

webcam_logoIROn.htm (Meaning the leds are off)

How to get an image

Single JPEG

M-JPEG returns a multipart/x-mixed-replace stream. However, the boundary provided is incorrect, which motion does not appreciate, so use:

  mkfifo campipe; nc -l -p 8011<campipe | nc netcam 80|sed -r 's/(boundary=)--sonixboundary/\1sonixboundry/'>campipe

And stream from there.

Java a stream of width and size before JPEG.

From outside the space

Currently http://hack.rs:8001 or http://knuth.london.hackspace.org.uk:8001