Parameters
Field | Type | Ddescription |
---|
site_id | string | Unique id of site |
start_time | integer | Start time for report (Unix Epoch format) |
end_time | integer | End time for report (Unix Epoch format) |
interval_type | integer | See interval_type above |
interval | string,optional | 15min , hour , or day (defaults to 15min if not specified) |
include_minute | boolean,optional | Annotate each record with the interval start minute-of-hour (0-59) |
include_hour | boolean,optional | Annotate each record with the interval start hour-of-day (0-23) |
include_dow | boolean,optional | Annotate each record with the interval start day-of-week (0-6) |
include_all_on | boolean,optional | Include all_on_wh value (default false) |
full_occ_data | boolean,optional | Include active, inactive and sensor time in occupancy (interval_type = 5) replies (default false)
|
Example Call (Energy Usage)
Return the daily (interval=day) energy usage (interval_type=1) for Office Site (site_id=486P8TBZpNE) from 18 June 2018 (start_time=1560830400) through 21 June 2018 (end_time=1561435200). Both times are aligned with local midnight.
Example Response (Energy Usage)

Note: sum_data is the energy usage in Watt-hours for each interval. The fact_count and updated_at fields can be ignored, they are used internally.
{
"data": [
{
"fact_count": 0,
"interval_start": 1560830400,
"interval_type": 1,
"sum_data": 4648.345231999996,
"updated_at": "0001-01-01T00:00:00Z"
},
{
"fact_count": 0,
"interval_start": 1560916800,
"interval_type": 1,
"sum_data": 7267.4056759999885,
"updated_at": "0001-01-01T00:00:00Z"
},
{
"fact_count": 0,
"interval_start": 1561003200,
"interval_type": 1,
"sum_data": 5938.892697999994,
"updated_at": "0001-01-01T00:00:00Z"
}
],
"meta": {
"count": 3
}
}
Example Call (Occupancy)
Return the 15 minute (interval=15min) occupancy (interval_type=5) for Office Site (site_id=486P8TBZpNE) from 18 June 2018 9:00am (start_time=1560859200) through 18 June 2018 10:00am (end_time=1560866400). Both times are aligned with local midnight.
Example Response (Occupancy)

Note: sum_data is the site average occupancy for each interval, in the range 0.0 to 1.0. The fact_count and updated_at fields can be ignored, they are used internally.
{
"data": [
{
"fact_count": 6,
"interval_start": 1560859200,
"interval_type": 5,
"sum_data": 0.1751828146654579,
"updated_at": "0001-01-01T00:00:00Z"
},
{
"fact_count": 6,
"interval_start": 1560860100,
"interval_type": 5,
"sum_data": 0.1345009499267987,
"updated_at": "0001-01-01T00:00:00Z"
},
... 4 record omitted ...
{
"fact_count": 6,
"interval_start": 1560864600,
"interval_type": 5,
"sum_data": 0.06800441630002019,
"updated_at": "0001-01-01T00:00:00Z"
},
{
"fact_count": 6,
"interval_start": 1560865500,
"interval_type": 5,
"sum_data": 0.05482882373076407,
"updated_at": "0001-01-01T00:00:00Z"
}
],
"meta": {
"count": 8
}
}