Node-RED node for taking pictures with the built-in mac or macbook camera
- Drag the
camera-mac
node from the palette onto the flow canvas. - Double-click the node to open its configuration panel.
- Configure the
Output Path
andFile Name
based on your preferences. - Click "Deploy" to apply the changes.
Once configured, the camera-mac
node will capture an image from the built-in camera on a Mac using the ffmpeg
command.
The captured image will be available as a buffer in the payload of the output message. Additionally, the file path is provided in the filePath
property of the message for reference.
You can make this json string into a flow by using the node-red flow import function. You will also need the node-red-contrib-image-output flow for the preview.
This project is licensed under the MIT License - see the LICENSE file for details.