Skip to content

Instantly share code, notes, and snippets.

@hylkevds
Last active September 6, 2018 10:39
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save hylkevds/4ffba774fe0128305047b7bcbcd2672e to your computer and use it in GitHub Desktop.
Save hylkevds/4ffba774fe0128305047b7bcbcd2672e to your computer and use it in GitHub Desktop.
A set of demo entities that can be posted to the v1.0/Things collection of a SensorThings API service.
{
"name": "Living Room",
"description": "My Living Room",
"properties": {
"style": "Cozy",
"balcony": true
},
"Locations": [
{
"name": "My Living Room",
"description": "The living room of Fraunhoferstr. 1",
"encodingType": "application/vnd.geo+json",
"location": {
"type": "Point",
"coordinates": [8.4259727, 49.015308]
}
}
],
"Datastreams": [
{
"name": "Temperature Living Room",
"description": "The temperature in my living room",
"observationType": "http://www.opengis.net/def/observationType/OGC-OM/2.0/OM_Measurement",
"unitOfMeasurement": {
"name": "Centigrade",
"symbol": "C",
"definition": "http://www.qudt.org/qudt/owl/1.0.0/unit/Instances.html#DegreeCentigrade"
},
"Sensor": {
"name": "DHT22/Temperature",
"description": "Temperature sensor of a DHT22",
"encodingType": "application/pdf",
"metadata": "https://www.sparkfun.com/datasheets/Sensors/Temperature/DHT22.pdf"
},
"ObservedProperty": {
"name": "Temperature",
"definition": "http://www.qudt.org/qudt/owl/1.0.0/quantity/Instances.html#ThermodynamicTemperature",
"description": "The temperature."
},
"Observations": [
{
"phenomenonTime": "2019-03-14T10:00:00Z",
"result": 21.0
},
{
"phenomenonTime": "2019-03-14T10:01:00Z",
"result": 21.1
},
{
"phenomenonTime": "2019-03-14T10:02:00Z",
"result": 19.0
},
{
"phenomenonTime": "2019-03-14T10:03:00Z",
"result": 19.1
},
{
"phenomenonTime": "2019-03-14T10:04:00Z",
"result": 19.2
},
{
"phenomenonTime": "2019-03-14T10:05:00Z",
"result": 20.0
}
]
},
{
"name": "Humidity Living Room",
"description": "The humidity in my living room",
"observationType": "http://www.opengis.net/def/observationType/OGC-OM/2.0/OM_Measurement",
"unitOfMeasurement": {
"name": "percentage",
"symbol": "%",
"definition": "https://en.wikipedia.org/wiki/Percentage"
},
"Sensor": {
"name": "DHT22/Humidity",
"description": "Relative humidity sensor of a DHT22",
"encodingType": "application/pdf",
"metadata": "https://www.sparkfun.com/datasheets/Sensors/Temperature/DHT22.pdf"
},
"ObservedProperty": {
"name": "Relative Humidity",
"definition": "https://en.wikipedia.org/wiki/Relative_humidity",
"description": "The relative humidity"
},
"Observations": [
{
"phenomenonTime": "2019-03-14T10:00:00Z",
"result": 40.0
},
{
"phenomenonTime": "2019-03-14T10:01:00Z",
"result": 39.1
},
{
"phenomenonTime": "2019-03-14T10:02:00Z",
"result": 42.0
},
{
"phenomenonTime": "2019-03-14T10:03:00Z",
"result": 41.9
},
{
"phenomenonTime": "2019-03-14T10:04:00Z",
"result": 41.8
},
{
"phenomenonTime": "2019-03-14T10:05:00Z",
"result": 41.0
}
]
}
],
"MultiDatastreams": [
{
"name": "Wind Balcony",
"description": "The Wind on the balcony",
"observationType": "http://www.opengis.net/def/observationType/OGC-OM/2.0/OM_ComplexObservation",
"multiObservationDataTypes": [
"http://www.opengis.net/def/observationType/OGC-OM/2.0/OM_Measurement",
"http://www.opengis.net/def/observationType/OGC-OM/2.0/OM_Measurement"
],
"unitOfMeasurements": [
{
"name": "m/s",
"symbol": "m/s",
"definition": "ucum:m/s"
},
{
"name": "deg",
"symbol": "deg",
"definition": "ucum:deg"
}
],
"Sensor": {
"name": "Wind Sensor Type XYZ",
"description": "Wind Velocity and direction",
"encodingType": "text",
"metadata": "A description of this sensor should go here."
},
"ObservedProperties": [
{
"name": "Wind Velocity",
"definition": "http://dbpedia.org/page/Wind_speed",
"description": "The wind speed."
},
{
"name": "Wind Direction",
"definition": "http://dbpedia.org/page/Wind_direction",
"description": "The wind direction."
}
],
"Observations": [
{
"phenomenonTime": "2019-03-14T10:00:00Z",
"result": [5.1, 40]
},
{
"phenomenonTime": "2019-03-14T10:01:00Z",
"result": [5.3, 44]
},
{
"phenomenonTime": "2019-03-14T10:02:00Z",
"result": [5.2, 49]
},
{
"phenomenonTime": "2019-03-14T10:03:00Z",
"result": [4.7, 41]
},
{
"phenomenonTime": "2019-03-14T10:04:00Z",
"result": [4.1, 42]
},
{
"phenomenonTime": "2019-03-14T10:05:00Z",
"result": [4.6, 46]
}
]
}
]
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment