Definir Antipassback
Por meio da chamada abaixo é possível definir o Antipassback do dispositivo.
Requisição - GET
http://192.168.1.201/cgi-bin/configManager.cgi?action=setConfig&OpenDoorRoute[0].DoorList[0].Doors[0].ReaderID=1&OpenDoorRoute[0].DoorList[0].ResetTime=0&OpenDoorRoute[0].DoorList[1].Doors[0].ReaderID=2&OpenDoorRoute[0].DoorList[1].ResetTime=0&OpenDoorRoute[0].ResetTime=0&OpenDoorRoute[0].TimeSections=0
param | type | description |
---|---|---|
setConfig * | String | Comando de configuração |
ReaderID * | String | ID do leitor |
TimeSections | String | Zona de tempo |
ResetTime | String | Tempo de reset, máximo: 1420 segundos |
Exemplo de Retorno - text/plain
OK
Exemplos
import requests
device_ip = '192.168.1.201'
username = 'admin'
password = 'acesso1234'
url = "http://{}/cgi-bin/configManager.cgi?action=setConfig&OpenDoorRoute[0].DoorList[0].Doors[0].ReaderID=1&OpenDoorRoute[0].DoorList[0].ResetTime=0&OpenDoorRoute[0].DoorList[1].Doors[0].ReaderID=2&OpenDoorRoute[0].DoorList[1].ResetTime=0&OpenDoorRoute[0].ResetTime=0&OpenDoorRoute[0].TimeSections=0".format(
str(device_ip),
)
digest_auth = requests.auth.HTTPDigestAuth(username, password)
rval = requests.get(url, auth=requests.auth.HTTPDigestAuth(username, password), stream=True, timeout=60, verify=False)
print(rval.text)