Commit 8f46dd08 authored by j.hoerdt's avatar j.hoerdt
Browse files

implement description

parent ebd0f533
......@@ -90,10 +90,16 @@ class Sensor {
"21.T11148/1f3e82ddf0697a497432",
"{\"Manufacturers\":[{\"Manufacturer\":{\"manufacturerName\":\""+ rec.get("manufacturer").asString() +"\"}}]}"
);
add_attribute(body,
"21.T11148/f76ad9d0324302fc47dd",
"\"instrument type string\""
);
if (!rec.get("description").isNull()) {
add_attribute(body,
"21.T11148/55f8ebc805e65b5b71dd",
"\""+ rec.get("description") +"\""
);
}
// add_attribute(body,
// "21.T11148/f76ad9d0324302fc47dd",
// "\"instrument type string\""
// );
......@@ -160,9 +166,9 @@ class Sensor {
" measurement.first_msg = case when date_ > measurement.first_msg then measurement.first_msg else date_ end," +
" measurement.last_msg = case when date_ < measurement.last_msg then measurement.last_msg else date_ end " +
"with s, type.sensor_type as sensor_type, type.manufacturer as manufacturer\n" +
"with s, type.sensor_type as sensor_type, type.manufacturer as manufacturer, type.description as description\n" +
"match (s)--(all_measurements:MeasurementLocation)" +
"return s.pid, id(s), sensor_type, manufacturer, min(all_measurements.first_msg), max(all_measurements.last_msg)"
"return s.pid, id(s), sensor_type, manufacturer, description min(all_measurements.first_msg), max(all_measurements.last_msg)"
).withParameters(properties);
}
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment