Dahua PTZ1A2M-25X, HTTP Requests, Moves Up and Down but that's it?

Noober

Getting the hang of it
Jan 1, 2024
48
30
USA
deets.png
Trying to control this camera with HTTP Requests. So far I can get up and down to work using this format:

which works and returns <Response [200]>

Similarly down works with:

and returns <Response [200]>

But despite using the Armcrest HTTP API document (and this API doc from Empire Tech which has the same commands), I can't get left, right, zoom, goto_preset to work:

<Response [501]>
** this doesn't change even if I pass a number 1-8 to arg2

<Response [501]>

<Response [501]>

I see there is a camera firmware update, but I don't want to change anything unless I know it will fix the issue. Is there a "protocol" or something I can select in settings that will open up more than Up and Down http requests? If so, I haven't found it in the camera settings. Many thanks for any help.
 
Last edited:
Okay, discovered my poor coding was the issue.

The reason why some of the commands were not working is because the non-working commands I was feeding it had ".cgi&action=" which should be ".cgi?action=" and now with that changed, my code can pan left and I'm sure all the other API commands will work as well.
 
  • Like
Reactions: TonyR
Okay, discovered my poor coding was the issue.

The reason why some of the commands were not working is because the non-working commands I was feeding it had ".cgi&action=" which should be ".cgi?action=" and now with that changed, my code can pan left and I'm sure all the other API commands will work as well.
Gee, I've never done anything like that...
</end sarcasm> :facepalm: