Skip to content

Commit

Permalink
Add timerel and timeAt to example.
Browse files Browse the repository at this point in the history
  • Loading branch information
jason-fox committed Aug 26, 2024
1 parent 4e36905 commit 1e1e140
Show file tree
Hide file tree
Showing 3 changed files with 23 additions and 4 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_LD_VERSION=1.6.0

# Mintaka variables
MINTAKA_PORT=8080
MINTAKA_VERSION=0.5.40
MINTAKA_VERSION=0.6.18
TIMESCALE_VERSION=1.7.5-pg12
TIMESCALE_PORT=5432

Expand Down
12 changes: 9 additions & 3 deletions NGSI-LD Temporal Functions.postman_collection.json
Original file line number Diff line number Diff line change
Expand Up @@ -105,14 +105,12 @@
}
],
"url": {
"raw": "http://{{temporal-broker}}/ngsi-ld/v1/temporal/entities/?type=Animal&pageSize=2&lastN=5&q=sex==\"female\"&timeproperty=modifiedAt&options=count",
"raw": "http://{{temporal-broker}}/temporal/entities/?type=Animal&pageSize=2&lastN=5&q=sex==\"female\"&timeproperty=modifiedAt&options=count&timerel=after&timeAt=2024-01-01T00:00:00.000Z",
"protocol": "http",
"host": [
"{{temporal-broker}}"
],
"path": [
"ngsi-ld",
"v1",
"temporal",
"entities",
""
Expand Down Expand Up @@ -141,6 +139,14 @@
{
"key": "options",
"value": "count"
},
{
"key": "timerel",
"value": "after"
},
{
"key": "timeAt",
"value": "2024-01-01T00:00:00.000Z"
}
]
}
Expand Down
13 changes: 13 additions & 0 deletions docker-compose/scorpio.yml
Original file line number Diff line number Diff line change
Expand Up @@ -50,6 +50,19 @@ services:
volumes:
- postgres-db:/var/lib/postgresql/data

temporal:
labels:
org.fiware: 'tutorial'
image: quay.io/fiware/tutorials.forwarder
hostname: 'temporal'
container_name: temporal
ports:
- 8080:80
environment:
- TENANT=openiot
- CONTEXT_BROKER=http://scorpio:${SCORPIO_PORT}/ngsi-ld/v1/
- DEBUG=broker:*

farmer:
environment:
- CONTEXT_BROKER=http://scorpio:${SCORPIO_PORT}
Expand Down

0 comments on commit 1e1e140

Please sign in to comment.