6 The HTTP Interface
The data logged by egnite Querx and the current
measurements can be accessed via the HTTP interface.
This lets you integrate the data into existing systems or
create your own solutions.
6.1 Exporting Current Values
URL
http://<IP>/tpl/document.cgi?tpl/j/current.tpl
URL-parameters:
format
xml
Returns the current values in the XML format.
json
Returns the current values in the JSON format.
fname
Filename
Sets the returned file’s name.
Example: Exporting current values in the XML format (Querx PT)
URL
http://192.168.1.100/tpl/document.cgi?
tpl/j/current.tpl&format=xml
Output
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE querx PUBLIC "-//egnite//DTD Querx 1.0//EN"
"http://www.egnite.de/dtds/querx.dtd">
<querx version="1.0">
<hostname>querx011f30</hostname>
<ip>
192.168.1.100
</ip>
<port>80</port>
<date_gmt>Tue, 26 Apr 2016 12:55:48</date_gmt>
<date_local>Tue, 26 Apr 2016 13:55:48</date_local>
<contact></contact>
<location></location>
<sensors>
<sensor id="sensor_1"
name="Temperature"
unit="°C"
status="0"
uplim="85.0"
lolim="-40.0"/>
57
Содержание EGN600114
Страница 96: ...93...
Страница 107: ...104...
Страница 124: ...12 1 6 2 THP Models Temperature Sensor Measuring range Typical Unit Accuracy 25 0 5 C 0 65 1 0 C 121...