Get energy data.
deviceMotion/slcID of customer
GET
-
You may restrict result by a comme delimited list of slcIDs of devices. No comma at the beginning or end of this list.
device=1578,1579
You may restrict the number of records each device will return. You will always get the newest records first. Default limit is 10'000.
limit=100
You may restrict the recordset by start time and/oder end time. Timeconstraints are local time.
from=2017-11-25T08:00:35 to=2017-11-25T15:00:35
Entity | Type | Nullable | Description |
---|---|---|---|
deviceMotion | array (mainEntity) | no |
Entity | Type | Nullable | Description |
---|---|---|---|
device_id | int | no | slcID of device |
motion_counter | int | no | motion counter |
sample_time | datetime | no | date of sample |
<?xml version="1.0" encoding="UTF-8" ?> <slControl> <deviceMotion> <device_id>354</device_id> <motion_counter>150</motion_counter> <sample_time>2018-05-01 00:00:00</sample_time> </deviceMotion> <deviceMotion> <device_id>354</device_id> <motion_counter>120</motion_counter> <sample_time>2018-04-02 00:00:00</sample_time> </deviceMotion> </slControl>
{ "deviceMotion": [{ "device_id": "354", "motion_counter": "150", "sample_time": "2018-05-01 00:00:00" }, { "device_id": "354", "motion_counter": "120", "sample_time": "2018-04-02 00:00:00" }] }