|
|
|
|
|
1.
|
|
|
[Q] Do we need to install the platform (the part with docker) if we want to run the SDK? \
|
|
|
[A] Nope, you can either run the SDK requests against the development server.
|
|
|
|
|
|
2.
|
|
|
[Q] the WMS module and its associated ML algorithm (e.g. to predict weather values and send them to the platform) should be developed as a separate container? e.g. using wms_example as a starting point? \
|
|
|
[A] yep, you can use that as a starting point, WMS_example **only** exemplifies how to use the subscription feature or of the IoT platfrom though.. you will probably need more than that . E.g. consuming data from the historical API
|
|
|
|
|
|
3.
|
|
|
[Q] how to we integrate our module to the platform? \
|
|
|
[A] you can either push the code to the git repo (different branch from master) and provide the `Dockerfile` describing how to build and run the service, or you can push directly the docker image to dockerhub and then we will pull the image from there :)
|
|
|
|
|
|
4.
|
|
|
[Q] How do I create an entity and push historical records to the historical API?\
|
|
|
[A]\
|
|
|
step1. define your entity id, it should follow the conventions:
|
|
|
`udn:ngsi-ld:<dataType>:<string>`
|
|
|
e.g
|
|
|
`urn:ngsi-ld:WaterQualityObserved:fountain-1`
|
|
|
|
|
|
step2. create entity, use script example named `watering_01_create_entity.sh`
|
|
|
|
|
|
step3. ask historical DB to start tracking a certain entity (start saving records in historic DB)
|
|
|
please use as template script `historic_01_set_up.sh`, you will need to update the `description` and the `type` as minimal modifications
|
|
|
|
|
|
|
|
|
step4. test it
|
|
|
please use as template script `historic_02_api_query.sh`
|
|
|
|
|
|
DOESNT IT WORK?
|
|
|
- check again step 3 and 4 .sh examples
|
|
|
- remeber to include the headers in the requyest:
|
|
|
|
|
|
```
|
|
|
--header "Fiware-Service: carouge"
|
|
|
--header "Fiware-ServicePath: /"
|
|
|
```
|
|
|
|
|
|
5.
|
|
|
[Q] Where can I find the spec of the IoT Platform APIs ?\
|
|
|
[A] You can find Orions API spec here:
|
|
|
- [Orion API spec (context broker)](https://fiware.github.io/specifications/ngsiv2/stable/#simplified-entity-representation)
|
|
|
- [QuantumLeap API spec (historic API)](https://app.swaggerhub.com/apis/smartsdk/ngsi-tsdb/0.7)
|
|
|
|