node-red-contrib-onvif
Version:
A Node-RED node that interacts with ip cameras using the ONVIF protocol
40 lines (29 loc) • 838 B
Markdown
A <a href="http://nodered.org" target="_blank">Node-RED</a> node that interacts with ip cameras using the ONVIF protocol.
Run the following command in the root directory of your Node-RED install
npm install node-red-contrib-onvif
```json
msg.payload = {
url: "", // IP camera URL
username: "", // IP camera username
password: "", // IP camera password
resize: {
width: 800 // resize by width or height
}
}
```
```json
msg.payload = {
image: {
"base64": "", // Base64 encoded image
"binary": "", // Binary image
}
}
```
ONVIF Snapshot returns msg.payload in the form of a base64 encoded image to use with a Node-RED Dashboard template
<img src="{{ msg.payload.image.base64 }}">