PiCamera
A very lightweight promise based Node.js wrapper for the native Raspberry Pi Camera CLI tools.
Note: This was written with the intent of NOT being a hand holding library, but rather just give you access to execute commands on the camera in a flexible way.
Installation
npm install pi-camera
npm install pi-camera --save
Basic usage
const PiCamera = require('pi-camera');
const myCamera = new PiCamera({
mode: 'photo',
output: `${ __dirname }/test.jpg`,
width: 640,
height: 480,
nopreview: true,
});
myCmaera.snap();
.then((msg) => {
})
.catch((error) => {
});