Skip to content

Commit

Permalink
Updating forwarder and baseline data
Browse files Browse the repository at this point in the history
  • Loading branch information
jason-fox committed Jun 7, 2024
1 parent f1c0e19 commit b678b97
Show file tree
Hide file tree
Showing 6 changed files with 731 additions and 10 deletions.
2 changes: 1 addition & 1 deletion .env
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ ORION_VERSION=3.8.1

# Orion variables
ORION_LD_PORT=1026
ORION_LD_VERSION=1.6.0-pre-1596
ORION_LD_VERSION=1.6.0-pre-1615

# Scorpio variables
SCORPIO_PORT=9090
Expand Down
713 changes: 713 additions & 0 deletions NGSI-LD Registrations.postman_collection.json

Large diffs are not rendered by default.

10 changes: 5 additions & 5 deletions docker-compose/common.yml
Original file line number Diff line number Diff line change
Expand Up @@ -140,24 +140,24 @@ services:
labels:
org.fiware: 'tutorial'
image: quay.io/fiware/tutorials.forwarder
hostname: 'farmer'
hostname: 'openiot'
container_name: cb-devices
ports:
- 1028:80
environment:
- TENANT=openiot
- DEBUG=broker:*

labourer:
contractor:
labels:
org.fiware: 'tutorial'
image: quay.io/fiware/tutorials.forwarder
hostname: 'labourer'
container_name: cb-labourer
hostname: 'contractor'
container_name: cb-contractor
ports:
- 1029:80
environment:
- TENANT=labourer
- TENANT=contractor
- DEBUG=broker:*

vet:
Expand Down
6 changes: 3 additions & 3 deletions docker-compose/orion-ld.yml
Original file line number Diff line number Diff line change
Expand Up @@ -31,10 +31,10 @@ services:
- default
ports:
- ${EXPOSED_PORT:-1026}:${ORION_LD_PORT:-1026}
command: -dbhost mongo-db -logLevel DEBUG -forwarding -experimental -wip entityMaps
command: -dbhost mongo-db -logLevel INFO -forwarding -experimental -wip entityMaps
healthcheck:
test: curl --fail -s http://orion:${ORION_LD_PORT}/version || exit 1
interval: 5s
interval: 30s

# Tutorial connects to the Orion-LD Broker
tutorial:
Expand All @@ -49,7 +49,7 @@ services:
farmer:
environment:
- CONTEXT_BROKER=http://orion:${ORION_LD_PORT}
labourer:
contractor:
environment:
- CONTEXT_BROKER=http://orion:${ORION_LD_PORT}
vet:
Expand Down
2 changes: 1 addition & 1 deletion docker-compose/scorpio.yml
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,7 @@ services:
farmer:
environment:
- CONTEXT_BROKER=http://scorpio:${SCORPIO_PORT}
labourer:
contractor:
environment:
- CONTEXT_BROKER=http://scorpio:${SCORPIO_PORT}
vet:
Expand Down
8 changes: 8 additions & 0 deletions import-data
Original file line number Diff line number Diff line change
Expand Up @@ -560,6 +560,14 @@ curl -s -X POST 'http://'"${CONTEXT_BROKER}"'/ngsi-ld/v1/entityOperations/upsert
"type": "VocabularyProperty", "vocab": "noStatus",
"observedAt": "2024-02-02T15:00:00.000Z"
}
},
{
"id": "urn:ngsi-ld:Animal:cow001",
"type": "Animal",
"comment": {
"type": "Property", "value": "Please check hooves.",
"observedAt": "2024-01-01T15:00:00.000Z"
}
}
]'

Expand Down

0 comments on commit b678b97

Please sign in to comment.