step
Whole number
Sets the time interval between values
0
or blank
Sets the time interval between values to 60 seconds
Example: Exporting values from the last 24 hours with an interval of 2 hours as “yesterday.csv”
(Querx TH)
URL
http://192.168.1.100/tpl/document.cgi?tpl/j/datalogger.tpl
&format=csv
&start=86400
&step=7200
Output
Date/Time;Temperature low;Temperature avg;Temperature high;Humidity
low;Humidity avg;Humidity high
13.04.2016 18:00:00;23.6;23.9;24.0;31;32;32
13.04.2016 20:00:00;24.1;24.2;24.2;32;32;32
13.04.2016 22:00:00;24.2;24.2;24.3;32;33;33
14.04.2016 00:00:00;24.2;24.2;24.3;33;33;33
14.04.2016 02:00:00;24.2;24.2;24.3;33;33;33
14.04.2016 04:00:00;24.2;24.2;24.3;33;33;33
14.04.2016 06:00:00;24.1;24.2;24.2;33;33;33
14.04.2016 08:00:00;23.8;24.1;24.2;33;33;34
14.04.2016 10:00:00;23.7;23.8;23.9;32;33;33
14.04.2016 12:00:00;24.1;24.2;24.3;31;32;33
14.04.2016 14:00:00;24.2;24.4;24.7;30;30;31
Example: Exporting the values from the 5
th
of April 2016 with an interval of one hour in the XML
format (Querx PT)
URL
http://192.168.1.100/tpl/document.cgi?tpl/j/datalogger.tpl
&format=xml
&start=1459854000
&end=1459864800
&step=3600
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>querxwlan</hostname>
<ip>
192.168.1.100
</ip>
<port>80</port>
<date_gmt>Tue, 26 Apr 2016 10:48:41</date_gmt>
<date_local>Tue, 26 Apr 2016 11:48:41</date_local>
<contact></contact>
<location></location>
<sensors>
<sensor id="sensor_1" name="Temperature" unit="°C"></sensor>
</sensors>
<data>
<record timestamp="1459857600" date="05.04.2016" time="13:00:00">
<entry sensorid="sensor_1" name="minimum" value="25.3"/>
<entry sensorid="sensor_1" name="average" value="25.4"/>
<entry sensorid="sensor_1" name="maximum" value="25.5"/>
</record>
<record timestamp="1459861200" date="05.04.2016" time="14:00:00">
<entry sensorid="sensor_1" name="minimum" value="25.3"/>
<entry sensorid="sensor_1" name="average" value="25.4"/>
Data Access
71