Obter Configurações Gerais de Porta
Por meio da chamada abaixo é possível obter as configurações da porta e rele do dispositivo.
Requisição - GET
http://192.168.1.201/cgi-bin/configManager.cgi?action=getConfig&name=AccessControlGeneral
param | type | description |
---|---|---|
AccessControlGeneral * | String | Comando para obter as configurações |
Exemplo de Retorno - text/plain
table.AccessControlGeneral.ABLock.Doors[0][0]=0
table.AccessControlGeneral.ABLock.Doors[0][1]=1
table.AccessControlGeneral.ABLock.Doors[0][2]=2
table.AccessControlGeneral.ABLock.Enable=false
table.AccessControlGeneral.AccessProperty=bidirect
table.AccessControlGeneral.AccessProtocol=Local
table.AccessControlGeneral.AccessVoice.CurrentVoiceID=0
table.AccessControlGeneral.AccessVoice.VoiceList[0].FileName=
table.AccessControlGeneral.AccessVoice.VoiceList[0].VoiceID=0
table.AccessControlGeneral.AccessVoice.VoiceList[0].VoiceName=Verificado com sucesso
table.AccessControlGeneral.AccessVoice.VoiceList[1].FileName=
table.AccessControlGeneral.AccessVoice.VoiceList[1].VoiceID=1
table.AccessControlGeneral.AccessVoice.VoiceList[1].VoiceName=A porta está aberta
table.AccessControlGeneral.AccessVoice.VoiceList[2].FileName=
table.AccessControlGeneral.AccessVoice.VoiceList[2].VoiceID=2
table.AccessControlGeneral.AccessVoice.VoiceList[2].VoiceName=Desbloqueado com sucesso
table.AccessControlGeneral.AccessVoice.VoiceList[3].FileName=
table.AccessControlGeneral.AccessVoice.VoiceList[3].VoiceID=3
table.AccessControlGeneral.AccessVoice.VoiceList[3].VoiceName=Registro de frequência
table.AccessControlGeneral.AccessVoice.VoiceList[4].FileName=
table.AccessControlGeneral.AccessVoice.VoiceList[4].VoiceID=4
table.AccessControlGeneral.AccessVoice.VoiceList[4].VoiceName=Bem vindo
table.AccessControlGeneral.AccessVoice.VoiceList[5].FileName=
table.AccessControlGeneral.AccessVoice.VoiceList[5].VoiceID=5
table.AccessControlGeneral.AccessVoice.VoiceList[5].VoiceName=Obrigado pela visita
table.AccessControlGeneral.AccessVoice.VoiceList[6].FileName=
table.AccessControlGeneral.AccessVoice.VoiceList[6].VoiceID=6
table.AccessControlGeneral.AccessVoice.VoiceList[6].VoiceName=Obrigado
table.AccessControlGeneral.AccessVoice.VoiceList[7].FileName=
table.AccessControlGeneral.AccessVoice.VoiceList[7].VoiceID=7
table.AccessControlGeneral.AccessVoice.VoiceList[7].VoiceName=Nenhum
table.AccessControlGeneral.ButtonExitEnable=true
table.AccessControlGeneral.CallLiftEnable=false
table.AccessControlGeneral.CallLiftType=Dahua
table.AccessControlGeneral.CheckSensorBeforeLock=false
table.AccessControlGeneral.CheckSensorTime=120000
table.AccessControlGeneral.CustomPasswordEnable=false
table.AccessControlGeneral.DuressEnable=true
table.AccessControlGeneral.ICKey.Enable=false
table.AccessControlGeneral.ICKey.Value[0]=
table.AccessControlGeneral.ICKey.Value[1]=
table.AccessControlGeneral.OpenDoorByCardEnable=true
table.AccessControlGeneral.PeakState=false
table.AccessControlGeneral.PeakTimeSection=255
table.AccessControlGeneral.RecordEnable=false
table.AccessControlGeneral.SensorType=0
table.AccessControlGeneral.SnapshotUpload=false
table.AccessControlGeneral.UnlockRecordType[0]=Card
table.AccessControlGeneral.UnlockRecordType[1]=Password
table.AccessControlGeneral.UnlockRecordType[2]=Button
table.AccessControlGeneral.UnlockRecordType[3]=Remote
table.AccessControlGeneral.UnlockRecordType[4]=FingerPrint
table.AccessControlGeneral.UnlockRecordType[5]=QRCode
table.AccessControlGeneral.UnlockRecordType[6]=Face
table.AccessControlGeneral.UnlockRecordType[7]=DTMF
table.AccessControlGeneral.UnlockRecordType[8]=QRCodeEx
table.AccessControlGeneral.UnlockRecordType[9]=BlueTooth
table.AccessControlGeneral.UnlockRecordType[10]=CustomPassword
table.AccessControlGeneral.UnlockRecordUpload=false
Exemplos
import requests
device_ip = '192.168.3.87'
username = 'admin'
password = 'acesso1234'
url = "http://{}/cgi-bin/configManager.cgi?action=getConfig&name=AccessControlGeneral".format(
str(device_ip),
)
digest_auth = requests.auth.HTTPDigestAuth(username, password)
rval = requests.get(url, auth=digest_auth, stream=True, timeout=20, verify=False)
print(rval.text)
Obter Configurações de Porta
Por meio da chamada abaixo é possível obter as configurações da porta e rele do dispositivo.
Requisição - GET
http://192.168.1.201/cgi-bin/configManager.cgi?action=getConfig&name=AccessControl
param | type | description |
---|---|---|
AccessControl * | String | Comando para obter as configurações |
Exemplo de Retorno - text/plain
table.AccessControl[0].AccessProtocol=Local
table.AccessControl[0].AutoRemoteCheck.Enable=false
table.AccessControl[0].AutoRemoteCheck.Time=255
table.AccessControl[0].BreakInAlarmEnable=false
table.AccessControl[0].CardNoConvert=0
table.AccessControl[0].CloseAlwaysTime=255
table.AccessControl[0].CloseTimeout=10
table.AccessControl[0].CustomPasswordEnable=false
table.AccessControl[0].DoorNotClosedAlarmEnable=false
table.AccessControl[0].DuressAlarmEnable=true
table.AccessControl[0].Enable=true
table.AccessControl[0].FirstEnter.Enable=false
table.AccessControl[0].FirstEnter.Status=Normal
table.AccessControl[0].FirstEnter.Time=1
table.AccessControl[0].HelmetEnable=false
table.AccessControl[0].HolidayTime=255
table.AccessControl[0].LockMode=2
table.AccessControl[0].MaliciousAccessControlEnable=true
table.AccessControl[0].Method=35
table.AccessControl[0].Name=Intelbras
table.AccessControl[0].OpenAlwaysTime=255
table.AccessControl[0].ProtocolType=0
table.AccessControl[0].ReadCardState=0
table.AccessControl[0].RemoteCheck=false
table.AccessControl[0].RemoteDetail.TimeOut=0
table.AccessControl[0].RemoteDetail.TimeOutDoorStatus=Close
table.AccessControl[0].RepeatEnterAlarm=false
table.AccessControl[0].RepeatEnterTime=0
table.AccessControl[0].SensorEnable=false
table.AccessControl[0].State=Normal
table.AccessControl[0].TimeSchedule[0][0].Method=35
table.AccessControl[0].TimeSchedule[0][0].TimeSection=00:00:00-23:59:59
table.AccessControl[0].TimeSchedule[0][1].Method=35
table.AccessControl[0].TimeSchedule[0][1].TimeSection=00:00:00-00:00:00
table.AccessControl[0].TimeSchedule[0][2].Method=35
table.AccessControl[0].TimeSchedule[0][2].TimeSection=00:00:00-00:00:00
table.AccessControl[0].TimeSchedule[0][3].Method=35
table.AccessControl[0].TimeSchedule[0][3].TimeSection=00:00:00-00:00:00
table.AccessControl[0].TimeSchedule[1][0].Method=35
table.AccessControl[0].TimeSchedule[1][0].TimeSection=00:00:00-23:59:59
table.AccessControl[0].TimeSchedule[1][1].Method=35
table.AccessControl[0].TimeSchedule[1][1].TimeSection=00:00:00-00:00:00
table.AccessControl[0].TimeSchedule[1][2].Method=35
table.AccessControl[0].TimeSchedule[1][2].TimeSection=00:00:00-00:00:00
table.AccessControl[0].TimeSchedule[1][3].Method=35
table.AccessControl[0].TimeSchedule[1][3].TimeSection=00:00:00-00:00:00
table.AccessControl[0].TimeSchedule[2][0].Method=35
table.AccessControl[0].TimeSchedule[2][0].TimeSection=00:00:00-23:59:59
table.AccessControl[0].TimeSchedule[2][1].Method=35
table.AccessControl[0].TimeSchedule[2][1].TimeSection=00:00:00-00:00:00
table.AccessControl[0].TimeSchedule[2][2].Method=35
table.AccessControl[0].TimeSchedule[2][2].TimeSection=00:00:00-00:00:00
table.AccessControl[0].TimeSchedule[2][3].Method=35
table.AccessControl[0].TimeSchedule[2][3].TimeSection=00:00:00-00:00:00
table.AccessControl[0].TimeSchedule[3][0].Method=35
table.AccessControl[0].TimeSchedule[3][0].TimeSection=00:00:00-23:59:59
table.AccessControl[0].TimeSchedule[3][1].Method=35
table.AccessControl[0].TimeSchedule[3][1].TimeSection=00:00:00-00:00:00
table.AccessControl[0].TimeSchedule[3][2].Method=35
table.AccessControl[0].TimeSchedule[3][2].TimeSection=00:00:00-00:00:00
table.AccessControl[0].TimeSchedule[3][3].Method=35
table.AccessControl[0].TimeSchedule[3][3].TimeSection=00:00:00-00:00:00
table.AccessControl[0].TimeSchedule[4][0].Method=35
table.AccessControl[0].TimeSchedule[4][0].TimeSection=00:00:00-23:59:59
table.AccessControl[0].TimeSchedule[4][1].Method=35
table.AccessControl[0].TimeSchedule[4][1].TimeSection=00:00:00-00:00:00
table.AccessControl[0].TimeSchedule[4][2].Method=35
table.AccessControl[0].TimeSchedule[4][2].TimeSection=00:00:00-00:00:00
table.AccessControl[0].TimeSchedule[4][3].Method=35
table.AccessControl[0].TimeSchedule[4][3].TimeSection=00:00:00-00:00:00
table.AccessControl[0].TimeSchedule[5][0].Method=35
table.AccessControl[0].TimeSchedule[5][0].TimeSection=00:00:00-23:59:59
table.AccessControl[0].TimeSchedule[5][1].Method=35
table.AccessControl[0].TimeSchedule[5][1].TimeSection=00:00:00-00:00:00
table.AccessControl[0].TimeSchedule[5][2].Method=35
table.AccessControl[0].TimeSchedule[5][2].TimeSection=00:00:00-00:00:00
table.AccessControl[0].TimeSchedule[5][3].Method=35
table.AccessControl[0].TimeSchedule[5][3].TimeSection=00:00:00-00:00:00
table.AccessControl[0].TimeSchedule[6][0].Method=35
table.AccessControl[0].TimeSchedule[6][0].TimeSection=00:00:00-23:59:59
table.AccessControl[0].TimeSchedule[6][1].Method=35
table.AccessControl[0].TimeSchedule[6][1].TimeSection=00:00:00-00:00:00
table.AccessControl[0].TimeSchedule[6][2].Method=35
table.AccessControl[0].TimeSchedule[6][2].TimeSection=00:00:00-00:00:00
table.AccessControl[0].TimeSchedule[6][3].Method=35
table.AccessControl[0].TimeSchedule[6][3].TimeSection=00:00:00-00:00:00
table.AccessControl[0].UnlockHoldInterval=3000
Exemplos
import requests
device_ip = '192.168.3.87'
username = 'admin'
password = 'acesso1234'
url = "http://{}/cgi-bin/configManager.cgi?action=getConfig&name=AccessControl".format(
str(device_ip),
)
digest_auth = requests.auth.HTTPDigestAuth(username, password)
rval = requests.get(url, auth=digest_auth, stream=True, timeout=20, verify=False)
print(rval.text)