raspberry-pi-photo-camera
v0.1.0
Published
A wrapper for the Raspberry Pi camera commands.
Downloads
8
Readme
Raspberry Pi Photo Camera
A Node.js module for taking images with the Raspberry Pi Official camera
Installation
npm install --save raspberry-pi-photo-camera
Usage
JavaScript
const camera = require('raspberry-pi-photo-camera');
camera.takePicture('helloPictureWorld')
.then(() => {
// Image file 'helloPictureWorld.jpg' saved
})
.catch(() => {
// Error while taking picture
});
TypeScript
import * as camera from 'raspberry-pi-photo-camera';
camera.takePicture('helloPictureWorld')
.then(() => {
// Image file 'helloPictureWorld.jpg' saved
})
.catch(() => {
// Error while taking picture
});
Test
npm run test