@@ -265,7 +265,7 @@ mongo-db:
265265 hostname: mongo-db
266266 container_name: db-mongo
267267 ports:
268- - " 27017:27017"
268+ - ' 27017:27017'
269269 networks:
270270 - default
271271```
@@ -282,7 +282,7 @@ sth-comet:
282282 networks :
283283 - default
284284 ports :
285- - " 8666:8666"
285+ - ' 8666:8666'
286286 environment :
287287 - STH_HOST=0.0.0.0
288288 - STH_PORT=8666
@@ -1036,7 +1036,7 @@ mongo-db:
10361036 hostname: mongo-db
10371037 container_name: db-mongo
10381038 ports:
1039- - " 27017:27017"
1039+ - ' 27017:27017'
10401040 networks:
10411041 - default
10421042` ` `
@@ -1053,7 +1053,7 @@ sth-comet:
10531053 networks:
10541054 - default
10551055 ports:
1056- - " 8666:8666"
1056+ - ' 8666:8666'
10571057 environment:
10581058 - STH_HOST=0.0.0.0
10591059 - STH_PORT=8666
@@ -1074,15 +1074,15 @@ cygnus:
10741074 networks:
10751075 - default
10761076 expose:
1077- - " 5080"
1077+ - ' 5080'
10781078 ports:
1079- - " 5050:5050"
1080- - " 5080:5080"
1079+ - ' 5050:5050'
1080+ - ' 5080:5080'
10811081 environment:
1082- - " CYGNUS_MONGO_HOSTS=mongo-db:27017"
1083- - " CYGNUS_LOG_LEVEL=DEBUG"
1084- - " CYGNUS_SERVICE_PORT=5050"
1085- - " CYGNUS_API_PORT=5080"
1082+ - ' CYGNUS_MONGO_HOSTS=mongo-db:27017'
1083+ - ' CYGNUS_LOG_LEVEL=DEBUG'
1084+ - ' CYGNUS_SERVICE_PORT=5050'
1085+ - ' CYGNUS_API_PORT=5080'
10861086` ` `
10871087
10881088The `sth-comet` container is listening on one port :
@@ -1311,14 +1311,14 @@ The basic processing consists of two-step - retrieval and attribute mapping, sam
13111311` ` ` javascript
13121312function readCometLampLuminosity(id, aggMethod) {
13131313 return new Promise(function (resolve, reject) {
1314- const url = " http://sth-comet:8666/STH/v1/contextEntities/type/Lamp/id/Lamp:001/attributes/luminosity" ;
1314+ const url = ' http://sth-comet:8666/STH/v1/contextEntities/type/Lamp/id/Lamp:001/attributes/luminosity' ;
13151315 const options = {
1316- method: " GET" ,
1316+ method: ' GET' ,
13171317 url: url,
1318- qs: { aggrMethod: aggMethod, aggrPeriod: " minute" },
1318+ qs: { aggrMethod: aggMethod, aggrPeriod: ' minute' },
13191319 headers: {
1320- " fiware-servicepath": "/" ,
1321- " fiware-service": " openiot"
1320+ ' fiware-servicepath': '/' ,
1321+ ' fiware-service': ' openiot'
13221322 }
13231323 };
13241324
@@ -1339,8 +1339,8 @@ function cometToTimeSeries(cometResponse, aggMethod) {
13391339
13401340 _.forEach(values.points, (element) => {
13411341 data.push({ t: date.valueOf(), y: element[aggMethod] });
1342- labels.push(date.format(" HH:mm" ));
1343- date = date.clone().add(1, "m" );
1342+ labels.push(date.format(' HH:mm' ));
1343+ date = date.clone().add(1, 'm' );
13441344 });
13451345
13461346 return {
0 commit comments