- Node.js v8+
- Install:
npm install -g now-client-camera
- Run:
now-client-camera
- Install:
npm install
- Run:
./bin/now-client-camera.js
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
Specify a driver with --driver=
option. (default: sample
)
Raspberry Pi Camera Module
Environment variables:
RASPISTILL_WIDTH
- Width of a picture (default: 320)RASPISTILL_HEIGHT
- Height of a picture (default: 240)
MacBook
Note: Install imagesnap for using this driver.
Sample JPEG image