Wansview
Wansview webcam controller for direction and taking pictures
Only tested with Wansview NC541W
Install
npm install wansview
Usage
var Webcam = require('wansview')
var webcam = new Webcam('192.168.1.178', 'admin', '123456')
webcam.left()
setTimeout(function(){
webcam.stop()
webcam.snapshot('leftUp.png')
}, 5000)
Commands
Movement:
webcam.up()
webcam.down()
webcam.left()
webcam.right()
webcam.rightUp()
webcam.rightDown()
webcam.leftUp()
webcam.leftDown()
Panning:
webcam.panHorizontal()
webcam.panVertical()
Take picture:
webcam.snapshot() // returns a stream
Stream multiple images:
webcam.jpegStream() // returns a stream
Example
Control the webcam movement from an xbox controller:
var XboxController = fs = ;var xbox = var Webcam = var webcam = '192.168.1.178' 'admin' '123456' var arrows = "dup""ddown" "dleft" "dright" arrows xbox;
Copyright
Copyright (c) 2013 Andrew Nesbitt. See LICENSE for details.