Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
N
naiades-platform-poc
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Analytics
CI / CD Analytics
Repository Analytics
Value Stream Analytics
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
naiades
naiades-platform-poc
Commits
94dc100c
Commit
94dc100c
authored
Feb 25, 2020
by
Federico Sismondi
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Updated demo scripts, readme and added .env for docker compose
parent
7204546e
Changes
7
Hide whitespace changes
Inline
Side-by-side
Showing
7 changed files
with
63 additions
and
8 deletions
+63
-8
.env
.env
+26
-0
README.md
README.md
+31
-0
scripts/01_create_entity.sh
scripts/01_create_entity.sh
+2
-5
scripts/03_retrieve_entity_keyValues_by_id.sh
scripts/03_retrieve_entity_keyValues_by_id.sh
+0
-0
scripts/04_retrieve_attribute_value.sh
scripts/04_retrieve_attribute_value.sh
+1
-1
scripts/05_retrieve_attribute.sh
scripts/05_retrieve_attribute.sh
+0
-0
scripts/11_subscribe_to_entity.sh
scripts/11_subscribe_to_entity.sh
+3
-2
No files found.
.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