Auto Snap is a fun set of node scripts that lets you easily and simply take "snapshots" at the (click) touch of a button. Under the hood, it relies on redis to facilitiate realtime notifications (using PUBSUB), socket.io for simple browser based communication, and S3 for simple file storage.
Auto Snap will work on either OS X or Linux using one of two image handlers:
The default is imagesnap
. Auto snap assumes that the selected image capture handler will be available in your $PATH
.
To get up and running:
make setup
Autosnap uses both a client server (which serves the user interface and accepts snap requests) and a snap server (which listens for snap requests and processes them). There are required environmental variables to start both:
For snap_server.js
:
AWS_ACCESS_KEY_ID
(assumes S3 permissions for a bucket namedautoSnap
)AWS_SECRET_ACCESS_KEY
REDIS_PORT
REDIS_HOST
REDIS_PASS
(if applicable)SNAP_HANDLER
(defaults toimagesnap
, can befswebcam
also)
For client_server.js
:
APP_PORT
(port to listen to)APP_HOST
(address to listen to)REDIS_PORT
REDIS_HOST
REDIS_PASS
(if applicable)