Sending data and photos from ALPR camera to HA

I am helping someone setup a Dahua ALPR camera (ITC431-RW1F-IRL8) and it appears that the camera can post data and photos to a server. I would like to configure it for sending it all to a folder in HA but I don't know what to do. I'll take anything from a nudge in the right direction to a full explanation. Any help would be appreciated.

By the way, the camera does support authentication. I toggled it on (see below).

I'm making progress. I can capture the Keep Alives with a Node Red http in node. However, the node seems to require that the path begin with /endpoint.

The Keep Alive path can be specified, so I have added /endpoint and all is fine.

But it seems that the ALPR data from the camera is posted to root. You can see in my http in node that I have specified the url as * and I am not seeing anything in the debug node other than Keep Alives.

I was able to get this to work (sort of) with Nginx Proxy Manager.

Here is my current config for ITSAPI:

  1. Go to the NPM web UI on port 81. So, for me it's http://192.168.1.101:81
  2. Go to Proxy Hosts
  3. Add Proxy Host. The Domain Name is the IP address I've entered into the ITSAPI server field. The Forward Hostname/IP is the IP address where Node Red resides. And port 1880 for Node Red. Websockets Support doesn't seem to be needed, but I turned it on anyway.

  1. Then go to the Custom Locations tab. Add location. Enter the details for Node Red again. Notice that I have / in the Define location field. Now click that little Settings gear just above the Forward Port field. And in the window below, paste the following:
location / {
proxy_pass http://192.168.1.101:1880/endpoint/;
proxy_set_header Host $host;
proxy_set_header X-Real-IP $remote_addr;
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
proxy_set_header X-Forwarded-Proto $scheme;
}

  1. Click Save

Now all the webhooks sent to 192.168.1.101:80 will be forwarded to 192.168.1.101:1880/endpoint/* (Node Red). And I do get keep-alives at /endpoint/NotificationInfo/KeepAlive as well as the images and data from the camera. The strange thing is that the camera will send each webhook repetitively until a subsequent image is taken and sent. So Node Red is getting flooded. I have a Response node with 200 in the status field, and the issue persists.

Edit: I think the problem stems from the response not being received by the camera. And, if I don't have the Need Response setting set to Yes, the webhooks are not received in Node Red. So, it seems I need to figure out what response the camera is expecting, because the 200 isn't doing the trick. Also, the ANPR webhook isn't replaced with a new one when a new car drives through. It keeps sending the old one.