Node-RED and ONVIF

node-red-contrib-onvif

This is an Update to an earlier tutorial for the ONVIF Snapshot Node. The node can be installed through the Node-RED web interface or by manually installing it from inside your Node-RED installation directory - see user guide:

npm install node-red-contrib-onvif

The node now needs to be triggered (e.g. by an Input Node):

node-red-contrib-onvif

And the msg.payload be fed into the dashboard HTML Template Node like:

<img width="800" alt="8015 ONVIF" src="{{msg.payload.image.base64}}" />

You can import the example flow above from this code.

All you need to do is to replace the IP address and camera login inside the ONVIF Snapshot node with your cameras information(Note: the port used here is the ONVIF Port of your camera !):

node-red-contrib-onvif

By adding a repeat interval to the Input Node you can create a quasi live video stream from your camera:

node-red-contrib-onvif

node-red-contrib-onvif-nodes

The ONVIF Nodes by bartbutenaers have not been published on the Node-RED Forum yet at the moment of writing.

But it can quickly be installed by running the install command inside your Node-RED installation directory:

npm install bartbutenaers/node-red-contrib-onvif-nodes

After the installation succeeded you will see the following ONVIF Nodes in the Node-RED web ui:

node-red-contrib-onvif-nodes

Example Flows

Here are a few code examples how to use those nodes with your INSTAR Full HD camera. Don't forget to double-click the ONVIF Node and edit the Device settings by adding your cameras IP address and admin login:

node-red-contrib-onvif-nodes

Image Settings

node-red-contrib-onvif-nodes

Download Example Code

Audio Settings

node-red-contrib-onvif-nodes

Download Example Code

Video Settings

node-red-contrib-onvif-nodes

Download Example Code

Streaming

node-red-contrib-onvif-nodes

Download Example Code

The RTSP URL can be used to setup a real-time-streaming-protocol with the camera. In this Node-RED discussion, you can find a flow to decode an RTSP stream in Node-RED to a continious stream of images (after you have installed FFmpeg).

Pan, Tilt & Zoom

node-red-contrib-onvif-nodes

Download Example Code

System Info

node-red-contrib-onvif-nodes

Download Example Code