Returns the energy data for the requested building.

Example Request

$ curl -i https://app.verdigris.co/api/v1/buildings/166/energy -H "Authorization: Token token=<access_token>"

Examples

// keys are unix epoch timestamps in string format, values are Watt-hours
{
  "1411430400": 906.5999999999999,
  "1411516800": 993.7999999999998,
  "1411603200": 980.1999999999998
}

Params

Param name Description
building_id
required

building id


Value:

Must be String

end_time
optional

End time in unix timestamp


Value:

Must be String

interval
optional

Time granularity in minutes (default: 1440)


Value:

Must be String

limit
optional

Number of results (default: 30, max: 300)


Value:

Must be String

start_time
optional

Start time in unix timestamp (default: 0)


Value:

Must be String