WattDepot logo WattDepot3 HTTP API: Overview

WattDepot3

The WattDepot3 HTTP API accepts measurements about the physical world.

In WattDepot3's model there are:

  • Sensors - Sensors represent the device that measures the physical universe. Sensors have:
    • URIs - A Internet address where sensor processes can access their measurements. (Note: Sensor processes are not modeled by WattDepot3.)
    • Locations - The location on the earth of the sensor (e.g. Latitude, Longitude, Altitude, Description).
    • Models A description of the type of sensor, the protocol and version it is using.
    • List of Properties - A potentially empty list of properties that describe the individual sensor.
  • Sensor Groups - Are groups of sensors. WattDepot uses these groups for aggregation. We can group all the energy sensors in a building into a single group.
  • Collector Metadata Collectors are processes that contact a Sensor and produce measurements. Collector Metadata is a representation of how often to poll a Sensor and which WattDepository to store the Measurements in. Collectors should use the Collector Metadata to control their activities.
  • WattDepositories - Are responsible for storing the measurements made by the Sensors. They have an associated measurement type.
  • Measurements - Are made by Sensors and consist of the sensor that made the measurement, the time the measurement was made, the value of the measurement and the measurement type.
  • Measured Values - Are values often interpolated from sensor measurements. There are two primary Measured Values, point values and difference values.
    1. Point values are calculated at a single point in time. If the time corresponds to a measurement then WattDepot returns the measurement's value. If the time is between two measurements WattDepot calculates the linear interpolated value and returns it.
    2. For Difference values WattDepot get the value for the start and end points then subtracts the start value from the end value and returns the result.

The individual pages to the left describe the HTTP API for Creating, Reading, Updating, and Deleting these entities.

GET

POST

DEL