Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
naiades
naiades-platform-poc
Commits
94dc100c
Commit
94dc100c
authored
Feb 25, 2020
by
Federico Sismondi
Browse files
Updated demo scripts, readme and added .env for docker compose
parent
7204546e
Changes
7
Hide whitespace changes
Inline
Side-by-side
.env
0 → 100644
View file @
94dc100c
# Orion variables
ORION_PORT=1026
ORION_VERSION=2.3.0
# MongoDB variables
MONGO_DB_PORT=27017
MONGO_DB_VERSION=3.6
# MongoDB dashboard
MONGO_DB_EXPRESS_PORT=8081
# Keyrock variables
KEYROCK_VERSION=7.8.1
KEYROCK_PORT=3005
KEYROCK_HTTPS_PORT=3443
# MySQL variables
MYSQL_DB_VERSION=5.7
MYSQL_DB_PORT=3307
# PEP Proxy variables
WILMA_VERSION=7.8.1
ORION_PROXY_PORT=1027
# WMS mock module
WMS_MODULE_PORT=8080
README.md
View file @
94dc100c
...
...
@@ -63,6 +63,37 @@ UPDATE|
+------------------------------------------------------------------------------+
# TODO how do we handle non-standard FIWARE formats?
# A proposal from UDGA/MI:
+----------------------+ +-------------------+
| | | |
| Cloud Core Platform +--------------->+ WMS + Watering |
| | POST + weekly scheduler |
+----------------------+ /FlowerBed/soilMoistureVwc |
^ +-------------------+
| UPDATE
| /FlowerBed/soilMoistureVwc
|
+----------------------+
| | +------------------+
| interoperability +<---------+ |
| layer | | Carouge format |
| e.g. nginx +----------> exchange |
+-----^----------------+ +------------------+
|
| UPDATE+
| carougeFormat/FlowerBed/soilMoistureVwc
|
|
+----------------------+
| |
| Soil Moisture IoT |
| sensor |
| |
+----------------------+
+------------------------------------------------------------------------------+
# Requirements
...
...
scripts/01_create_entity.sh
View file @
94dc100c
...
...
@@ -12,11 +12,8 @@ curl --location --request POST 'http://localhost:1026/v2/entities/' \
"value": 0.85
},
"dateLastWatering": {
"type": "Property",
"value": {
"@type": "DateTime",
"@value": "2020-02-11T08:00:00Z"
}
"type": "DateTime",
"value": "2020-02-11T08:00:00Z"
},
"soilTemperature": {
"type": "Property",
...
...
scripts/03_retrieve_entity_by_id.sh
→
scripts/03_retrieve_entity_
keyValues_
by_id.sh
View file @
94dc100c
File moved
scripts/0
5
_retrieve_attribute_value.sh
→
scripts/0
4
_retrieve_attribute_value.sh
View file @
94dc100c
curl
--request
GET
'localhost:1026/v2/entities/urn:ngsi-ld:FlowerBed:FlowerBed-345/attrs/soilMoistureVwc/value'
| python
-mjson
.tool
curl
--request
GET
'localhost:1026/v2/entities/urn:ngsi-ld:FlowerBed:FlowerBed-345/attrs/soilMoistureVwc/value'
# this gives same results:
#curl --request GET 'localhost:1026/v2/entities/urn:ngsi-ld:FlowerBed:FlowerBed-345/attrs/soilMoistureVwc/value'
scripts/0
4
_retrieve_attribute.sh
→
scripts/0
5
_retrieve_attribute.sh
View file @
94dc100c
File moved
scripts/11_subscribe_to_entity.sh
View file @
94dc100c
curl
-v
localhost:1026/v2/subscriptions
-s
-S
--header
'Content-Type: application/json'
\
curl
-v
localhost:1026/v2/subscriptions
/
-s
-S
--header
'Content-Type: application/json'
\
-d
@-
<<
EOF
{
"description": "A subscription to get info about FlowerBed",
...
...
@@ -21,7 +21,8 @@ curl -v localhost:1026/v2/subscriptions -s -S --header 'Content-Type: applicatio
},
"attrs": [
"soilMoistureVwc"
]
],
"attrsFormat": "keyValues"
},
"expires": "2040-01-01T14:00:00.00Z",
"throttling": 5
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment