Node-red-contrib-onvif-nodes macOS

Hello!

I installed Node Red on a Mac.

How can I install the module?

Unfortunately that doesn't work for me somehow.

Hi @madmax,
My onvif nodes are not available in the Node-RED palette so you should install them directly from Github (as described on my readme page).
Don't know anything about Mac, so hopefully others can assist you with that.
Bart

Stop node-red
Open a terminal window and enter
cd .node-red
Now run the command
npm install bartbutenaers/node-red-contrib-onvif-nodes
And then start node -red again

1 Like

Hello!

Thank you very much for the answer worked

Hello!

I am running now. Unfortunately I can't find my webcam.

The following error occurs.

TypeError: Cannot read property 'device' of undefined

But the Reolink RLC-410W should be able to do it.

Do you have any idea what that could be?

Do you mean your IP cam? Because I am not aware of Onvif webcams

Do you mean that your ReoLink is Onvif compliant?

To be honest, you don't give me much of information to help you...

  1. When does that error occur? When you try to do a discovery, or something else?
  2. Did you copy one of my example flows and that fails? Or did you change one of my flows. If so please share it..
  3. Any other information to explain your experiment ...

Hello!

The error comes at the event.

But what's also strange is that she doesn't find on Discovery either.

The IP address and port are correct. If the IP address changes another error occurs.

According to Reolink, the webcam can onvif

Which cam do you use?

I 'assume' you mean:

  1. You have entered the IP address and (correct) username/password in a config node
  2. You have selected that config node in an Event node
  3. You don't get an event stream?

It really helps if people explain what they do, because this way you expect me to write down everything...

You can try to increase the time to wait for an answer, e.g. when you have a slow network or camera:

image

I have no idea what you mean with that?

Mostly Panasonic camera's.

I'm off now. Will respond later to your questions, when I'm back.

You haven't answered this question either.

Hello!

I use the flow from the homepages

[{"id":"748f5110.c57f7","type":"inject","z":"b3db206e.b7139","name":"Start listening","topic":"","payload":"","payloadType":"date","repeat":"","crontab":"","once":false,"onceDelay":0.1,"x":150,"y":1020,"wires":[["12ad9448.0899fc"]]},{"id":"12ad9448.0899fc","type":"change","z":"b3db206e.b7139","name":"","rules":[{"t":"set","p":"action","pt":"msg","to":"start","tot":"str"}],"action":"","property":"","from":"","to":"","reg":false,"x":460,"y":1020,"wires":[["a8f7752e.2998f8"]]},{"id":"801f0dd.3e0b3f","type":"inject","z":"b3db206e.b7139","name":"Stop listening","topic":"","payload":"","payloadType":"date","repeat":"","crontab":"","once":false,"onceDelay":0.1,"x":150,"y":1060,"wires":[["b7dc815b.29f4a"]]},{"id":"b7dc815b.29f4a","type":"change","z":"b3db206e.b7139","name":"","rules":[{"t":"set","p":"action","pt":"msg","to":"stop","tot":"str"}],"action":"","property":"","from":"","to":"","reg":false,"x":460,"y":1060,"wires":[["a8f7752e.2998f8"]]},{"id":"2774034b.91102c","type":"inject","z":"b3db206e.b7139","name":"Get event properties","topic":"","payload":"","payloadType":"date","repeat":"","crontab":"","once":false,"onceDelay":0.1,"x":170,"y":1140,"wires":[["e59923ee.4db8d"]]},{"id":"e59923ee.4db8d","type":"change","z":"b3db206e.b7139","name":"","rules":[{"t":"set","p":"action","pt":"msg","to":"getEventProperties","tot":"str"}],"action":"","property":"","from":"","to":"","reg":false,"x":460,"y":1140,"wires":[["a8f7752e.2998f8"]]},{"id":"120e35a2.b4da5a","type":"inject","z":"b3db206e.b7139","name":"Get event service capabilities","topic":"","payload":"","payloadType":"date","repeat":"","crontab":"","once":false,"onceDelay":0.1,"x":200,"y":1100,"wires":[["2c1017b7.e2e448"]]},{"id":"2c1017b7.e2e448","type":"change","z":"b3db206e.b7139","name":"","rules":[{"t":"set","p":"action","pt":"msg","to":"getEventServiceCapabilities","tot":"str"}],"action":"","property":"","from":"","to":"","reg":false,"x":460,"y":1100,"wires":[["a8f7752e.2998f8"]]},{"id":"a8f7752e.2998f8","type":"onvif-events","z":"b3db206e.b7139","name":"","deviceConfig":"c6b46a46.8067f8","action":"","x":670,"y":1020,"wires":[["61d49191.38fb9"]]},{"id":"61d49191.38fb9","type":"switch","z":"b3db206e.b7139","name":"Topic ProcessorUsage","property":"topic","propertyType":"msg","rules":[{"t":"eq","v":"Monitoring/ProcessorUsage","vt":"str"}],"checkall":"true","repair":false,"outputs":1,"x":880,"y":1020,"wires":[["9d4463a2.1d43d"]]},{"id":"9d4463a2.1d43d","type":"change","z":"b3db206e.b7139","name":"Get value","rules":[{"t":"set","p":"payload","pt":"msg","to":"data.value","tot":"msg"}],"action":"","property":"","from":"","to":"","reg":false,"x":1080,"y":1020,"wires":[["97abe077.30ed"]]},{"id":"97abe077.30ed","type":"ui_chart","z":"b3db206e.b7139","name":"Camera CPU %","group":"22787703.a0e968","order":2,"width":0,"height":0,"label":"Camera CPU %","chartType":"line","legend":"false","xformat":"HH:mm:ss","interpolate":"linear","nodata":"","dot":false,"ymin":"0","ymax":"110","removeOlder":1,"removeOlderPoints":"50","removeOlderUnit":"3600","cutout":0,"useOneColor":false,"colors":["#1f77b4","#aec7e8","#ff7f0e","#2ca02c","#98df8a","#d62728","#ff9896","#9467bd","#c5b0d5"],"useOldStyle":false,"outputs":1,"x":1260,"y":1020,"wires":[[]]},{"id":"c6b46a46.8067f8","type":"onvif-config","z":"","xaddress":"192.168.1.174","port":"80","name":"Hikvision"},{"id":"22787703.a0e968","type":"ui_group","z":"","name":"Web push notifications","tab":"80f0e178.bbf4a","disp":true,"width":"6","collapse":false},{"id":"80f0e178.bbf4a","type":"ui_tab","z":"","name":"Home","icon":"dashboard","order":1,"disabled":false,"hidden":false}]

[{"id":"a19788d1.afaf98","type":"onvif-discovery","z":"50df184.124f2e8","name":"","timeout":5,"separate":true,"x":500,"y":480,"wires":[["ed0cc23.44c014"]]},{"id":"be6e8353.f7716","type":"inject","z":"50df184.124f2e8","name":"Start searching","topic":"","payload":"","payloadType":"date","repeat":"","crontab":"","once":false,"onceDelay":0.1,"x":280,"y":480,"wires":[["a19788d1.afaf98"]]},{"id":"ed0cc23.44c014","type":"debug","z":"50df184.124f2e8","name":"Onvif devices","active":true,"tosidebar":true,"console":false,"tostatus":false,"complete":"payload","x":700,"y":480,"wires":[]}]

Don't forget to answer ALL my other questions, while I am working in my garden :wink:

1 Like

Hello!

What other information do you need from me?

According to Reolink, it only works with Onvif 2.1

Is 2.1 possible?

Look at my previous posts, and have a look at all my sentences that have a question mark (i.e. a ?) at the end :slight_smile:

That doesn't ring a bell to me. I'm not following the Onvif standard changes to be honest. Will have to look at that later too ...

You don't get an event stream?

No, unfortunately that will not work.

The IP address is correct.

The Discovery does not find a camera either.

I'm going to be a Reolink RLC-410W

According to the instructions and settings, Onvif works

Did a quick test and here also he didn't report my camera's after discovery (when the 'Separate output message for each device' option was activated). I have fixed that quickly on Github. Can you install my node again and let me know if that works better now?

Here you can find an overview of the capabilities per Onvif version:

image

Note that my nodes don't support all those features. All supported featrues are on my Github readme page.

Yes I have event streams running on my camera's.

  1. I have setup a config node with the ip address and the username/password !!!
  2. I have enabled the event streams on my camera (via the web interface of my camera). Otherwise it won't work!

Hello!

I just reinstalled everything but it can't find my camera. The same mistake still keeps coming.

"TypeError: Cannot read property 'device' of undefined"

I have the IP address of the camera and enter the user and password but it doesn't work.

Did you clear your browser cache?