henry-spanka / node-red-contrib-hikvision

Hikvision API for Node Red
MIT License
10 stars 1 forks source link

verbose debug loggin of /ISAPI/ response possible? #10

Open ozett opened 4 years ago

ozett commented 4 years ago

hi, do you think that for informative purpose it is possible to get the XML-Response from the /ISAPI-calls to a debug-log?

like here: https://forum.logicmachine.net/showthread.php?tid=1630&pid=10046#pid10046

maybe with your fork of the underlying hikvision-api?

henry-spanka commented 4 years ago

Sure but why?

ozett commented 4 years ago

see whats going on behind the curtains, means get more verbose logging for debugging. increase log-level, the normal range could be 1-10...

henry-spanka commented 4 years ago

Actually we only make one call to /ISAPI/Event/notification/alertStream. And there is no real data returned that could be useful for debugging. Data is only received when an event happens and then we log it anyway as that's the purpose of the plugin.

ozett commented 4 years ago

to see the alert-stream i found this from here useful:

curl -u USER:PASS http://YOURCAMIP/ISAPI/Event/notification/alertStream