Waziup / api-server

3 stars 6 forks source link

SensingDevice, QuantityKinds and Units #36

Closed cdupont closed 6 years ago

cdupont commented 6 years ago

Changing the definition of a Measurement slightly to match Fiesta IoT ontology. Before:

Measurement: {
  id : ID of the measurement
  name : name of the measurement
  last_value : Timetime of the measurement
  timestamp : time of the last measurement
  dimension : physical dimension of the measurement
  unit : unit of the measurement
  sensor_kind :kind of sensor providing the measurement
}

After:

Measurement: {
  id : ID of the measurement
  name : name of the measurement
  last_value : Timetime of the measurement
  timestamp : time of the last measurement
  sensing_device : sensing platform used for the measurement, from https://github.com/Waziup/waziup-js/blob/master/src/model/SensingDevices.js
  quantity_kind : quantity measured, from https://github.com/Waziup/waziup-js/blob/master/src/model/QuantityKinds.js
  unit : unit of the measurement, from https://github.com/Waziup/waziup-js/blob/master/src/model/Units.js
}
cdupont commented 6 years ago

@henokzion could you check if your tests are aligned?

henokzion commented 6 years ago

I will get on it

cdupont commented 6 years ago

Done: https://github.com/Waziup/api-server/commit/e810d94f656c777a1bee747c8bec59806a3aa49b