11[ ![ FIWARE Core Context Management] ( https://nexus.lab.fiware.org/repository/raw/public/badges/chapters/core.svg )] ( https://github.com/FIWARE/catalogue/blob/master/core/README.md )
22[ ![ NGSI v1] ( https://img.shields.io/badge/NGSI-v1-ff69b4.svg )] ( http://forge.fiware.org/docman/view.php/7/3213/FI-WARE_NGSI_RESTful_binding_v1.0.zip )
3+ [ ![ NGSI v2] ( https://img.shields.io/badge/NGSI-v2-blue.svg )] ( https://fiware-ges.github.io/orion/api/v2/stable/ )
34
45** Description:** This tutorial is an introduction to [ FIWARE STH-Comet] ( https://fiware-sth-comet.readthedocs.io/ ) - a
56generic enabler which is used to retrieve trend data from a MongoDB database. The tutorial activates the IoT sensors
@@ -1083,9 +1084,7 @@ This is done by making a POST request to the `/v2/subscription` endpoint of the
10831084- The `fiware-service` and `fiware-servicepath` headers are used to filter the subscription to only listen to
10841085 measurements from the attached IoT Sensors
10851086- The `idPattern` in the request body ensures that **Cygnus** will be informed of all **Motion Sensor** data changes.
1086- - The notification `url` must match the configured `CYGNUS_API_PORT`
1087- - The `attrsFormat=legacy` is required since **Cygnus** currently only accepts notifications in the older NGSI v1
1088- format.
1087+ - The notification `url` must match the configured `CYGNUS_MONGO_SERVICE_PORT`
10891088
10901089# ### 14 Request:
10911090
@@ -1111,12 +1110,11 @@ curl -iX POST \
11111110 },
11121111 "notification": {
11131112 "http": {
1114- "url": "http://cygnus:5050 /notify"
1113+ "url": "http://cygnus:5051 /notify"
11151114 },
11161115 "attrs": [
11171116 "count"
1118- ],
1119- "attrsFormat": "legacy"
1117+ ]
11201118 }
11211119}'
11221120` ` `
@@ -1132,9 +1130,7 @@ the `throttling` attribute in the request body.
11321130- The `fiware-service` and `fiware-servicepath` headers are used to filter the subscription to only listen to
11331131 measurements from the attached IoT Sensors
11341132- The `idPattern` in the request body ensures that **Cygnus** will be informed of all **Smart Lamp** data changes only
1135- - The notification `url` must match the configured `CYGNUS_API_PORT`
1136- - The `attrsFormat=legacy` is required since **Cygnus** currently only accepts notifications in the older NGSI v1
1137- format.
1133+ - The notification `url` must match the configured `CYGNUS_MONGO_SERVICE_PORT`
11381134- The `throttling` value defines the rate that changes are sampled.
11391135
11401136# ### 15 Request:
@@ -1161,12 +1157,11 @@ curl -iX POST \
11611157 },
11621158 "notification": {
11631159 "http": {
1164- "url": "http://cygnus:5050 /notify"
1160+ "url": "http://cygnus:5051 /notify"
11651161 },
11661162 "attrs": [
11671163 "luminosity"
1168- ],
1169- "attrsFormat": "legacy"
1164+ ]
11701165 },
11711166 "throttling": 5
11721167}'
0 commit comments