Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

API to send ISAPI commands #20

Closed
pergolafabio opened this issue Jan 25, 2022 · 6 comments
Closed

API to send ISAPI commands #20

pergolafabio opened this issue Jan 25, 2022 · 6 comments

Comments

@pergolafabio
Copy link

Hey @tomasbedrich

i have found the command to send ISAPI requests to the intercom, i think it can be verry usefull for you , that way you can get all ISAPI info from the outdoor station!, so you are not limited to info on hikconnect cloud...

2 examples

curl -X POST --header "sessionId: SESSIONID" --data "apiKey=100044&channelNo=1&deviceSerial=QXXXXXX&apiData=PUT /ISAPI/AccessControl/RemoteControl/door/1%0D%0A<RemoteControlDoor><cmd>open</cmd><channelNo>1</channelNo><controlType>monitor</controlType><password></password></RemoteControlDoor>" "https://apiieu.hik-connect.com/v3/userdevices/v1/isapi"


curl -X POST --header "sessionId: SESSIONID" --data "apiKey=100044&channelNo=1&deviceSerial=QXXXXX&apiData=GET /ISAPI/VideoIntercom/capabilities" "https://apiieu.hik-connect.com/v3/userdevices/v1/isapi"   
@pergolafabio

This comment has been minimized.

@tomasbedrich
Copy link
Owner

tomasbedrich commented Jan 26, 2022

Hey @pergolafabio, for the request above I'm getting this response:

{
    "meta": {
        "code": 2009,
        "message": "设备网络异常,请检查设备网络或者重试",
        "moreInfo": null
    }
}

I guess that's because my intercom doesn't support ISAPI at all.

It would be valuable to know how many people using this integration own devices supporting cloud-ISAPI to accordingly prioritize this issue. Currently, I don't have a clue.

@pergolafabio
Copy link
Author

what intercom do you have?

@tomasbedrich
Copy link
Owner

tomasbedrich commented Apr 10, 2022

Thanks to your suggestions, I have been able to construct generic ISAPI proxy layer over Hik-Connect cloud. :) You can expect some more development in that way in next versions... I don't know where are you getting your tips from. :)

@tjunussov
Copy link

tjunussov commented Mar 10, 2024

nstruct generic ISAPI proxy layer

I have same error "code": 2009, "message": "设备网络异常,请检查设备网络或者重试",
however I could call http://{localip}/ISAPI/VideoIntercom/capabilities

what wrong i making ? i noticed what you use deviceSerial=QXXXXX where Q is prefix to SerialNumber ? i tried with Q and without nothing helped

maybe i should provide correct APIKEY=100044? but where I could obtain it ?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants