[ENG] 15.6. [DKSF 48.5 IU] Control of the Humidity Sensors

The interface of URL-encoded commands in the device can be used to integrate with web applications without using the SNMP protocol. Via the interface of URL-encoded commands, humidity sensor control is available.

Request about the state

http://192.168.0.100/relhum.cgi

Return values

Successful execution of the command

relhum_result('ok', 55, 25, 2)


where:

The first argument: always 'ok'.

The second argument: relative humidity,%.

The third argument: temperature of the humidity sensor

The forth argument: ths sensor status

0 - the sensor is not connected or fails;

1 - humidity is below the safe range;

2 - humidity is in the safe range;

3 - humidity is above the safe range.

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