// var sys = require('sys');
var exec = require('child_process').exec;

module.exports = {
    capture: function () {
        exec("raspistill -o 1.jpg");
    }
}
// var sys = require('sys');
var exec = require('child_process').exec;

module.exports = {
    capture: function () {
        var fileName = "img_" + new Date().valueOf() + ".jpg";
        exec("raspistill -o imgCapture/" + fileName);
    }
}
Save photo to correct location with proper name.
Save photo to correct location with proper name.
