-
-
Notifications
You must be signed in to change notification settings - Fork 31
Open
Labels
Description
I have a Foscam FI9831W which appears to function well, as I can login and changes settings, check the live feed of it at 720p. The library loads fine in my NodeJS application, but the snapshot() method takes a picture and saves it as a JPEG with 344 bytes that's damaged or truncated and can't be opened.
var cam1 = require('foscam');
cam1.setup({
host: '192.168.1.3',
port: 88,
user: 'myCamera',
pass: 'myPassword'
}, function(status) {
if (!status) {
console.log('Error connecting to Cam1');
}
});
cam1.snapshot('cam1.jpg', console.log);