# Onvif camera control

**URL:** <https://discourse.nodered.org/t/onvif-camera-control/6888>\
**Category:** General\
**Created:** [16 January 2019 14:24 UTC](https://discourse.nodered.org/t/onvif-camera-control/6888 "2019-01-16T14:24:51Z")\
**Posts on this page:** 20\
**Page:** 5

<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:** [15 March 2019 09:05 UTC](https://discourse.nodered.org/t/onvif-camera-control/6888/81 "2019-03-15T09:05:41Z")

</div>

Working for me.  
I wouldn't waste any time over the features that don't work for me, if they work for others then it is most likely that the camera just doesn't support them.

---

<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:** [15 March 2019 11:13 UTC](https://discourse.nodered.org/t/onvif-camera-control/6888/82 "2019-03-15T11:13:31Z")

</div>

Looking through the config I see that getNodes on the PTZ node shows `homeSupported: false` so that suggests the goHome should not work, so that's ok.  
getStatus show pan, tilt and zoom position all on 0.25. The camera hasn't got pan and tilt, but the zoom position doesn't change. Am I correct in assuming that the number should show the current zoom position?

---

<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:** [15 March 2019 12:04 UTC](https://discourse.nodered.org/t/onvif-camera-control/6888/83 "2019-03-15T12:04:32Z")

</div>

There appears to be a bug in the getSnapshot method. I imported the flow and selected my camera in the onvif node, and deleted the config node for the one in the flow. When I try to run getSnapshot it is failing with 404 error, on IP 192.168.1.200:80 which I think is the IP of the original camera in the flow. Possibly the getSnapshot code does not realise the config node has been switched, or is not being re-deployed. A full deploy fixed it.

Just to let you know, there is an error in readme in the first get snapshot flow, the node type is onvifmedia instead of onvif-media.

---

<div class="post-metadata">

**Author:** ![prutspapa](https://avatars.discourse-cdn.com/v4/letter/p/dc4da7/32.png) [@prutspapa](https://discourse.nodered.org/u/prutspapa)\
**Post date:** [17 March 2019 16:12 UTC](https://discourse.nodered.org/t/onvif-camera-control/6888/84 "2019-03-17T16:12:47Z")

</div>

@BartButenaers, FYI, I can confirm that with the beta.6 version the nodes now connect with the camera.

The node "Onvif Commands" with the "start listening" action causes high load on my raspberry pi.  
Don't now is this is a node-red issue or a Onvif issue.  
Anyway, Good work !

---

<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 March 2019 17:24 UTC](https://discourse.nodered.org/t/onvif-camera-control/6888/85 "2019-03-17T17:24:44Z")

</div>

Hi @prutspapa, @Colin,  
Thanks for the feedback!!

Due to daily-work-related activities, **I won't be able to respond to the questions until 27 march**.  
But please keep testing and giving input if you have some spare time left ...

See you guys later !!  
Bart

---

<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 March 2019 20:08 UTC](https://discourse.nodered.org/t/onvif-camera-control/6888/86 "2019-03-17T20:08:57Z")

</div>

Some last feedback ...

> [@Colin](#):
>
> Looking through the config I see that getNodes on the PTZ node shows `homeSupported: false` so that suggests the goHome should not work, so that's ok.

Well it would be nice if I could somehow visualise which functionality is supported on your camera, and which functionality isn't supported. But if you look at this [wsdl](https://www.onvif.org/onvif/ver10/ptz/wsdl/ptz.wsdl), you will see that (only for PZT) a lot of **different** kindof tests are required:

 ![image](https://us1.discourse-cdn.com/flex026/uploads/nodered/original/2X/2/237d3ba8fd849e7d544f8f1b5b7b722349d9b4f4.png)

And for the other nodes (media, event, ...) again other kind of tests would be required to implement this ... But we can try to implement as much as possible, and e.g. show a node status ' **unsupported action**' ??

> [@Colin](#):
>
> @colin: Am I correct in assuming that the number should show the current zoom position?

I think you are correct, but my camera's only support Pan-Tilt but no zoom. So I cannot test it. Have ordered a new camera with zoom support, but that one hasn't arrived yet...

> [@Colin](#):
>
> Possibly the getSnapshot code does not realise the config node has been switched, or is not being re-deployed. A full deploy fixed it.

Yes the http request is send on the server side, which isn't aware of your changes on the client side. So when you change the config node, it think it is normal that you have to deploy to make that change become active. Not????

> [@prutspapa](#):
>
> The node "Onvif Commands" with the "start listening" action causes high load on my raspberry pi.  
> Don't now is this is a node-red issue or a Onvif issue.

@prutspapa: In the [readme](https://github.com/bartbutenaers/node-red-contrib-onvif-nodes#event-node-not-functional-yet-) page you can see that the Event-node isn't working yet. Reason is that I couldn't test it, since my current Panasonic camera doesn't support event streams. Indeed I can see via the **getServices** (in the Device-node) that _none_ of the 3 stream types are supported:

![image](https://us1.discourse-cdn.com/flex026/uploads/nodered/original/2X/3/3d9d985ccb6daab7f8193db290f088eb13b09b7d.png)

As soon as I have my new camera, I can try to test this...

---

<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:** [18 March 2019 09:03 UTC](https://discourse.nodered.org/t/onvif-camera-control/6888/87 "2019-03-18T09:03:20Z")

</div>

> [@Colin](#):
>
> Possibly the getSnapshot code does not realise the config node has been switched, or is not being re-deployed. A full deploy fixed it.

> [@BartButenaers](#):
>
> Yes the http request is send on the server side, which isn't aware of your changes on the client side. So when you change the config node, it think it is normal that you have to deploy to make that change become active. Not????

I am not able to replicate what I am sure I saw, I had deployed, but only Changed Nodes, I had to do a Full Deploy to get it to work. However, since I am not now able to replicate the situation perhaps I had not actually deployed at all.

---

<div class="post-metadata">

**Author:** ![prutspapa](https://avatars.discourse-cdn.com/v4/letter/p/dc4da7/32.png) [@prutspapa](https://discourse.nodered.org/u/prutspapa)\
**Post date:** [25 March 2019 18:37 UTC](https://discourse.nodered.org/t/onvif-camera-control/6888/88 "2019-03-25T18:37:20Z")

</div>

@BartButenaers  
FYI, just had some time to test. It seems my camera supports 2 of the 3 streams  
 ![14](https://us1.discourse-cdn.com/flex026/uploads/nodered/original/2X/5/5659479ff25da8740e9ce6cd5aebf09cd605de18.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:** [17 April 2019 16:25 UTC](https://discourse.nodered.org/t/onvif-camera-control/6888/89 "2019-04-17T16:25:54Z")

</div>

My camera was all working with the onvif node, but now it isn't. It is a little while since I used it so I don't know when it stopped working. I am on node red 0.19.5 and nodejs 10.15.3. The onvif node is at 0.6.0. I am seeing this error in a Catch node

```bash
Error: Wrong ONVIF SOAP response
    at /home/colinl/.node-red/node_modules/onvif/lib/utils.js:77:14
    at Parser.<anonymous> (/home/colinl/.node-red/node_modules/xml2js/lib/parser.js:303:18)
    at Parser.emit (events.js:189:13)
    at Parser.exports.Parser.Parser.parseString (/home/colinl/.node-red/node_modules/xml2js/lib/parser.js:313:16)
    at Parser.parseString (/home/colinl/.node-red/node_modules/xml2js/lib/parser.js:5:59)
    at Object.exports.parseString (/home/colinl/.node-red/node_modules/xml2js/lib/parser.js:354:19)
    at parseSOAPString (/home/colinl/.node-red/node_modules/onvif/lib/utils.js:62:9)
    at IncomingMessage.<anonymous> (/home/colinl/.node-red/node_modules/onvif/lib/cam.js:203:4)
    at IncomingMessage.emit (events.js:194:15)
    at endReadableNT (_stream_readable.js:1125:12)
    at process._tickCallback (internal/process/next_tick.js:63:19)

```

---

<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 April 2019 21:28 UTC](https://discourse.nodered.org/t/onvif-camera-control/6888/90 "2019-04-17T21:28:59Z")

</div>

Hey Colin (@Colin), that is indeed something I have also from time to time with my own cameras. Unfortunately I have so much work with other Node-RED issues, that I have had no time at all to work on my Onvif nodes meanwhile. Will come back on this once my backlog has become smaller ...

---

<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:** [18 April 2019 07:40 UTC](https://discourse.nodered.org/t/onvif-camera-control/6888/91 "2019-04-18T07:40:37Z")

</div>

Ok, did you find a way to clear it? I have tried re-starting NR.

---

<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:** [20 June 2019 07:44 UTC](https://discourse.nodered.org/t/onvif-camera-control/6888/92 "2019-06-20T07:44:35Z")

</div>

> [@Colin](#):
>
> Error: Wrong ONVIF SOAP response

Hi Bart  
Have you managed to find time to have a look at this? Unfortunately it doesn't work at all with me any more, though initially it did, which is rather strange. I have the error solidly so if you wanted me to do anything to help analyse it I would be very happy to do so.

---

<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:** [20 June 2019 10:10 UTC](https://discourse.nodered.org/t/onvif-camera-control/6888/93 "2019-06-20T10:10:18Z")

</div>

Hi Colin (@Colin),  
Recently my Onvif Hikvision camera arrived - after 3 months ... - so I wanted to start with my Onvif nodes again. But now I would like to finalize my **camera viewer** node first, since that can cooperate with the Onvif nodes very well (which allows me to test the Onvif nodes more rapidly). But I'm [stuck](https://discourse.nodered.org/t/completely-stuck-with-my-new-ui-camera-viewer-node/12406) with the camera viewer node at the moment. So unless somebody can give me a tip to solve/workaround that problem, I'm going have to waste my evenings finding a solution myself. But meanwhile I cannot continue the Onvif nodes ...  
Bart

---

<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:** [20 June 2019 12:34 UTC](https://discourse.nodered.org/t/onvif-camera-control/6888/94 "2019-06-20T12:34:32Z")

</div>

OK, undestood, unfortunately there are only so many hours in the day.

---

<div class="post-metadata">

**Author:** ![wb666greene](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/wb666greene/32/6534_2.png) [@wb666greene](https://discourse.nodered.org/u/wb666greene)\
**Post date:** [20 June 2019 13:34 UTC](https://discourse.nodered.org/t/onvif-camera-control/6888/95 "2019-06-20T13:34:16Z")

</div>

Does the viewer node work without the SVG overlay? maybe separate the issues. I could perhaps test the viewer node, but I don't have anything that would find image overlays useful, What video input is required?

---

<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:** [20 June 2019 14:51 UTC](https://discourse.nodered.org/t/onvif-camera-control/6888/96 "2019-06-20T14:51:56Z")

</div>

> [@wb666greene](#):
>
> maybe separate the issues

Hi @wb666greene,  
Unfortunately it is not possible to separate the issues: when I (hopefully) find a solution for the overlay issue, this probably means that I have to rewrite the whole image display stuff also. And then we would have both wasted free time on testing an obsolete version. I will continue googling this evening, looking for a solution ...

---

<div class="post-metadata">

**Author:** ![wb666greene](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/wb666greene/32/6534_2.png) [@wb666greene](https://discourse.nodered.org/u/wb666greene)\
**Post date:** [18 October 2019 22:17 UTC](https://discourse.nodered.org/t/onvif-camera-control/6888/97 "2019-10-18T22:17:24Z")

</div>

Is this project still "active"?

I just got a 5Mpixel Onvif PTC camera from Amazon for ~$100. It nice in that you no longer need the lame activeX plugin to set it up and use it, meaning Chromium on Linux is all I needed no windows VM to set it up.

It was mostly an impulse purchase to "play with" as its not rated for outdoor use. Although I may mount it under an eve where is reasonably well protected from the weather.

---

<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:** [19 October 2019 05:13 UTC](https://discourse.nodered.org/t/onvif-camera-control/6888/98 "2019-10-19T05:13:52Z")

</div>

> [@wb666greene](#):
>
> Is this project still "active"?

@wb666greene: it is not dead yet...  
I have planned to continue it this winter. At the moment I have no time for it.

---

<div class="post-metadata">

**Author:** ![wb666greene](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/wb666greene/32/6534_2.png) [@wb666greene](https://discourse.nodered.org/u/wb666greene)\
**Post date:** [19 October 2019 14:17 UTC](https://discourse.nodered.org/t/onvif-camera-control/6888/99 "2019-10-19T14:17:47Z")

</div>

I understand, between now and then I'll see how far I get with your beta6 and examples on the GitHub and we'll take it from there when you are ready.

I don't envision using PTZ for anything other than keeping me off a ladder to fine tune the camera view, but at my age, that is starting to be a "big deal".

---

<div class="post-metadata">

**Author:** ![ozett](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/ozett/32/28862_2.png) [@ozett](https://discourse.nodered.org/u/ozett)\
**Post date:** [3 November 2019 12:53 UTC](https://discourse.nodered.org/t/onvif-camera-control/6888/100 "2019-11-03T12:53:39Z")

</div>

i tried to use the flow for the snapshot,  
-\> [Onvif camera control](https://discourse.nodered.org/t/onvif-camera-control/6888/70)  
but i have no "image-node" installed.  
what node is this? thx

[Previous page](https://discourse.nodered.org/t/onvif-camera-control/6888.md?page=4)

[Next page](https://discourse.nodered.org/t/onvif-camera-control/6888.md?page=6)
