-
Notifications
You must be signed in to change notification settings - Fork 4
Open
Description
The widget is returning a "GeoJSON format not supported" when it receives one, although it loads correctly the PoI pop-up and ~sometimes updates correctly the property value resquested on the subscription.
For context, thats the GoeJSON being passed via a python script to generate artificial sensor data:
{
"id": "urn:ngsi-ld:ArtificialSensor:" + self.sensor_id,
"type": "ArtificialSensor",
"name": {
"type": "Property",
"value": "Artificial Sensor"
},
"peopleCount": {
"type": "Property",
"value": 0
},
"location": {
"type": "GeoProperty",
"value": {
"type": "Point",
"coordinates": [self.sensor_location[0], self.sensor_location[1]]
}
},
"timestamp": {
"type": "Property",
"value": time.strftime("%Y-%m-%dT%H:%M:%S", time.gmtime())
},
"@context": [
"https://uri.etsi.org/ngsi-ld/v1/ngsi-ld-core-context-v1.8.jsonld",
"https://fiware.github.io/data-models/context.jsonld",
"http://orion-7c9944b956-frxbb:1026/ngsi-ld/v1/jsonldContexts/c247ed92-154b-11f0-98d8-9e5c4066aaac",
"http://orion-7c9944b956-frxbb:1026/ngsi-ld/v1/jsonldContexts/26781d44-154e-11f0-a9ec-9e5c4066aaac"
]
}
The patch request body is this one:
{
"type": "Property",
"value": random.randint(0, 500) # Simulate a random people count
}
Metadata
Metadata
Assignees
Labels
No labels