# Onvif VS onvif-nodes issue

**URL:** <https://discourse.nodered.org/t/onvif-vs-onvif-nodes-issue/32374>\
**Category:** General\
**Created:** [3 September 2020 00:01 UTC](https://discourse.nodered.org/t/onvif-vs-onvif-nodes-issue/32374 "2020-09-03T00:01:34Z")\
**Posts on this page:** 20\
**Page:** 1

<div class="post-metadata">

**Author:** ![gene-code](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/gene-code/32/28011_2.png) [@gene-code](https://discourse.nodered.org/u/gene-code)\
**Post date:** [3 September 2020 00:01 UTC](https://discourse.nodered.org/t/onvif-vs-onvif-nodes-issue/32374/1 "2020-09-03T00:01:34Z")

</div>

Hi.

I have node red on Edge Device. The node red runs on docker.

I have camera connected to the same network (able to ping the cam fine).

Using node-red-contrib-onvif snapshot node, I was able to get a capture. My settings  
is as follows:

![onvif](https://us1.discourse-cdn.com/flex026/uploads/nodered/original/3X/7/5/754aa6795e861c93d341c0e3182b87991097c530.jpeg)

Using same settings on node-red-contrib-onvif-nodes (beta7), I am not getting any snapshot from it  
using the media node.

![onvif-nodes](https://us1.discourse-cdn.com/flex026/uploads/nodered/original/3X/0/f/0f4e6d6e73485bd3b896f3ee340773ce857f2ccd.jpeg)  
 ![onvif-nodes2](https://us1.discourse-cdn.com/flex026/uploads/nodered/original/3X/c/0/c0ab91a173a1b32de6db06c20ad176ba3dda8f81.jpeg)

Gives the error on debug:  
**"Error: getaddrinfo ENOTFOUND [http://192.168.33.51:80/onvif/device\_service](http://192.168.33.51:80/onvif/device_service) [http://192.168.33.51:80/onvif/device\_service:80](http://192.168.33.51:80/onvif/device_service:80)"**

Any idea why? I know this is beta, but just wondering if I missed something simple, especially seeing the thread by Bart (maintainer of onvif-nodes), a few people got it working.

---

<div class="post-metadata">

**Author:** ![dceejay](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/dceejay/32/38_2.png) [@dceejay](https://discourse.nodered.org/u/dceejay)\
**Post date:** [3 September 2020 07:02 UTC](https://discourse.nodered.org/t/onvif-vs-onvif-nodes-issue/32374/2 "2020-09-03T07:02:34Z")

</div>

Something looks a bit of with the URL it constructs. Will need @BartButenaers to comment.

---

<div class="post-metadata">

**Author:** ![BartButenaers](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/bartbutenaers/32/10476_2.png) [@BartButenaers](https://discourse.nodered.org/u/BartButenaers)\
**Post date:** [3 September 2020 07:53 UTC](https://discourse.nodered.org/t/onvif-vs-onvif-nodes-issue/32374/3 "2020-09-03T07:53:55Z")

</div>

Seems there are two problems:

- In the field "IP address" you enter an entire url. What happens when you only enter the IP address `192.168.33.51` ??
- I see that you have created also a Github [issue](https://github.com/bartbutenaers/node-red-contrib-onvif-nodes/issues/10) for the same problem... You say that the _ **discovery** _ doesn't work either. I'm not sure whether a WS-Discovery ([seems](https://github.com/agsh/onvif#discovery) to use a probe` SOAP method) will work from a Docker container? Does anybody has experience with that???

---

<div class="post-metadata">

**Author:** ![BartButenaers](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/bartbutenaers/32/10476_2.png) [@BartButenaers](https://discourse.nodered.org/u/BartButenaers)\
**Post date:** [5 September 2020 13:35 UTC](https://discourse.nodered.org/t/onvif-vs-onvif-nodes-issue/32374/4 "2020-09-05T13:35:17Z")

</div>

Hey @gene-code,  
Did you made any progress with these issues?

---

<div class="post-metadata">

**Author:** ![gene-code](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/gene-code/32/28011_2.png) [@gene-code](https://discourse.nodered.org/u/gene-code)\
**Post date:** [6 September 2020 03:48 UTC](https://discourse.nodered.org/t/onvif-vs-onvif-nodes-issue/32374/5 "2020-09-06T03:48:27Z")

</div>

Hi Bart.

Thanks for your replies. I will try your suggestions tomorrow. I was shifted to another task at work so wasn't able to check up on that yet.

But I did google about soap on docker. Seems like it will not readily work. See: [https://stackoverflow.com/questions/50121641/enable-soap-for-php-in-docker-container/50121691](https://stackoverflow.com/questions/50121641/enable-soap-for-php-in-docker-container/50121691).

I am guessing my issues are somewhat similar.

---

<div class="post-metadata">

**Author:** ![gene-code](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/gene-code/32/28011_2.png) [@gene-code](https://discourse.nodered.org/u/gene-code)\
**Post date:** [8 September 2020 04:33 UTC](https://discourse.nodered.org/t/onvif-vs-onvif-nodes-issue/32374/6 "2020-09-08T04:33:10Z")

</div>

So, I tried again your suggestion by just supplying the IP (without port and paths),  
but it still isn't working.

I have found another way though - using the ISAPI protocol on the camera (using standard HTTP REST requests) and can work. Anyways, thanks for your comments and replies.

---

<div class="post-metadata">

**Author:** ![greyser](https://avatars.discourse-cdn.com/v4/letter/g/b782af/32.png) [@greyser](https://discourse.nodered.org/u/greyser)\
**Post date:** [9 September 2020 08:41 UTC](https://discourse.nodered.org/t/onvif-vs-onvif-nodes-issue/32374/7 "2020-09-09T08:41:43Z")

</div>

Hello! I summon @BartButenaers and other folks to help.  
Lately, i tried to install Bart's nodes [https://github.com/bartbutenaers/node-red-contrib-onvif-nodes](https://github.com/bartbutenaers/node-red-contrib-onvif-nodes)  
first, i tried command **npm install node-red-contrib-onvif-nodes@0.0.1-beta.7** from manual [https://github.com/bartbutenaers/node-red-contrib-onvif-nodes#install](https://github.com/bartbutenaers/node-red-contrib-onvif-nodes#install) but got multiple errors

![image](https://us1.discourse-cdn.com/flex026/uploads/nodered/original/3X/7/0/703df8b43673dcf5857ba1fdb8618f15563b88ea.jpeg)

Then i tried install directly from github with command

```auto
**npm install bartbutenaers/node-red-contrib-onvif-nodes**

```

and also got errors  
 ![image](https://us1.discourse-cdn.com/flex026/uploads/nodered/original/3X/5/c/5c4e6094aa234f5ff7faa39bd94be36178f45d54.jpeg)

Any ideas to make install happen?

---

<div class="post-metadata">

**Author:** ![Colin](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/colin/32/17040_2.png) [@Colin](https://discourse.nodered.org/u/Colin)\
**Post date:** [9 September 2020 09:15 UTC](https://discourse.nodered.org/t/onvif-vs-onvif-nodes-issue/32374/8 "2020-09-09T09:15:24Z")

</div>

To install like that you need git installed.  
`sudo apt install git`

---

<div class="post-metadata">

**Author:** ![BartButenaers](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/bartbutenaers/32/10476_2.png) [@BartButenaers](https://discourse.nodered.org/u/BartButenaers)\
**Post date:** [9 September 2020 10:05 UTC](https://discourse.nodered.org/t/onvif-vs-onvif-nodes-issue/32374/9 "2020-09-09T10:05:39Z")

</div>

> [@Colin](#):
>
> you need git installed

Hey Colin, thanks for your help. I had asked @greyser to ask his question on Discourse, because there are smart people in the community... So _ **"spawn git ENOENT"** _ means git is not installed. I should remember that!

---

<div class="post-metadata">

**Author:** ![greyser](https://avatars.discourse-cdn.com/v4/letter/g/b782af/32.png) [@greyser](https://discourse.nodered.org/u/greyser)\
**Post date:** [9 September 2020 10:25 UTC](https://discourse.nodered.org/t/onvif-vs-onvif-nodes-issue/32374/10 "2020-09-09T10:25:20Z")

</div>

@Colin @BartButenaers thanks, guys. I will try to install **git** an first

---

<div class="post-metadata">

**Author:** ![Colin](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/colin/32/17040_2.png) [@Colin](https://discourse.nodered.org/u/Colin)\
**Post date:** [9 September 2020 10:25 UTC](https://discourse.nodered.org/t/onvif-vs-onvif-nodes-issue/32374/11 "2020-09-09T10:25:21Z")

</div>

Yes, apparently it is short for Error No Entry (or Entity). It is a linux system error code.

---

<div class="post-metadata">

**Author:** ![greyser](https://avatars.discourse-cdn.com/v4/letter/g/b782af/32.png) [@greyser](https://discourse.nodered.org/u/greyser)\
**Post date:** [14 September 2020 10:49 UTC](https://discourse.nodered.org/t/onvif-vs-onvif-nodes-issue/32374/12 "2020-09-14T10:49:01Z")

</div>

@BartButenaers@Colin Thanks, I installed nodes.  
Now I m trying to connect to my cameras. Discovery node shows 2 of 3. Made 3 configurations for each camera, insert IP and port from Discovery Xaddr , but cant connect.

 ![image](https://us1.discourse-cdn.com/flex026/uploads/nodered/original/3X/d/9/d95e17da2c58b3f3da371d8129939896536254c9.png)  
 ![image](https://us1.discourse-cdn.com/flex026/uploads/nodered/original/3X/e/7/e738309b72e2a639e9221006d18f409996e05ec9.png)  
 ![image](https://us1.discourse-cdn.com/flex026/uploads/nodered/original/3X/d/e/de4bc25aaf1d9b16952617de2b0f99ebd70cb003.png)

---

<div class="post-metadata">

**Author:** ![BartButenaers](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/bartbutenaers/32/10476_2.png) [@BartButenaers](https://discourse.nodered.org/u/BartButenaers)\
**Post date:** [14 September 2020 11:24 UTC](https://discourse.nodered.org/t/onvif-vs-onvif-nodes-issue/32374/13 "2020-09-14T11:24:17Z")

</div>

In the field **"IP address"** you should only enter the IP address:  
 ![image](https://us1.discourse-cdn.com/flex026/uploads/nodered/original/3X/e/0/e06224e5cabe3c053fb9f344baec11fbb41417e7.png)

> [@greyser](#):
>
> Discovery node shows 2 of 3.

So you have 3 ip camera, but only 2 are discovered? Correct? Is that third camera another brand?  
You could try to increase the **"Timeout"** value in the discovery node, so camera's have more time to respond to the broadcast request. Otherwise I don't know why it not detects all camera's...

---

<div class="post-metadata">

**Author:** ![greyser](https://avatars.discourse-cdn.com/v4/letter/g/b782af/32.png) [@greyser](https://discourse.nodered.org/u/greyser)\
**Post date:** [14 September 2020 11:38 UTC](https://discourse.nodered.org/t/onvif-vs-onvif-nodes-issue/32374/14 "2020-09-14T11:38:06Z")

</div>

Bart, thanks.  
Entered just IP, got errors  
 ![image](https://us1.discourse-cdn.com/flex026/uploads/nodered/original/3X/6/5/652fa32598988e49f480f7db2a5d7fb09cf64514.png)  
 ![image](https://us1.discourse-cdn.com/flex026/uploads/nodered/original/3X/3/c/3cfd76ef5563c36865ade88fc0552e36f6c7050c.png)

---

<div class="post-metadata">

**Author:** ![greyser](https://avatars.discourse-cdn.com/v4/letter/g/b782af/32.png) [@greyser](https://discourse.nodered.org/u/greyser)\
**Post date:** [14 September 2020 12:08 UTC](https://discourse.nodered.org/t/onvif-vs-onvif-nodes-issue/32374/15 "2020-09-14T12:08:11Z")

</div>

I should not use "http://" in an address form. Now it works

---

<div class="post-metadata">

**Author:** ![greyser](https://avatars.discourse-cdn.com/v4/letter/g/b782af/32.png) [@greyser](https://discourse.nodered.org/u/greyser)\
**Post date:** [16 September 2020 09:07 UTC](https://discourse.nodered.org/t/onvif-vs-onvif-nodes-issue/32374/16 "2020-09-16T09:07:58Z")

</div>

@BartButenaers Hello, again!  
Now I try send " **goto PTZ preset**" command.  
First, i got names of all presets by **GetPresets** action, then insert one value **to presetName**. But camera not responding anything. Am I doing everything right?

 ![image](https://us1.discourse-cdn.com/flex026/uploads/nodered/original/3X/8/4/8438f28ee51e23b523999f4e9ea2c157201ce63c.png)

---

<div class="post-metadata">

**Author:** ![Colin](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/colin/32/17040_2.png) [@Colin](https://discourse.nodered.org/u/Colin)\
**Post date:** [16 September 2020 09:49 UTC](https://discourse.nodered.org/t/onvif-vs-onvif-nodes-issue/32374/17 "2020-09-16T09:49:18Z")

</div>

Have you checked whether your camera supports presets? It is one of the features that is missing on some.

---

<div class="post-metadata">

**Author:** ![greyser](https://avatars.discourse-cdn.com/v4/letter/g/b782af/32.png) [@greyser](https://discourse.nodered.org/u/greyser)\
**Post date:** [16 September 2020 10:00 UTC](https://discourse.nodered.org/t/onvif-vs-onvif-nodes-issue/32374/18 "2020-09-16T10:00:33Z")

</div>

Yes, of course. Somehow i managed to make it work. One more question, how can i get current preset of the camera ptz?

---

<div class="post-metadata">

**Author:** ![BartButenaers](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/bartbutenaers/32/10476_2.png) [@BartButenaers](https://discourse.nodered.org/u/BartButenaers)\
**Post date:** [16 September 2020 11:09 UTC](https://discourse.nodered.org/t/onvif-vs-onvif-nodes-issue/32374/19 "2020-09-16T11:09:23Z")

</div>

> [@greyser](#):
>
> how can i get current preset of the camera ptz?

I will need to have a look tonight... If you send the `getPresets` command, perhaps there is something in the output that refers to the current position? But it is only a wild guess ...

---

<div class="post-metadata">

**Author:** ![BartButenaers](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/bartbutenaers/32/10476_2.png) [@BartButenaers](https://discourse.nodered.org/u/BartButenaers)\
**Post date:** [17 September 2020 21:50 UTC](https://discourse.nodered.org/t/onvif-vs-onvif-nodes-issue/32374/20 "2020-09-17T21:50:08Z")

</div>

> [@BartButenaers](#):
>
> I will need to have a look tonight... If you send the `getPresets` command, perhaps there is something in the output that refers to the current position? But it is only a wild guess ...

@greyser,  
Did you find anything useful yet? When I look at the [wsdl](https://www.onvif.org/ver20/ptz/wsdl/ptz.wsdl#op.GetPresets) I don't see anything useful in the `GetPresets` or anywhere else ...

[Next page](https://discourse.nodered.org/t/onvif-vs-onvif-nodes-issue/32374.md?page=2)
