The Node-RED Dashboard 2.0 Webcam Widget is a UI widget node designed to facilitate image capture directly from the Dashboard 2.0 interface. This widget enables users to capture images from their device's webcam seamlessly within Node-RED.
Ensure that you have previously installed Dashboard 2.0 before proceeding with the installation of the ui-webcam widget.
Using the Node-RED Editor:
Using Command Line:
npm i @sumit_shinde_84/node-red-dashboard-2-ui-webcam
The ui-webcam node offers the following functionalities:
msg.payload
is passed to the ui-webcam node with the capture
string , the node automatically captures an image without requiring user interaction.The webcam widget is compatible with all modern browsers, except Internet Explorer.
If you are accessing the Dashboard 2.0 remotely (not via localhost
), then you must
use HTTPS otherwise the browser will block access to the webcam.
Before the webcam can be activated, the browser will ask the user's permission for the page to access the device. The node cannot capture images until the user has given their permission.