Chapter 10 XML interface
10.3.1.1.5.1 Example
The following example provides the first data record of a myDatalog4 type site that is called "Site1".
https://server-URL:8080/mydatalog4id[name='Site1']/mydatalog4data[0]
?user=u1&password=p1
Result:
<Result>
<measurement_values id="F10001C000000000" stamp="9.4.2013 09:30:00">
<tag>00002700</tag>
<context title="Site">A19D60AC2883F9B3</context>
<ch1 title="Channel 1" units="%">10</ch1>
<ch2 title="Channel 2" units="%">20</ch2>
<ch3 title="Channel 3" units="%">11</ch3>
<ch4 title="Channel 4" units="%">80</ch4>
<calc60 title="Calculation channel 1" units="%" calc="1"/>
<calc61 title="Calculation channel 2" units="%" calc="1"/>
<calc62 title="Calculation channel 3" units="%" calc="1"/>
<calc63 title="Calculation channel 4" units="%" calc="1"/>
<calc64 title="Calculation channel 5" units="%" calc="1"/>
<volt title="Battery" units="%">62</volt>
<gsm title="GSM level" units="dBm">-63</gsm>
<temp title="Int. temp" units="K">298,8</temp>
</measurement_values>
</Result>
Explanation:
mydatalog4id
Specifies that the data of a myDatalog4 type site should be queried
[name='Site1']
Specifies that the name of the site, that has to be queried, is "Site1".
mydatalog4data
Specifies that the data from the measurement data table should be queried.
[0]
Specifies that the first data record (with the oldest time stamp) should be queried.
The following example supplies the last data record of a myDatalog4 type site that is connected to
the device with serial number "010146AF251D0BA9".
https://server-URL:8080/geraetid[devsn='010146AF251D0BA9']/
mydatalog4id/mydatalog4data[last()-1]?user=u1&password=p1
Rev. 01
99