API EXCLUSIVA PARA CONTROLADORA CT 3000
Obtendo Registros de Eventos
Eventos de Alarme

Obter Registros de Alarmes

Por meio da chamada abaixo é possível obter o registro de Alarmes registrados no dispositivo.

Requisição - GET

http://192.168.1.201/cgi-bin/recordFinder.cgi?action=find&name=AccessControlAlarmRecord&offset=0&count=50

paramtypedescription
AccessControlAlarmRecord *StringComando para obter Histórico de Alarmes
offsetNumberResultados iniciarão após essa quantidade de registros
countTimestampQuantidade de registros listados. Limite de 50

Exemplo de Retorno - text/plain

found=5
records[0].DevAddrs=0
records[0].EventCode=ChassisIntruded
records[0].IndexNum=0
records[0].Method=
records[0].RecNo=1
records[0].Time=2021-08-23 17:15:43
records[0].UserID=
records[1].DevAddrs=0
records[1].EventCode=ChassisIntruded
records[1].IndexNum=0
records[1].Method=
records[1].RecNo=2
records[1].Time=2021-08-23 17:44:49
records[1].UserID=
records[2].DevAddrs=0
records[2].EventCode=ChassisIntruded
records[2].IndexNum=0
records[2].Method=
records[2].RecNo=3
records[2].Time=2021-08-23 18:22:07
records[2].UserID=
records[3].DevAddrs=0
records[3].EventCode=ChassisIntruded
records[3].IndexNum=0
records[3].Method=
records[3].RecNo=4
records[3].Time=2021-08-24 10:14:55
records[3].UserID=
records[4].DevAddrs=0
records[4].EventCode=Duress
records[4].IndexNum=0
records[4].Method=
records[4].RecNo=5
records[4].Time=2021-08-24 11:12:28
records[4].UserID=1

Exemplos

import requests
 
device_ip = '192.168.3.87'
username = 'admin'
password = 'intelbras'
 
off_set = '0'
count = '10'
 
url = "http://{}/cgi-bin/recordFinder.cgi?action=find&name=AccessControlAlarmRecord&&offset={}&count={}".format(
                                    str(device_ip),
                                    str(off_set),
                                    str(count),
                                )
digest_auth = requests.auth.HTTPDigestAuth(username, password)
rval = requests.get(url, auth=digest_auth, timeout=20, verify=False)
 
print(rval.text)