[ENG] 17.7. [DKSF 70/71.6 IU] Managing Humidity Sensors

The interface of URL-encoded commands in a device can be used for the integration with web applications without using the SNMP protocol. It is possible to manage humidity sensors through the interface of URL-encoded commands.

Relative Humidity Status Request

http://192.168.0.100/relhum.cgi?hN

where: 

N  is a number of a humidity sensor

Returned Values

Successful execution of a command:

relhum_result('ok', 55, 2)

where:

The first argument is always 'ok'

The second argument is a relative humidity, %

The third argument: sensor status:

 a sensor is not connected or failed

 a humidity is below normal

 a humidity is normal

 a humidity is above normal

Temperature Status Request

http://192.168.0.100/relhum.cgi?tN

where: 

N  is a humidity sensor number

Returned Values

Successful execution of a command:

relhum_result('ok', 25, 2)

where:

The first argument is always 'ok'

The second argument is temperature, °C

The third argument is a sensor status:

 a sensor is not connected or failed

 a temperature is below normal

 a temperature is normal

 a temperature is above normal

Authorization

To add a login and password to the structure of a URL-encoded command, it is possible to use the next scheme:

  • http://<username>:<password>@<host>:<port>/<URL‐path>?<parameters>

where:

<username>:<password> – are credentials for authorization in a device web interface;

<host>  is an IP address of a device;

<port>  is a port of an HTTP server;

<URL‐path>?<parameters>  is a URL-encoded command