Supergiovane / node-red-contrib-hikvision-ultimate

A native set of node for Hikvision Cameras, Doorbells, Alarms, Radars etc.
https://www.facebook.com/supergiovaneDev
MIT License
51 stars 11 forks source link

Can see preview picture but node always has bad request #45

Closed AnthK1973 closed 2 years ago

AnthK1973 commented 2 years ago

Hi Supergiovane,

Thanks for your work on the nodes - I am trying to setup the picture node so I can email a picture to myself when motion is detected.

My issue is:

I don't need to do anything else to reproduce the error

I would expect that if I can see a picture when configuring the node that this would use the same connection to the NVR so I am unsure why it would not connect to the unit outside of the configuration window.

Hikvision-Ultimate Version

Node-Red running on RaspberryPi

Supergiovane commented 2 years ago

Hi, what are you passing as message to the picture node? What is the payload of that "Email setup" node?

AnthK1973 commented 2 years ago

Just a timestamp. But even before I trigger it - it won't connect.

Thanks

On Tue, Nov 22, 2022 at 5:54 PM Massimo Saccani @.***> wrote:

Hi, what are you passing as message to the picture node? What is the payload of that "Email setup" node?

— Reply to this email directly, view it on GitHub https://github.com/Supergiovane/node-red-contrib-hikvision-ultimate/issues/45#issuecomment-1323196834, or unsubscribe https://github.com/notifications/unsubscribe-auth/AZKMLS5H5POJTEE6HLNNCVLWJRUZXANCNFSM6AAAAAASHL64CE . You are receiving this because you authored the thread.Message ID: <Supergiovane/node-red-contrib-hikvision-ultimate/issues/45/1323196834@ github.com>

Supergiovane commented 2 years ago

I need a log, because that's not normal. Just type banana after the server ip, in your case 10.0.0.50banana then send me please the log.

AnthK1973 commented 2 years ago

Says "Hikvision-config: FETCH ERROR: StatusResponse Bad Request

On Tue, Nov 22, 2022 at 6:43 PM Massimo Saccani @.***> wrote:

I need a log, because that's not normal. Just type banana after the server ip, in your case 10.0.0.50banana then send me please the log.

— Reply to this email directly, view it on GitHub https://github.com/Supergiovane/node-red-contrib-hikvision-ultimate/issues/45#issuecomment-1323240727, or unsubscribe https://github.com/notifications/unsubscribe-auth/AZKMLS6COR2CQQRDSV7JLDDWJR2RXANCNFSM6AAAAAASHL64CE . You are receiving this because you authored the thread.Message ID: <Supergiovane/node-red-contrib-hikvision-ultimate/issues/45/1323240727@ github.com>

Supergiovane commented 2 years ago

Hi that row tells me nothing. I need you to do what i asked for, to enable the full detailed log. Other than that, i need to know your node version and your node-red version also. Thanks

AnthK1973 commented 2 years ago

Sorry I'm not sure what you mean by the detailed log. Do you mean the debug window? I have attached an image of this.

[image: image.png]

Thanks,

On Tue, Nov 22, 2022 at 7:15 PM Massimo Saccani @.***> wrote:

Hi that row tells me nothing. I need you to do what i asked for, to enable the full detailed log. Other than that, i need to know your node version and your node-red version also. Thanks

— Reply to this email directly, view it on GitHub https://github.com/Supergiovane/node-red-contrib-hikvision-ultimate/issues/45#issuecomment-1323273849, or unsubscribe https://github.com/notifications/unsubscribe-auth/AZKMLS3B6PCSGPUDR77VWYTWJR6LDANCNFSM6AAAAAASHL64CE . You are receiving this because you authored the thread.Message ID: <Supergiovane/node-red-contrib-hikvision-ultimate/issues/45/1323273849@ github.com>

Supergiovane commented 2 years ago

Hi the log coming from node-red, like this one.

massimosaccani_—_-zsh_—_80×39

If you're unsure where to find it, please take a look on the node-red website, but usually it is in yout home directory, under .node-red folder.

AnthK1973 commented 2 years ago

Hi,

I couldn't find the log but I did get the picture working and sending to my email! As I have an NVR I needed to use the port for the specific camera (i.e. 10.0.0.50:65002 rather than 10.0.0.50:80)

I copied the flow for a second camera and setup another hikvision node (with 10.0.0.50:65003). For some reason though this just says "waiting for event"

[image: image.png]

Any suggestions?

Thanks.

On Tue, Nov 22, 2022 at 7:39 PM Massimo Saccani @.***> wrote:

Hi the log coming from node-red, like this one. [image: massimosaccani-zsh_—_80×39] https://user-images.githubusercontent.com/37666636/203265729-a79459e5-28d7-4905-88cc-7d4b9ca74c8b.png

If you're unsure where to find it, please take a look on the node-red website, but usually it is in yout home directory, under .node-red folder.

— Reply to this email directly, view it on GitHub https://github.com/Supergiovane/node-red-contrib-hikvision-ultimate/issues/45#issuecomment-1323299702, or unsubscribe https://github.com/notifications/unsubscribe-auth/AZKMLS6POUVVN32KQGZS75LWJSBFTANCNFSM6AAAAAASHL64CE . You are receiving this because you authored the thread.Message ID: <Supergiovane/node-red-contrib-hikvision-ultimate/issues/45/1323299702@ github.com>

Supergiovane commented 2 years ago

Hi ok, i've understood that your NVR has POE and it does NAT the cameras on different ports. Please be sure that the NVR allows the port 65003 to be accessed. It's useful to have a screenshot of your non working flow and the flow code itself (just select all nodes, then select "export" in the Node-Red right menu. Then paste the code here, surrounding it with the "<>" option you find in this text editor. Don't worry, the export function doesn't export any of your password nor username.