# Node-red-contrib-onvif-nodes : Beta test

**URL:** https://discourse.nodered.org/t/node-red-contrib-onvif-nodes-beta-test/33722
**Category:** General
**Created:** [4 October 2020 08:31 UTC](https://discourse.nodered.org/t/node-red-contrib-onvif-nodes-beta-test/33722 "2020-10-04T08:31:53Z")
**Posts on this page:** 1
**Showing post:** 7

<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: [8 October 2020 21:56 UTC](https://discourse.nodered.org/t/node-red-contrib-onvif-nodes-beta-test/33722/7 "2020-10-08T21:56:07Z")

</div>

> [@SuperNinja](#):
>
> device-node  
> ![image](https://us1.discourse-cdn.com/flex026/uploads/nodered/original/3X/c/9/c902c89b6a10ded52e0864f7227af9c6b83cd573.png)

Chris,  
The version on Github should not crash anymore, when getting the hostname.

> [@SuperNinja](#):
>
> **media-node**  
> ![image](https://us1.discourse-cdn.com/flex026/uploads/nodered/original/3X/3/c/3c0e2820193112d290d850ecf0f489589a69054a.png)

Well this demonstrates exactly why I have put - at the time being - on my readme page that it is not published on NPM yet and I mentioned that I needed to discuss it (which I will do now here):

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

To clarify: _ **my Onvif nodes are NOT user-friendly!** _ And the fact that you highlight these in yellow proves that... Will try to explain what is wrong with my nodes, and hopefully we can get some ideas here how to improve it :crossed\_fingers

- Suppose you want to setup two streams on your camera, one with a high resolution and one with a low resolution.

- This means that you need to setup two _ **media profiles** _, each with their own resolution. Here is a screenshot from e.g. [GeniusVision](http://community.geniusvision.net/platform/cprndr/ta/onvifinstr/) that shows this very clearly:

- However when you look at the media profiles, their data structure is rather complicated. You can find the entire tree structure easily with following flow:

- You have to access the configuration always via the sourceToken. However that is generated automatically, so not easy to remember. To simplify it, my nodes also accept the profile name: I automatically search for the corresponding profile token, and use that one to access the configuration.  
And when you access the config via an input message (to update or read the config), you can also specify the `profile_name` or `profile_token` or none of both (in this case I will use the default token). This is why your flow didn't work: the example flow on Github seems to contain the tokens of my camera. But this is not clear to users .........................

- I have added - at the time being - a search button on the config screen, that allows you to get automatically the media profile names from your camera (in my case two profile names 'mainStream' and 'subStream'):

- When you want to read/write a config you need to send input messages. Since that seemed the Node-RED way for me. But of course then you need to build the entire UI yourself, which triggers those input messages (e.g. some controls on the dashboard to specify the resolution). So the disadvantage is that users will need to build the UI on their own. On the other hand it is very flexible, since it allows you to implement it the way you want.

- I have already been wondering if a sidebar panel would have been a better solution. I mean that you can select a camera in a dropdown, and that I show the config tree there somehow. Although then I'm building an entire Onvif manager, which would be hell of a job to build and maintain ... And then you can't control it via input messages, so you would loose the Node-RED way of doing things ...

Summarized: I DON'T KNOW HOW TO IMPLEMENT IT, SO IT BECOMES USER FRIENDLY.  
And that is the reason why these nodes have never reached NPM ...

---

_[View the full topic](https://discourse.nodered.org/t/node-red-contrib-onvif-nodes-beta-test/33722)._
