A Node-RED node to take a single or a series of photos using the Raspberry Pi Camera.
Run the following command in your Node-RED install or home directory (typically ~/.node-red).
npm install node-red-raspicam
The node can be run in two modes, Single or Timelapse.
In single mode the node will capture a single image and save the file to disk. A message will be sent to both outputs.
In timelapse mode a series of photos will be taken and saved to disk. A file pattern should be specified in the filename to allow for each image to have a different name. E.g. "img-%04d.jpg" will produce files named img-0000.jpg, img-0001.jpg, img-0002.jpg etc.)
The "delay" property is used to set the pause (in secs) between each capture and the "duration" property sets the time for entire process (in secs).
A message will be sent to the first output everytime a new image is captured and a message sent to the second when all the images have been captured.