API EXCLUSIVA PARA CONTROLADORA CT 3000
Configurações de Porta
Obter Configurações de Porta

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[0]

paramtypedescription
AccessControl[0] *StringSeleciona a porta que se deseja opter configuração sendo index AccessControl[0] para porta 1, AccessControl[1] para porta 2, AccessControl[2] para porta 3 e AccessControl[3] para porta 4.

Exemplo de Retorno - text/plain

table.AccessControl[0].Name=
table.AccessControl[0].ABLockRoute=
table.AccessControl[0].AccessControlUDP.Address=
table.AccessControl[0].AccessControlUDP.Port=
table.AccessControl[0].AccessProtocol=
table.AccessControl[0].CloseDuration=
table.AccessControl[0].EnableMode=
table.AccessControl[0].EntranceLockChannel=
table.AccessControl[0].LocalControlEnable=
table.AccessControl[0].Mode=
table.AccessControl[0].ProtocolType=
table.AccessControl[0].ReadCardState=
table.AccessControl[0].RemoteControlEnable=
table.AccessControl[0].SN=
table.AccessControl[0].SensorDetect.DetectSensitivity=
table.AccessControl[0].SensorDetect.HumanStatusSensitivity=
table.AccessControl[0].SensorDetect.SensorDelay=
table.AccessControl[0].SnapUploadPos=
table.AccessControl[0].SnapshotEnable=
table.AccessControl[0].SnapshotUpload=
table.AccessControl[0].UnlockReloadInterval=
table.AccessControl[0].State=Normal
table.AccessControl[0].Method=7
table.AccessControl[0].OpenAlwaysTime=255
table.AccessControl[0].CloseAlwaysTime=255
table.AccessControl[0].HolidayTime=255
table.AccessControl[0].UnlockHoldInterval=3000
table.AccessControl[0].CloseTimeout=10
table.AccessControl[0].DoorNotClosedReaderAlarmTime=0
table.AccessControl[0].DoorNotClosedAlarmEnable=true
table.AccessControl[0].BreakInAlarmEnable=false
table.AccessControl[0].RepeatEnterAlarm=false
table.AccessControl[0].DuressAlarmEnable=true
table.AccessControl[0].SensorEnable=false
table.AccessControl[0].LockTongueEnable=false
table.AccessControl[0].CloseCheckSensor=false
table.AccessControl[0].CustomPasswordEnable=true
table.AccessControl[0].MaliciousAccessControlEnable=false
table.AccessControl[0].FakeLockedAlarmEnable=false
table.AccessControl[0].RepeatEnterTime=0
table.AccessControl[0].CardNoConvert=0
table.AccessControl[0].RemoteCheck=false
table.AccessControl[0].AutoRemoteCheck.Enable=false
table.AccessControl[0].AutoRemoteCheck.Time=255
table.AccessControl[0].RemoteDetail.TimeOut=15
table.AccessControl[0].RemoteDetail.TimeOutDoorStatus=2
table.AccessControl[0].FirstEnter.Enable=false
table.AccessControl[0].FirstEnter.Status=Normal
table.AccessControl[0].FirstEnter.Time=255
table.AccessControl[0].TimeSchedule[0][0].Method=7
table.AccessControl[0].TimeSchedule[0][0].TimeSection=00:00:00-23:59:59
table.AccessControl[0].TimeSchedule[0][1].Method=7
table.AccessControl[0].TimeSchedule[0][1].TimeSection=00:00:00-00:00:00
table.AccessControl[0].TimeSchedule[0][2].Method=7
table.AccessControl[0].TimeSchedule[0][2].TimeSection=00:00:00-00:00:00
table.AccessControl[0].TimeSchedule[0][3].Method=7
table.AccessControl[0].TimeSchedule[0][3].TimeSection=00:00:00-00:00:00
table.AccessControl[0].TimeSchedule[1][0].Method=7
table.AccessControl[0].TimeSchedule[1][0].TimeSection=00:00:00-23:59:59
table.AccessControl[0].TimeSchedule[1][1].Method=7
table.AccessControl[0].TimeSchedule[1][1].TimeSection=00:00:00-00:00:00
table.AccessControl[0].TimeSchedule[1][2].Method=7
table.AccessControl[0].TimeSchedule[1][2].TimeSection=00:00:00-00:00:00
table.AccessControl[0].TimeSchedule[1][3].Method=7
table.AccessControl[0].TimeSchedule[1][3].TimeSection=00:00:00-00:00:00
table.AccessControl[0].TimeSchedule[2][0].Method=7
table.AccessControl[0].TimeSchedule[2][0].TimeSection=00:00:00-23:59:59
table.AccessControl[0].TimeSchedule[2][1].Method=7
table.AccessControl[0].TimeSchedule[2][1].TimeSection=00:00:00-00:00:00
table.AccessControl[0].TimeSchedule[2][2].Method=7
table.AccessControl[0].TimeSchedule[2][2].TimeSection=00:00:00-00:00:00
table.AccessControl[0].TimeSchedule[2][3].Method=7
table.AccessControl[0].TimeSchedule[2][3].TimeSection=00:00:00-00:00:00
table.AccessControl[0].TimeSchedule[3][0].Method=7
table.AccessControl[0].TimeSchedule[3][0].TimeSection=00:00:00-23:59:59
table.AccessControl[0].TimeSchedule[3][1].Method=7
table.AccessControl[0].TimeSchedule[3][1].TimeSection=00:00:00-00:00:00
table.AccessControl[0].TimeSchedule[3][2].Method=7
table.AccessControl[0].TimeSchedule[3][2].TimeSection=00:00:00-00:00:00
table.AccessControl[0].TimeSchedule[3][3].Method=7
table.AccessControl[0].TimeSchedule[3][3].TimeSection=00:00:00-00:00:00
table.AccessControl[0].TimeSchedule[4][0].Method=7
table.AccessControl[0].TimeSchedule[4][0].TimeSection=00:00:00-23:59:59
table.AccessControl[0].TimeSchedule[4][1].Method=7
table.AccessControl[0].TimeSchedule[4][1].TimeSection=00:00:00-00:00:00
table.AccessControl[0].TimeSchedule[4][2].Method=7
table.AccessControl[0].TimeSchedule[4][2].TimeSection=00:00:00-00:00:00
table.AccessControl[0].TimeSchedule[4][3].Method=7
table.AccessControl[0].TimeSchedule[4][3].TimeSection=00:00:00-00:00:00
table.AccessControl[0].TimeSchedule[5][0].Method=7
table.AccessControl[0].TimeSchedule[5][0].TimeSection=00:00:00-23:59:59
table.AccessControl[0].TimeSchedule[5][1].Method=7
table.AccessControl[0].TimeSchedule[5][1].TimeSection=00:00:00-00:00:00
table.AccessControl[0].TimeSchedule[5][2].Method=7
table.AccessControl[0].TimeSchedule[5][2].TimeSection=00:00:00-00:00:00
table.AccessControl[0].TimeSchedule[5][3].Method=7
table.AccessControl[0].TimeSchedule[5][3].TimeSection=00:00:00-00:00:00
table.AccessControl[0].TimeSchedule[6][0].Method=7
table.AccessControl[0].TimeSchedule[6][0].TimeSection=00:00:00-23:59:59
table.AccessControl[0].TimeSchedule[6][1].Method=7
table.AccessControl[0].TimeSchedule[6][1].TimeSection=00:00:00-00:00:00
table.AccessControl[0].TimeSchedule[6][2].Method=7
table.AccessControl[0].TimeSchedule[6][2].TimeSection=00:00:00-00:00:00
table.AccessControl[0].TimeSchedule[6][3].Method=7
table.AccessControl[0].TimeSchedule[6][3].TimeSection=00:00:00-00:00:00

Exemplos

import requests
 
device_ip = '192.168.3.87'
username = 'admin'
password = 'intelbras'
 
url = "http://{}/cgi-bin/configManager.cgi?action=getConfig&name=AccessControl[0]".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)