Dahua - send outbound HTTP request?

Dec 23, 2019
3
0
US
Hi all - this is my first post :)

I'm trying to use a stereo-vision Dahua camera that supports People Counting to periodically upload People Counting stats for an area to a remote server. I found a link to the "Amcrest HTTP API" docs, and have been making HTTP API calls to my camera to fetch People Counting stats, that's working great. But the downside is, it requires some computer on my LAN to call out to the camera and ask for the latest People Counting stats (eg: every hour, or every day), then that computer sends the data up to my remote server.

What I want to do is eliminate the need for the extra computer. Is there any way to configure the Dahua camera to just send the People Counting stats up to my server instead? After digging through my Dahua's settings, I've found support for sending outbound emails or triggering an alarm device... but I don't see either: 1) triggering an HTTP request when new People Count detected, or 2) triggering HTTP request on hourly interval to upload the People Counting data.

Is there a way to achieve this w/ the Dahua camera without a second computer who calls its API periodically? I'm essentially looking for a Webhook, which is the tech that powers most cross-product integrations on services like IFTTT, where I can tell my Dahua "call this URL when you have new People Counting data", and that URL would point to my remote server.

Thanks!
 
Are you aware that SmartPSS can produce People Counting charts, and export data?

I don't know what your remote server is but perhaps you could put your program with API commands on your remote server. It is possible to send API commands to a remote camera.
 
Are you aware that SmartPSS can produce People Counting charts, and export data?

I don't know what your remote server is but perhaps you could put your program with API commands on your remote server. It is possible to send API commands to a remote camera.

Yes, thanks for your reply. I don't want the end-user to access each camera's Web UI to query-for and view the people counting data. I want to upload and aggregate it on my remote server and do custom visualizations in a separate browser app.

I had considered that my server could query each camera. It would eliminate the need for another device. However in my scenario, I learned it was not acceptable to make the camera's publicly accessible on the internet. (That is: I can only allow these to make outbound internet calls. Inbound calls are only OK from local network devices)
 
I called Dahua tech support and their "Tier 2" support confirmed for me that there is no way to configure the camera with a recurring schedule / script to upload the People Counting stats. They suggested the solution of another device on the LAN that could do this and upload the data to the desired remote server.
 
@CosmicBagel You can help me with an example for people counting stats with http api?
I try this but the received values are not updated. Receive new data, on http request, only after reboot camera.

Many thanks!

Salut.

I have the same problem. Have you found any trick (workaround) for this? I have a plan to do reboot before (or after) reading stats.
Reboot with:
http://<server>/cgi-bin/magicBox.cgi?action=reboot
 
  • Like
Reactions: forinsec
Hi
Need some help please.
I have bought this camera from Dahua
HDW8341XP
And need to get people counting value from them from api.
The call will be made made by another software every hours.
Try to find out how to get it working but can't find the correct syntax for the api :/
Can anybody help me with an exemple for people counting stats ??

Big thanks for your help :)