Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

Интерфейс An interface of URL-encoded команд в устройстве может быть использован для интеграции с web-приложениями без использования протокола SNMP. Через интерфейс URL-encoded команд доступно управление датчиками дыма 1-Wire.

...

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 1-Wire smoke sensors.

Relay Status Request

Info
iconfalse

http://192.168.0.100/smoke.cgi?sN

гдеwhere

N  номер датчика дыма

Возвращаемые значения

Ошибка в запросе (неправильный формат, неправильный номер датчика is a number of a smoke sensor

Returned Values

Request error (incorrect format, incorrect number of a sensor):

Info
iconfalse

relay_result('error');

Успешное выполнение командыSuccessful completion of a command:

Info
iconfalse

smoke_result('ok', 1, 'НормаNormal');

smoke_result('ok', 1, 'OK');

гдеwhere:

Первый аргумент The first argument is 'ok',

Второй - статус цифрой, третий - статус текстомthe second argument is a numeric status, the third one is a text status:

0 - НормаNormal

1 - ТревогаAlert

4 -  Питание петли выключено Loop power is switched off

5 - Отказ датчика, либо датчик отсутствует на Sensor failure or there is no sensor at a 1-Wire шине 

Управление питанием петли

Включение, выключение, кратковременное выключение напряжения, подаваемого на токовую петлю, для питания внешнего пожарного извещателя. Снятие напряжения используется для сброса сработавшего извещателя в исходное состояниеbus 

Managing Loop Power Supply

Switching on, switching off, short-term switching off a voltage, supplied to a currrent loop, for powering external fire alarm. Voltage drop is used to reset a trigerred alarm into initial status:

Info
iconfalse

/smoke.cgi?sN&on

/smoke.cgi?sN&off

/smoke.cgi?sN&reset

гдеwhere:

N  номер датчика дыма

Возвращаемые значения

Ошибка (неправильный формат запроса или неправильный номер реле is a smoke sensor number

Returned Values

Error (incorrect request format or incorrect relay number):

Info
iconfalse

relay_result('error');

Успешное выполнение командыSuccessful completion of a command:

Info
iconfalse

relay_result('ok');