Obter Zona de Tempo
Por meio da configuração abaixo é possível obter o status de cada zona de tempo.
ℹ️
Obs: As zonas de tempo já vem pré cadastradas, não é possivel cadastrar novas, somente habilitar, desabilitar e editar
Requisição - GET
http://192.168.1.201/cgi-bin/configManager.cgi?action=getConfig&name=AccessTimeSchedule
param | type | description |
---|---|---|
getConfig * | String | Comando para Obter |
Exemplo de Retorno - text/plain
table.AccessTimeSchedule[0].Enable=false
table.AccessTimeSchedule[0].TimeSchedule[0][0]=1 00:00:00-23:59:59
table.AccessTimeSchedule[0].TimeSchedule[0][1]=1 00:00:00-00:00:00
table.AccessTimeSchedule[0].TimeSchedule[0][2]=1 00:00:00-00:00:00
table.AccessTimeSchedule[0].TimeSchedule[0][3]=1 00:00:00-00:00:00
table.AccessTimeSchedule[0].TimeSchedule[1][0]=1 00:00:00-23:59:59
table.AccessTimeSchedule[0].TimeSchedule[1][1]=1 00:00:00-00:00:00
table.AccessTimeSchedule[0].TimeSchedule[1][2]=1 00:00:00-00:00:00
table.AccessTimeSchedule[0].TimeSchedule[1][3]=1 00:00:00-00:00:00
table.AccessTimeSchedule[0].TimeSchedule[2][0]=1 00:00:00-23:59:59
table.AccessTimeSchedule[0].TimeSchedule[2][1]=1 00:00:00-00:00:00
table.AccessTimeSchedule[0].TimeSchedule[2][2]=1 00:00:00-00:00:00
table.AccessTimeSchedule[0].TimeSchedule[2][3]=1 00:00:00-00:00:00
table.AccessTimeSchedule[0].TimeSchedule[3][0]=1 00:00:00-23:59:59
table.AccessTimeSchedule[0].TimeSchedule[3][1]=1 00:00:00-00:00:00
table.AccessTimeSchedule[0].TimeSchedule[3][2]=1 00:00:00-00:00:00
table.AccessTimeSchedule[0].TimeSchedule[3][3]=1 00:00:00-00:00:00
table.AccessTimeSchedule[0].TimeSchedule[4][0]=1 00:00:00-23:59:59
table.AccessTimeSchedule[0].TimeSchedule[4][1]=1 00:00:00-00:00:00
table.AccessTimeSchedule[0].TimeSchedule[4][2]=1 00:00:00-00:00:00
table.AccessTimeSchedule[0].TimeSchedule[4][3]=1 00:00:00-00:00:00
table.AccessTimeSchedule[0].TimeSchedule[5][0]=1 00:00:00-23:59:59
table.AccessTimeSchedule[0].TimeSchedule[5][1]=1 00:00:00-00:00:00
table.AccessTimeSchedule[0].TimeSchedule[5][2]=1 00:00:00-00:00:00
table.AccessTimeSchedule[0].TimeSchedule[5][3]=1 00:00:00-00:00:00
table.AccessTimeSchedule[0].TimeSchedule[6][0]=1 00:00:00-23:59:59
table.AccessTimeSchedule[0].TimeSchedule[6][1]=1 00:00:00-00:00:00
table.AccessTimeSchedule[0].TimeSchedule[6][2]=1 00:00:00-00:00:00
table.AccessTimeSchedule[0].TimeSchedule[6][3]=1 00:00:00-00:00:00
table.AccessTimeSchedule[1].Enable=false
table.AccessTimeSchedule[1].TimeSchedule[0][0]=1 00:00:00-23:59:59
table.AccessTimeSchedule[1].TimeSchedule[0][1]=1 00:00:00-00:00:00
table.AccessTimeSchedule[1].TimeSchedule[0][2]=1 00:00:00-00:00:00
table.AccessTimeSchedule[1].TimeSchedule[0][3]=1 00:00:00-00:00:00
table.AccessTimeSchedule[1].TimeSchedule[1][0]=1 00:00:00-23:59:59
table.AccessTimeSchedule[1].TimeSchedule[1][1]=1 00:00:00-00:00:00
table.AccessTimeSchedule[1].TimeSchedule[1][2]=1 00:00:00-00:00:00
table.AccessTimeSchedule[1].TimeSchedule[1][3]=1 00:00:00-00:00:00
table.AccessTimeSchedule[1].TimeSchedule[2][0]=1 00:00:00-23:59:59
table.AccessTimeSchedule[1].TimeSchedule[2][1]=1 00:00:00-00:00:00
table.AccessTimeSchedule[1].TimeSchedule[2][2]=1 00:00:00-00:00:00
table.AccessTimeSchedule[1].TimeSchedule[2][3]=1 00:00:00-00:00:00
table.AccessTimeSchedule[1].TimeSchedule[3][0]=1 00:00:00-23:59:59
table.AccessTimeSchedule[1].TimeSchedule[3][1]=1 00:00:00-00:00:00
table.AccessTimeSchedule[1].TimeSchedule[3][2]=1 00:00:00-00:00:00
table.AccessTimeSchedule[1].TimeSchedule[3][3]=1 00:00:00-00:00:00
table.AccessTimeSchedule[1].TimeSchedule[4][0]=1 00:00:00-23:59:59
table.AccessTimeSchedule[1].TimeSchedule[4][1]=1 00:00:00-00:00:00
table.AccessTimeSchedule[1].TimeSchedule[4][2]=1 00:00:00-00:00:00
table.AccessTimeSchedule[1].TimeSchedule[4][3]=1 00:00:00-00:00:00
table.AccessTimeSchedule[1].TimeSchedule[5][0]=1 00:00:00-23:59:59
table.AccessTimeSchedule[1].TimeSchedule[5][1]=1 00:00:00-00:00:00
table.AccessTimeSchedule[1].TimeSchedule[5][2]=1 00:00:00-00:00:00
table.AccessTimeSchedule[1].TimeSchedule[5][3]=1 00:00:00-00:00:00
table.AccessTimeSchedule[1].TimeSchedule[6][0]=1 00:00:00-23:59:59
table.AccessTimeSchedule[1].TimeSchedule[6][1]=1 00:00:00-00:00:00
table.AccessTimeSchedule[1].TimeSchedule[6][2]=1 00:00:00-00:00:00
table.AccessTimeSchedule[1].TimeSchedule[6][3]=1 00:00:00-00:00:00
table.AccessTimeSchedule[2].Enable=false
table.AccessTimeSchedule[2].TimeSchedule[0][0]=1 00:00:00-23:59:59
table.AccessTimeSchedule[2].TimeSchedule[0][1]=1 00:00:00-00:00:00
table.AccessTimeSchedule[2].TimeSchedule[0][2]=1 00:00:00-00:00:00
table.AccessTimeSchedule[2].TimeSchedule[0][3]=1 00:00:00-00:00:00
table.AccessTimeSchedule[2].TimeSchedule[1][0]=1 00:00:00-23:59:59
table.AccessTimeSchedule[2].TimeSchedule[1][1]=1 00:00:00-00:00:00
table.AccessTimeSchedule[2].TimeSchedule[1][2]=1 00:00:00-00:00:00
table.AccessTimeSchedule[2].TimeSchedule[1][3]=1 00:00:00-00:00:00
table.AccessTimeSchedule[2].TimeSchedule[2][0]=1 00:00:00-23:59:59
table.AccessTimeSchedule[2].TimeSchedule[2][1]=1 00:00:00-00:00:00
table.AccessTimeSchedule[2].TimeSchedule[2][2]=1 00:00:00-00:00:00
table.AccessTimeSchedule[2].TimeSchedule[2][3]=1 00:00:00-00:00:00
table.AccessTimeSchedule[2].TimeSchedule[3][0]=1 00:00:00-23:59:59
table.AccessTimeSchedule[2].TimeSchedule[3][1]=1 00:00:00-00:00:00
table.AccessTimeSchedule[2].TimeSchedule[3][2]=1 00:00:00-00:00:00
table.AccessTimeSchedule[2].TimeSchedule[3][3]=1 00:00:00-00:00:00
table.AccessTimeSchedule[2].TimeSchedule[4][0]=1 00:00:00-23:59:59
table.AccessTimeSchedule[2].TimeSchedule[4][1]=1 00:00:00-00:00:00
table.AccessTimeSchedule[2].TimeSchedule[4][2]=1 00:00:00-00:00:00
table.AccessTimeSchedule[2].TimeSchedule[4][3]=1 00:00:00-00:00:00
table.AccessTimeSchedule[2].TimeSchedule[5][0]=1 00:00:00-23:59:59
table.AccessTimeSchedule[2].TimeSchedule[5][1]=1 00:00:00-00:00:00
table.AccessTimeSchedule[2].TimeSchedule[5][2]=1 00:00:00-00:00:00
table.AccessTimeSchedule[2].TimeSchedule[5][3]=1 00:00:00-00:00:00
table.AccessTimeSchedule[2].TimeSchedule[6][0]=1 00:00:00-23:59:59
table.AccessTimeSchedule[2].TimeSchedule[6][1]=1 00:00:00-00:00:00
table.AccessTimeSchedule[2].TimeSchedule[6][2]=1 00:00:00-00:00:00
table.AccessTimeSchedule[2].TimeSchedule[6][3]=1 00:00:00-00:00:00
table.AccessTimeSchedule[3].Enable=false
table.AccessTimeSchedule[3].TimeSchedule[0][0]=1 00:00:00-23:59:59
table.AccessTimeSchedule[3].TimeSchedule[0][1]=1 00:00:00-00:00:00
table.AccessTimeSchedule[3].TimeSchedule[0][2]=1 00:00:00-00:00:00
table.AccessTimeSchedule[3].TimeSchedule[0][3]=1 00:00:00-00:00:00
table.AccessTimeSchedule[3].TimeSchedule[1][0]=1 00:00:00-23:59:59
table.AccessTimeSchedule[3].TimeSchedule[1][1]=1 00:00:00-00:00:00
table.AccessTimeSchedule[3].TimeSchedule[1][2]=1 00:00:00-00:00:00
table.AccessTimeSchedule[3].TimeSchedule[1][3]=1 00:00:00-00:00:00
table.AccessTimeSchedule[3].TimeSchedule[2][0]=1 00:00:00-23:59:59
table.AccessTimeSchedule[3].TimeSchedule[2][1]=1 00:00:00-00:00:00
table.AccessTimeSchedule[3].TimeSchedule[2][2]=1 00:00:00-00:00:00
table.AccessTimeSchedule[3].TimeSchedule[2][3]=1 00:00:00-00:00:00
table.AccessTimeSchedule[3].TimeSchedule[3][0]=1 00:00:00-23:59:59
table.AccessTimeSchedule[3].TimeSchedule[3][1]=1 00:00:00-00:00:00
table.AccessTimeSchedule[3].TimeSchedule[3][2]=1 00:00:00-00:00:00
table.AccessTimeSchedule[3].TimeSchedule[3][3]=1 00:00:00-00:00:00
table.AccessTimeSchedule[3].TimeSchedule[4][0]=1 00:00:00-23:59:59
table.AccessTimeSchedule[3].TimeSchedule[4][1]=1 00:00:00-00:00:00
table.AccessTimeSchedule[3].TimeSchedule[4][2]=1 00:00:00-00:00:00
table.AccessTimeSchedule[3].TimeSchedule[4][3]=1 00:00:00-00:00:00
table.AccessTimeSchedule[3].TimeSchedule[5][0]=1 00:00:00-23:59:59
table.AccessTimeSchedule[3].TimeSchedule[5][1]=1 00:00:00-00:00:00
table.AccessTimeSchedule[3].TimeSchedule[5][2]=1 00:00:00-00:00:00
table.AccessTimeSchedule[3].TimeSchedule[5][3]=1 00:00:00-00:00:00
table.AccessTimeSchedule[3].TimeSchedule[6][0]=1 00:00:00-23:59:59
table.AccessTimeSchedule[3].TimeSchedule[6][1]=1 00:00:00-00:00:00
table.AccessTimeSchedule[3].TimeSchedule[6][2]=1 00:00:00-00:00:00
table.AccessTimeSchedule[3].TimeSchedule[6][3]=1 00:00:00-00:00:00
table.AccessTimeSchedule[4].Enable=false
table.AccessTimeSchedule[4].TimeSchedule[0][0]=1 00:00:00-23:59:59
table.AccessTimeSchedule[4].TimeSchedule[0][1]=1 00:00:00-00:00:00
table.AccessTimeSchedule[4].TimeSchedule[0][2]=1 00:00:00-00:00:00
table.AccessTimeSchedule[4].TimeSchedule[0][3]=1 00:00:00-00:00:00
table.AccessTimeSchedule[4].TimeSchedule[1][0]=1 00:00:00-23:59:59
table.AccessTimeSchedule[4].TimeSchedule[1][1]=1 00:00:00-00:00:00
table.AccessTimeSchedule[4].TimeSchedule[1][2]=1 00:00:00-00:00:00
table.AccessTimeSchedule[4].TimeSchedule[1][3]=1 00:00:00-00:00:00
table.AccessTimeSchedule[4].TimeSchedule[2][0]=1 00:00:00-23:59:59
table.AccessTimeSchedule[4].TimeSchedule[2][1]=1 00:00:00-00:00:00
table.AccessTimeSchedule[4].TimeSchedule[2][2]=1 00:00:00-00:00:00
table.AccessTimeSchedule[4].TimeSchedule[2][3]=1 00:00:00-00:00:00
table.AccessTimeSchedule[4].TimeSchedule[3][0]=1 00:00:00-23:59:59
table.AccessTimeSchedule[4].TimeSchedule[3][1]=1 00:00:00-00:00:00
table.AccessTimeSchedule[4].TimeSchedule[3][2]=1 00:00:00-00:00:00
table.AccessTimeSchedule[4].TimeSchedule[3][3]=1 00:00:00-00:00:00
table.AccessTimeSchedule[4].TimeSchedule[4][0]=1 00:00:00-23:59:59
table.AccessTimeSchedule[4].TimeSchedule[4][1]=1 00:00:00-00:00:00
table.AccessTimeSchedule[4].TimeSchedule[4][2]=1 00:00:00-00:00:00
table.AccessTimeSchedule[4].TimeSchedule[4][3]=1 00:00:00-00:00:00
table.AccessTimeSchedule[4].TimeSchedule[5][0]=1 00:00:00-23:59:59
table.AccessTimeSchedule[4].TimeSchedule[5][1]=1 00:00:00-00:00:00
table.AccessTimeSchedule[4].TimeSchedule[5][2]=1 00:00:00-00:00:00
table.AccessTimeSchedule[4].TimeSchedule[5][3]=1 00:00:00-00:00:00
table.AccessTimeSchedule[4].TimeSchedule[6][0]=1 00:00:00-23:59:59
table.AccessTimeSchedule[4].TimeSchedule[6][1]=1 00:00:00-00:00:00
table.AccessTimeSchedule[4].TimeSchedule[6][2]=1 00:00:00-00:00:00
table.AccessTimeSchedule[4].TimeSchedule[6][3]=1 00:00:00-0
Exemplos
import requests
device_ip = '10.1.35.144'
username = 'admin'
password = 'acesso1234'
url = "http://{}/cgi-bin/configManager.cgi?action=getConfig&name=AccessTimeSchedule".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)