#!/usr/bin/env bash [[ -z "$ORION_HOST" ]] && echo "Please set ORION_HOST env var. E.g. export ORION_HOST=127.0.0.1" && exit echo "Querying context broker at: ${ORION_HOST}" curl -iX POST \ "http://$ORION_HOST:1026/v2/entities/" \ --header "Fiware-Service: carouge" \ --header "Fiware-ServicePath: /Watering" \ --header "Content-Type: application/json" \ --data '{ "id": "urn:ngsi-ld:FlowerBed:FlowerBed-345", "type": "FlowerBed", "category": { "type": "Property", "value": ["urbanTreeSpot"] }, "soilMoistureVwc": { "type": "Property", "value": 0.85 }, "dateLastWatering": { "type": "Property", "value": { "@type": "DateTime", "@value": "2020-02-11T08:00:00Z" } }, "soilTemperature": { "type": "Property", "value": 17 }, "address": { "type": "Property", "value": { "addressCountry": "Switzerland", "streetAddress": "Place de Sardaigne", "adressLocality": "Carouge", "type": "PostalAddress" } }, "location": { "type": "GeoProperty", "value": { "type": "Point", "coordinates": [46.184255,6.1378375] } } } '