Skip to content
This repository has been archived by the owner on Nov 3, 2020. It is now read-only.

Latest commit

 

History

History
39 lines (28 loc) · 1.3 KB

README.md

File metadata and controls

39 lines (28 loc) · 1.3 KB

now-client-camera

Build Status Dependency Status devDependency Status

Requirements

  • Node.js v8+

Instruction for users

  • Install: npm install -g now-client-camera
  • Run: now-client-camera

Instruction for developers

  • Install: npm install
  • Run: ./bin/now-client-camera.js

Options

  • now-client-camera --driver=raspistill http://192.168.1.128:3000
  • DEBUG=now-client-camera now-client-camera --driver=sample http://192.168.1.128:3000
  • now-client-camera --driver=sample --authorization='Basic <token>' http://192.168.1.128:3000

Drivers

Specify a driver with --driver= option. (default: sample)

raspistill

Raspberry Pi Camera Module

Environment variables:

  • RASPISTILL_WIDTH - Width of a picture (default: 320)
  • RASPISTILL_HEIGHT - Height of a picture (default: 240)

imagesnap

MacBook

Note: Install imagesnap for using this driver.

sample

Sample JPEG image