ken830 / Hubitat

Apache License 2.0
5 stars 2 forks source link

Question #2

Open matthiasvandoninck opened 3 years ago

matthiasvandoninck commented 3 years ago

Hi Ken, I hope you can help me with this. I want to use the Alarm Trigger / HTTP Notification function as well, but I don't know how to use and I've spend a week to do some research and test cases, but nothing works. I want to pass the license plate detection event to the HTTP URL but I don't know how to 'catch' the event, I don't know what the camera actually does (catching post request does not work). Thanks in advance. Matthias

ken830 commented 3 years ago

Hi Matthias,

First question is, does this work for you in detecting other alert types, like motion (VMD), line cross (linedetection), etc.?

If so, can you try an HTTP GET to your camera at path /ISAPI/Event/capabilities and /ISAPI/Event/triggers and post the responses here? You can do this by typing this in your web browser: "http:///ISAPI/Event/triggers" and "http:///ISAPI/Event/triggers"

I don't have a camera with license plate detection capabilities, so it would be nice to see what the appropriate EventType value is for that particular event.

matthiasvandoninck commented 3 years ago

Hi Kenneth

Thank you very much for your response.

It does not work with other event types (I didn't receive anything). What I did was using my own IP in the HTTP notification/Alarm server mode, and I wrote a PHP script to put all GET/POST requests in a txt file, done on my IP address. But it seems like the camera does not appeal to the link when an alarm is coming. When I opent my link in my browser (http:///page.php) it will work. The camera and my PC are in the same internal network so it have to work (when I click on 'TEST', the camera can actually find the server on my PC's IP).

Thanks!

Matthias


Van: Kenneth Leung @.> Verzonden: zaterdag 13 maart 2021 11:44 Aan: ken830/Hubitat @.> CC: Matthias Vandoninck @.>; Author @.> Onderwerp: Re: [ken830/Hubitat] Question (#2)

Hi Matthias,

First question is, does this work for you in detecting other alert types, like motion (VMD), line cross (linedetection), etc.?

If so, can you try an HTTP GET to your camera at path /ISAPI/Event/capabilities and /ISAPI/Event/triggers and post the responses here? You can do this by typing this in your web browser: "http:///ISAPI/Event/triggers" and "http:///ISAPI/Event/triggers"

I don't have a camera with license plate detection capabilities, so it would be nice to see what the appropriate EventType value is for that particular event.

— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHubhttps://github.com/ken830/Hubitat/issues/2#issuecomment-798136251, or unsubscribehttps://github.com/notifications/unsubscribe-auth/AKZV76RHGQ6VKSNWJQ6YIPLTDMXZRANCNFSM4ZCNDKEQ.

ken830 commented 3 years ago

First of all, what do you mean you didn't receive anything? Is your Hubitat Hub set-up to send anything? Are you seeing events in the log? What are you referring to when you say, "HTTP notification/Alarm server mode"? And why are you referencing your PC? This is a device driver for the Hubitat hub and works directly between the camera and the Hub.

I think there might be a fundamental misunderstanding here.

matthiasvandoninck commented 3 years ago

Hi

I don't use the Hubitat module. I am working with this camera for a school project, and I need to integrate license plate recognition in a 3rd party application. I asked for your help because I saw you did the same for Hubitat (to receive events from the camera). I'm trying to work with the HTTP trigger / alarm server option in Hikvision firmware because I want the camera pass the alarm data to something that can 'catch' the data, so the flow will be Camera will send data -> Webpage (that works with HTTP protocol) will catch the data for further processing. But the function will not work, the HTTP destination that I defined will not receive anything from the camera. It's going wrong somewhere, I don't know how (which method) the camera will pass the data to the defined IP or hostname, so I don't know how to catch the data. I'm sorry for the misunderstanding.

Thanks Matthias [cid:92f621f5-b867-42a7-a90b-ae58eb07cc6d]


Van: Kenneth Leung @.> Verzonden: maandag 15 maart 2021 3:27 Aan: ken830/Hubitat @.> CC: Matthias Vandoninck @.>; Author @.> Onderwerp: Re: [ken830/Hubitat] Question (#2)

First of all, what do you mean you didn't receive anything? Is your Hubitat Hub set-up to send anything? Are you seeing events in the log? What are you referring to when you say, "HTTP notification/Alarm server mode"? And why are you referencing your PC? This is a device driver for the Hubitat hub and works directly between the camera and the Hub.

I think there might be a fundamental misunderstanding here.

— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHubhttps://github.com/ken830/Hubitat/issues/2#issuecomment-799047367, or unsubscribehttps://github.com/notifications/unsubscribe-auth/AKZV76X7DEZHUSKA6ONP2GLTDVWBBANCNFSM4ZCNDKEQ.

ken830 commented 3 years ago

Sorry. This Hubitat device driver doesn't actually receive the HTTP messages from the camera. The hub does that and calls this driver, so my ability to help is probably very limited.

If you can receive HTTP requests on your PC, then there should be no issues receiving from the cameras. Have you ensured that you've enabled "Notify Surveillance Center" under Linkage Method for the event that you want notifications for?