Simple Scorpio Broker setup based on https://scorpio.readthedocs.io/en/latest/buildScorpio.html.
Start the show:
docker compose pull
docker compose up --detach --waitCall the API:
curl "http://$(docker compose port scorpio 9090)/ngsi-ld/v1/entities?type=toilet"curl "http://$(docker compose port scorpio 9090)/ngsi-ld/v1/entities" --header 'content-type: application/json' --data @- <<'JSON'
{
"type": "toilet",
"id": "urn:ngsi-ld:toilet:001",
"name": {"type": "Property", "value": "Floater …"}
}
JSONCreate/edit .env.docker.local:
COMPOSE_PROJECT_NAME=iotlab-broker
COMPOSE_DOMAIN=iotlab-broker.srvitkiotlab.itkdev.dk
COMPOSE_FILES=docker-compose.yml,docker-compose.prod.ymlitkdev-docker-compose-server pull
itkdev-docker-compose-server up --detach --waitUse the API on https://iotlab-broker.srvitkiotlab.itkdev.dk/, e.g. https://iotlab-broker.srvitkiotlab.itkdev.dk/ngsi-ld/v1/entities?type=toilet.