Processing and webservice scripts for the Seih project.
The API consists of a range of webservices described below.
Returns data from the large passiv data set. It requires the following parameters
- startTimestamp (integer) Start of the period to return data from
- endTimestamp (integer) End of the period to return data from
- homeId (integer) The homeId to select data for [Value is retrieved from session, but can be overriden if you IP is in the accesslist]
- sensorNames (commalist) List of sensornames to return data for.
- numberOfPoints (integer) The number of points returned. If set, the data will be mapped to an equidistant array of this length. The dataset will be linearly interpolated to evaluate it in the grid points. If not set, the original full dataset is returned
Depending on the number of Points and the period, the webservice will either return data from the full dataset, or from pre-computed hourly og daily averages.
Ex:
Return average values for a sensor in a home over a given time-period in a certain hours of the day.
- startHour (integer) First hour to get data from
- endHour (integer) Last hour to get data from
- startTimestamp (integer) Start of the period to return data from
- endTimestamp (integer) End of the period to return data from
- homeId (integer) The homeId to select data for [Value is retrieved from session, but can be overriden if you IP is in the accesslist]
- sensorNames (commalist) List of sensornames to return data for.
- numberOfPoints (integer) The number of points returned. If set, the data will be mapped to an equidistant array of this length. The dataset will be linearly interpolated to evaluate it in the grid points. If not set, the original full dataset is returned
Ex:
Return data from the DMI data collection
- startTimestamp (integer) Start of the period to return data from
- endTimestamp (integer) End of the period to return data from
- stationId (integer) The station to select data for
- metricNames (commalist) List of metrics to return.
- numberOfPoints (integer) The number of points returned. If set, the data will be mapped to an equidistant array of this length. The dataset will be linearly interpolated to evaluate it in the grid points. If not set, the original full dataset is returned
Ex:
Return fjernvarme data
- startTimestamp (integer) Start of the period to return data from
- endTimestamp (integer) End of the period to return data from
- homeId (integer) The station to select data for [Value is retrieved from session, but can be overriden if you IP is in the accesslist]
- metricNames (commalist) List of metrics to return. Valid metrcs: "kWh", "m3", "m3xC_frem", "m3xC_tilbage"
- numberOfPoints (integer) The number of points returned. If set, the data will be mapped to an equidistant array of this length. The dataset will be linearly interpolated to evaluate it in the grid points. If not set, the original full dataset is returned
Ex:
Return data from the Naturgas fyn collection
- startTimestamp (integer) Start of the period to return data from
- endTimestamp (integer) End of the period to return data from
- ngf_home (integer) The station to select data for [Value is retrieved from session, but can be overriden if you IP is in the accesslist]
- numberOfPoints (integer) The number of points returned. If set, the data will be mapped to an equidistant array of this length. The dataset will be linearly interpolated to evaluate it in the grid points. If not set, the original full dataset is returned
Ex:
- Caching of data (memcache)
- Determine if getAverages can be found from MongoData with no aggregation