... | ... | @@ -16,7 +16,7 @@ Create the entity Flowerbed number x: |
|
|
|
|
|
``` bash
|
|
|
>> ./watering_01_create_entity.sh
|
|
|
Querying context broker at: 127.0.0.1
|
|
|
Querying context broker at: 5.53.108.182
|
|
|
HTTP/1.1 100 Continue
|
|
|
|
|
|
HTTP/1.1 201 Created
|
... | ... | @@ -31,7 +31,7 @@ Get all entities, note that the response includes `type` information, which is q |
|
|
|
|
|
```bash
|
|
|
>> ./watering_02_retrieve_entities.sh
|
|
|
Querying context broker at: 10.81.6.109
|
|
|
Querying context broker at: 5.53.108.182
|
|
|
% Total % Received % Xferd Average Speed Time Time Time Current
|
|
|
Dload Upload Total Spent Left Speed
|
|
|
100 649 100 649 0 0 16508 0 --:--:-- --:--:-- --:--:-- 16641
|
... | ... | @@ -90,7 +90,7 @@ Getting keyvalues only simplify post-processing, use this unless you are parsing |
|
|
|
|
|
```
|
|
|
>> ./watering_03_retrieve_entity_keyValues_by_id.sh
|
|
|
Querying context broker at: 10.81.6.109
|
|
|
Querying context broker at: 5.53.108.182
|
|
|
% Total % Received % Xferd Average Speed Time Time Time Current
|
|
|
Dload Upload Total Spent Left Speed
|
|
|
100 355 100 355 0 0 1338 0 --:--:-- --:--:-- --:--:-- 1334
|
... | ... | @@ -187,7 +187,7 @@ execute subscription: |
|
|
|
|
|
```
|
|
|
>>> ./watering_07_subscribe_to_entity.sh
|
|
|
Querying context broker at: 10.81.6.109
|
|
|
Querying context broker at: 5.53.108.182
|
|
|
Callback URL for subscriptions is: http://172.18.1.11:5000/on_change_soilMoistureVwc
|
|
|
```
|
|
|
|
... | ... | @@ -195,7 +195,7 @@ check if our subscription was accepted, and present into orion subscribers: |
|
|
|
|
|
```
|
|
|
>>> ./admin_get_all_orion_susbcriptions.sh
|
|
|
Querying context broker at: 10.81.6.109
|
|
|
Querying context broker at: 5.53.108.182
|
|
|
% Total % Received % Xferd Average Speed Time Time Time Current
|
|
|
Dload Upload Total Spent Left Speed
|
|
|
100 401 100 401 0 0 8358 0 --:--:-- --:--:-- --:--:-- 8531
|
... | ... | @@ -240,7 +240,7 @@ send a couple of entity updates: |
|
|
```
|
|
|
>>> ./watering_06_update_specific_attrs.sh
|
|
|
>>> ./watering_06_update_specific_attrs.sh
|
|
|
Querying context broker at: 10.81.6.109
|
|
|
Querying context broker at: 5.53.108.182
|
|
|
```
|
|
|
|
|
|
callback:
|
... | ... | @@ -260,7 +260,7 @@ The Historic API is implemented using QuantumLeap (FiWare enabler) |
|
|
export env var for QuantumLeap host (same as Naiades IoT Platform)
|
|
|
|
|
|
```
|
|
|
export QUANTUM_HOST=10.81.6.109
|
|
|
export QUANTUM_HOST=5.53.108.182
|
|
|
```
|
|
|
|
|
|
Create subscription for subscribing quantum leap to orion, and hence to keep history of a certain entity/attr.
|
... | ... | @@ -307,7 +307,7 @@ curl --location --request POST \ |
|
|
}'
|
|
|
|
|
|
>>> ./historic_01_set_up.sh
|
|
|
Querying context broker at: 10.81.6.109
|
|
|
Querying context broker at: 5.53.108.182
|
|
|
```
|
|
|
|
|
|
send a couple of entity updates:
|
... | ... | @@ -315,14 +315,14 @@ send a couple of entity updates: |
|
|
```
|
|
|
>>> ./watering_06_update_specific_attrs.sh
|
|
|
>>> ./watering_06_update_specific_attrs.sh
|
|
|
Querying context broker at: 10.81.6.109
|
|
|
Querying context broker at: 5.53.108.182
|
|
|
```
|
|
|
|
|
|
check what the history looks like of the FloweBeds' humidty looks like:
|
|
|
|
|
|
```
|
|
|
>>> ./historic_02_api_query.sh
|
|
|
Querying QuantumLeap API at: 10.81.6.109
|
|
|
Querying QuantumLeap API at: 5.53.108.182
|
|
|
{
|
|
|
"index": [
|
|
|
"2017-03-31T08:00:00.000",
|
... | ... | |