Supergiovane/node-red-contrib-hikvision-ultimate

[Feature Request] Xml in node

EvertDekker opened this issue · 7 comments

Hi, It's me again,

Thanks for your great nodes. I'm using them more and more to control my camera's, all is working great.
What I'm missing now is a XML in node.

It would be handy if you can ask for example the camera if motion detection is enabled or not. Can be used for example to see if the motion detection is enabled in the dashboard by a led or something.

Sending a path /ISAPI/System/Video/inputs/channels/1/motionDetection to the camera and get the XML back.
It should then be very handy if the node outputs the received XML as json.

msg = { "enabled": true, "enableHighlight": true, "samplingInterval": 2, etc.... }

Thanks

Hi
Tomorrow i’ll take a look!

Hi EvertDekker
Are you able to paste the content of this zip, in your .node-red/node_modules/node-red-contrib-hikvision-ultimate/nodes folder and restart node-red?
Archivio.zip
Then attach a debug node to the XML-Ultimate and let me know if it works.
The node returns a JSON as response from the camera.

Hi Giovanne,

Thanks for your amazing quick feature request fulfil.

Or I'm not sure if I use the node correct or it's not working properly.
I have an inject node to trigger the XML node, in the XML node I have added the ISAPI url.
The response will give an error 500.
Capture

Use GET instead of PUT

See the sample on gitHub Readme

Hi,

Yep, now it's working with GET.
Sorry for not reading the readme.

Thanks again for your great nodes and quick response.

Evert

Good. Please star my node if not already done.

The new official version will be out tomorrow.
cheers!