eDrive will respond to HTTP Web Service requests that are sent to it for processing, provided they meet the meet the format and content described here. The requests also need to conform to the Port and Authentication properties described in the Setting Operating Parameters section of this document.
General Web Service Request Structure:
<eDrive URL>/<service><.extension>?<options> where:
<service> : - see List of Available Services, below
<.extension>: [.xml, .json, (none)] - response format, xml is default
<options>: - vary with service requested
Note! : Web Service requests are case-sensitive.
With this family of web services you can easily:
Request a list of all Point values in eDrive
Request a list of Point values for a single Device
Request the stored values of any Points that have History recording enabled
List of Available Services (Examples shown assume that eDrive is on PC at IP Address 192.168.100.2 and Port 8082)
points
Returns list of all eDrive points grouped by device
If points have a '/' in their name, this will form a directory structure that is
reflected in the results as additional sub-groupings.
!-- Point Services Options:
structure=[flat | table | tree] - options for format of response, default=tree
properties=<property name(s)> - comma separated list
Example: http://192.168.100.2:8082/points
Response (XML):
<root>
<Main_Electric_Meter name="Main Electric Meter">
<Line_to_LineVoltage>213.65</Line_to_LineVoltage>
<Total_Bldg_Power_kW>16821</Total_Bldg_Power_kW>
</Main_Electric_Meter>
<Sub_Meter_P1 name="Sub Meter P1">
<Line_to_LineVoltage>212.91</Line_to_LineVoltage>
<Total_Meter_Power_kW>845.2</Total_Meter_Power_kW>
</Sub_Meter_P1>
</root>
points/<path>
Returns list of all eDrive points in the specified path. The path may specify a device, or an individual point.
!-- Point Services Options:
structure=[flat | table | tree] - options for format of response, default=tree
properties=<property name(s)> - comma separated list
Example: http://192.168.100.2:8082/points/Main Electric Meter.json
Response (JSON):
{
"Line_to_LineVoltage":"214.7",
"Total_Bldg_Power_kW":"14981"
}
Returns value of specified point property. The path must specify exactly one point.
!-- Point Services Options: structure=[flat | table | tree] - options for format of response, default=tree properties=<property name(s)> - comma separated list
Example: http://192.168.100.2:8082/points/Main Electric Meter/Total_Bldg_Power_kW/reliable.xml
Response (XML):
<root type="boolean">true</root>
points/<path>/history
Returns history of the specified point. The path must specifiy exactly one point.
!-- Point History Services Options:
structure=[table | objects] - options for format of response
start=<timestamp> - begin time - format: yyyy-mm-ddThh:mm:ss:SSS-0400 (where -0400 is the timezone offset)
end=<timestamp> - end time