Dahua HTTP API

Joined
Dec 26, 2020
Messages
9
Reaction score
0
Location
Belgium
is there some simple example with curl that would work with every dahua IP cam? Thx. A general queury for example?
 

genelit

Getting comfortable
Joined
Jan 4, 2018
Messages
264
Reaction score
395
Location
Sweden
is there some simple example with curl that would work with every dahua IP cam? Thx. A general queury for example?
Just updatesd my post with an example, hope this helps! But this is of course only applicable for a ptz. I'm on my mobile now so hard to give another example.
 

genelit

Getting comfortable
Joined
Jan 4, 2018
Messages
264
Reaction score
395
Location
Sweden
you use digest authentication, maybe that is my problem? I use basic authentication....
It was long time ago I set up the commands and I don't remember why I chose digest, maybe it worked best.
Anyway, it works
 

genelit

Getting comfortable
Joined
Jan 4, 2018
Messages
264
Reaction score
395
Location
Sweden
I can try the next time I hook up an esp.
What do you want to achieve?
Are you using espeasy or arduino IDE?
 
Joined
Dec 26, 2020
Messages
9
Reaction score
0
Location
Belgium
but postman is just to test, my goal is to use cheap ESP32 alarm that can enable disable the recording and/or motion when switched on.

Will check if ESP32 can do this kind of authentication, it looks much more difficult than the basic one.
 
Joined
Dec 26, 2020
Messages
9
Reaction score
0
Location
Belgium

iTuneDVR

Pulling my weight
Joined
Aug 23, 2014
Messages
860
Reaction score
156
Location
Россия
You have old ipc & must work old HTTP API.
Try to find the same or similar & check.
Happy Holydays!
 
Joined
Sep 7, 2021
Messages
3
Reaction score
0
Location
Ahmedabad
I wanted to fetch the traffic flow data from dahua Camera API through python but got 401 error and I tried with Postman also. But the same error
 
Joined
Sep 7, 2021
Messages
3
Reaction score
0
Location
Ahmedabad
No I am not using dahua python sdk. I just want to fetch the dahua camera data through API in Python3.
 

EMPIRETECANDY

IPCT Vendor
Joined
Nov 8, 2016
Messages
8,363
Reaction score
24,129
Location
HONGKONG
The API i have it, but can't share to the end users based on dahua policy, i can share to some members here who help a lot to the IPCT.
 
Joined
Sep 7, 2021
Messages
3
Reaction score
0
Location
Ahmedabad
If you can't share the API, that's ok.
But, tell how to Digest Authorization to get the data through API in python.
 
Top