Интерфейс An interface of URL-encoded команд в устройстве может быть использован для интеграции с web-приложениями без использования протокола SNMP. Через интерфейс URL-encoded команд доступно управление датчиками влажности.
...
commands in a device can be used for integration with web applications without using an SNMP protocol. Through the interface of URL-encoded commands, it is possible to manage humidity sensors.
Relative Humidity Status Request
Info | ||
---|---|---|
| ||
http://192.168.0.100/relhum.cgi?hN |
гдеwhere:
N – номер датчика влажности
Возвращаемые значения
Успешное выполнение команды is a number of a humidity sensor
Returned Values
Successful completion of a command:
Info | ||
---|---|---|
| ||
relhum_result('ok', 55, 2) |
гдеwhere:
Первый аргумент: всегда The first argument is: always 'ok'
Второй аргумент: относительная влажностьThe second argument is: relative humidity, %Третий аргумент: статус датчика
The third argument is: sensor status:
0 – датчик не подключен или сбоит a sensor is not connected or fails
1 – влажность ниже нормы a humidity is below normal
2 – влажность в норме a humidity is normal
3 – влажность выше нормы
...
a humidity is above normal
Temperature Status Request
Info | ||
---|---|---|
| ||
http://192.168.0.100/relhum.cgi?tN |
гдеwhere:
N – номер датчика влажности
Возвращаемые значения
Успешное выполнение команды is a humidity sensor number
Returned Values
Successful completion of a command:
Info | ||
---|---|---|
| ||
relhum_result('ok', 25, 2) |
гдеwhere:
Первый аргумент: всегда The first argument is: always 'ok'
Второй аргумент: температураThe second argument is: a temperature, °CТретий аргумент: статус датчика
The third argument is: a status of a sensor:
0 – датчик не подключен или сбоит a sensor is not connected or fails
1 – температура ниже нормы a temperature is below normal
2 – температура в норме a temperature is normal
3 – температура выше нормы a temperature is above normal