[DKSF 48.2 IU] Manage device with url-encoded commands

A device's interface of URL-encoded commands can be used to integrate a device into web-applications without using an SNMP protocol.

The following operations are available over a URL-encoded commands interface:

IO Lines Management in an Output Mode

http://192.168.0.100/io.cgi?ion=s

n             an IO line number, starting  from 1

s              a logic level of an output, 0 or 1

CGI returns a text ok or error depending on a result. A high level of an IO line is set in a corresponding status. If an operation mode of an IO line is programmed via a web interface as an output, then a logic level will appear in a contact.

Requesting a Level of an IO Line in an Input Mode

http://192.168.0.100/io.cgi?ion

n             an IO line number, starting  from 1

CGI returns a text 0 or 1 depending on a logic level of an IO line (after filtering out short term inferences). If a line is not set into an "Input" mode via web interface, then a request result (or 0 or 1) cannot be determined.

 

 

Temperature Issue

http://192.168.0.100/termo_data.cgi

CGI returns text in a JSON format:

[{name:"",bottom:10,top:60,trap_delay:0,trap_low:0,trap_norm:0,trap_high:0,double_hyst:2,tval:0,status:'failure'},{name:"",bottom:10,top:60,trap_delay:0,trap_low:0,trap_norm:0,trap_high:0,double_hyst:2,tval:0,status:'failure'},{name:"",bottom:10,top:60,trap_delay:0,trap_low:0,trap_norm:0,trap_high:0,double_hyst:2,tval:0,status:'failure'},{name:"",bottom:10,top:60,trap_delay:0,trap_low:0,trap_norm:0,trap_high:0,double_hyst:2,tval:0,status:'failure'},{name:"",bottom:10,top:60,trap_delay:0,trap_low:0,trap_norm:0,trap_high:0,double_hyst:2,tval:0,status:'failure'},{name:"",bottom:10,top:60,trap_delay:0,trap_low:0,trap_norm:0,trap_high:0,double_hyst:2,tval:0,status:'failure'},{name:"",bottom:10,top:60,trap_delay:0,trap_low:0,trap_norm:0,trap_high:0,double_hyst:2,tval:0,status:'failure'},{name:"",bottom:10,top:60,trap_delay:0,trap_low:0,trap_norm:0,trap_high:0,double_hyst:2,tval:0,status:'failure'}]

                    An array [ … ] contains 8 identically structured elements { … }, one for each of 8 temperature sensors. For a corresponding temperature sensor, a temperature value in degrees of Celsius is in a field tval. There is a need to take into consideration that NetPing temperature sensors are numerated starting from 1, at the same time an array index in JSON (as well as in JavaScript) starts from 0.