0.1.0 • Published 7 years ago

raspberry-pi-photo-camera v0.1.0

Weekly downloads
3
License
GPL-3.0
Repository
github
Last release
7 years ago

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
0.1.0

7 years ago

0.0.3

7 years ago

0.0.2

7 years ago

0.0.1

7 years ago