From 4a9f88f4c458fe54401ca196ea295881f4e764fe Mon Sep 17 00:00:00 2001 From: JoaoSnd Date: Tue, 17 Dec 2024 13:43:31 -0300 Subject: [PATCH 01/69] fixed dockerfile and edited read.me --- src/config.xml | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/config.xml b/src/config.xml index fbdff19..3cb605c 100644 --- a/src/config.xml +++ b/src/config.xml @@ -66,12 +66,14 @@ label="Id pattern" description="Id pattern for filtering entities. This preference can be empty, in that case, entities won't be filtered by id." default="" /> + + From 592ea19c689a6f550ab4f105ef385884981c5076 Mon Sep 17 00:00:00 2001 From: JoaoSnd Date: Thu, 19 Dec 2024 12:32:25 -0300 Subject: [PATCH 02/69] test ngsild --- src/js/main.js | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/src/js/main.js b/src/js/main.js index c3df4ce..67949da 100644 --- a/src/js/main.js +++ b/src/js/main.js @@ -32,7 +32,7 @@ const refreshNGSISubscription = function refreshNGSISubscription() { if (this.subscriptionId) { - this.connection.v2.updateSubscription({ + this.connection.ld.updateSubscription({ id: this.subscriptionId, expires: moment().add('3', 'hours').toISOString() }).then( @@ -153,7 +153,7 @@ } const attrsFormat = MashupPlatform.operator.outputs.normalizedOutput.connected ? "normalized" : "keyValues"; - this.connection.v2.createSubscription({ + this.connection.ld.createSubscription({ description: "ngsi source subscription", subject: { entities: entities, @@ -189,7 +189,7 @@ }; const requestInitialData = function requestInitialData(idPattern, types, filter, attributes, metadata, attrsFormat, page) { - return this.connection.v2.listEntities( + return this.connection.ld.queryEntities( { idPattern: idPattern, type: types, @@ -267,7 +267,7 @@ } if (this.subscriptionId != null) { - this.connection.v2.deleteSubscription(this.subscriptionId).then( + this.connection.ld.deleteSubscription(this.subscriptionId).then( () => { MashupPlatform.operator.log("Old subscription has been cancelled sucessfully", MashupPlatform.log.INFO); }, @@ -309,7 +309,7 @@ return; } - this.connection.v2.deleteSubscription(this.subscriptionId).then( + this.connection.ld.deleteSubscription(this.subscriptionId).then( () => { MashupPlatform.operator.log("Subscription cancelled sucessfully", MashupPlatform.log.INFO); }, From b2a92c1f35d302c91609360ac26055f3f8e0821d Mon Sep 17 00:00:00 2001 From: JoaoSnd Date: Thu, 16 Jan 2025 14:22:25 -0300 Subject: [PATCH 03/69] query --- src/config.xml | 212 ++++++++++++++++++++++++------------------------- 1 file changed, 104 insertions(+), 108 deletions(-) diff --git a/src/config.xml b/src/config.xml index 3cb605c..f96eea4 100644 --- a/src/config.xml +++ b/src/config.xml @@ -1,108 +1,104 @@ - - -
- NGSI source - https://github.com/wirecloud-fiware/ngsi-source - Álvaro Arranz García <aarranz@ficodes.com> - aarranz@conwet.com - images/catalogue.png - Retrieve Orion Context Broker entities and their updates in real time. - DESCRIPTION.md - Apache License 2.0 - http://www.apache.org/licenses/LICENSE-2.0.html - doc/userguide.md - doc/changelog.md - https://github.com/wirecloud-fiware/ngsi-source-operator/issues -
- - - - - - - - - - - - - - - - - - - - - - - -