4.1 Query Parameters (stored data)
Parameter: Type: Description:
a n/a Requests that the totals and virtual registers calculated from the physical reg-
ister values be included as the first columns in each row. These values are
calculated according to the Totaling and Virtual Register rules configured for the
device.
E n/a Requests that values are output relative to epoch. I.e., the value at ”Date & time
when recording started” will be zero.
b n/a Requests the output be returned in the data backup format.
c n/a Requests the output be returned in CSV (comma-separated value) format.
e n/a Requests the output of one extra data point beyond the requested range. This
is similar, but not identical, to passing a value of N + 1 for parameter n. This
reason the two are not identical is because the data-base granularity may be
coarser than requested. For example, you may be requesting data at one minute
granularity, but if the data-base has only 1-hour granularity available, passing
N + 1 for parameter n has no effect, whereas e will ensure that the hourly data-
point just beyond the last requested data-point is also included in the output.
This parameter has no effect when the T or w parameters are specified. This
parameter was introduced with firmware v1.2.
m n/a Specifies that n and s parameters are specified in units of minutes.
h n/a Specifies that n and s parameters are specified in units of hours.
d n/a Specifies that n and s parameters are specified in units of days.
S n/a Specifies that n and s parameters are specified in units of seconds
C n/a Specifies that the returned data be delta-compressed. That is, after the first row
of data, each subsequent row’s columns are expressed as a difference relative
to the previous row’s column-values. When combined with the CSV (c) param-
eter, the first row is always omitted.
n Integer (U32) Specifies the maximum number of rows to be returned.
s Integer (U32) Specifies the number of rows to skip after outputting a row. For example,
h&s=23 would skip 23 hours worth of data after a row is output, and would
be equivalent to d.
f Integer (U32) Specifies the timestamp of the first row to be returned.
t Integer (U32) Specifies the timestamp of the last row to be returned.
w Integer (U32) Requests that only data newer than the specified timestamp returned. If the
timestamp lies in the future, the query will complete immediately returning an
empty data element whose wait time attribute indicates how many seconds
have to elapse before data younger than the specified timestamp will be avail-
able.
T Integer-list (U32) Specifies a list of timestamps, ordered by decreasing value (younger to older)
for which to return data rows.
Z string Specifies the time-zone to use when exporting CSV data. For the description
of the format of the Z parameter and building a timezone string, please visit
http://egauge.net/support/kb/xmlapi
As of firmware v1.12, it is possible to omit the value for this parameter. In this
case, the device converts time-stamps using the device-local time-zone (speci-
fied through setting “Time Zone” in the “Date & Time” dialog).
4.2 Returned XML Data
A sample output for this query using parameters m&n=3 is shown in Figure 3.
The stored data query returns a single element enclosed by group start and end tags. Just like the data element of the
instantaneous response, the group element may have a serial attribute indicating the configuration serial number.
This configuration serial number has nothing to do with the device hardware serial number, and is not a unique identifier
of the unit.
6