Citizen Sensing with the SenosrThings API
Transcript of Citizen Sensing with the SenosrThings API
![Page 1: Citizen Sensing with the SenosrThings API](https://reader031.fdocuments.us/reader031/viewer/2022030305/58715c6b1a28ab8e5b8b692b/html5/thumbnails/1.jpg)
CITIZENSENSINGWITHTHE
SENSORTHINGSAPI
JosephChangSeniorSoftwareDeveloper,SensorUpInc.
March17,2016
![Page 2: Citizen Sensing with the SenosrThings API](https://reader031.fdocuments.us/reader031/viewer/2022030305/58715c6b1a28ab8e5b8b692b/html5/thumbnails/2.jpg)
WHATISSENSORTHINGS?
![Page 3: Citizen Sensing with the SenosrThings API](https://reader031.fdocuments.us/reader031/viewer/2022030305/58715c6b1a28ab8e5b8b692b/html5/thumbnails/3.jpg)
WHATISSENSORTHINGS?
![Page 4: Citizen Sensing with the SenosrThings API](https://reader031.fdocuments.us/reader031/viewer/2022030305/58715c6b1a28ab8e5b8b692b/html5/thumbnails/4.jpg)
WHATISSENSORTHINGS?
ConnectIoTdevicesanddataOGCStandardOpenUsesHTTP,JSON,MQTTandothergoodstuff
![Page 5: Citizen Sensing with the SenosrThings API](https://reader031.fdocuments.us/reader031/viewer/2022030305/58715c6b1a28ab8e5b8b692b/html5/thumbnails/5.jpg)
WHATISCITIZENSENSING?OrdinarypeoplehavesensorsParticipation,empowerment,connectionKindacool
![Page 6: Citizen Sensing with the SenosrThings API](https://reader031.fdocuments.us/reader031/viewer/2022030305/58715c6b1a28ab8e5b8b692b/html5/thumbnails/6.jpg)
SENSORTHINGS+CITIZENSENSINGCanwebuildasimplecitizensensingplatformwithSensorThings?
![Page 7: Citizen Sensing with the SenosrThings API](https://reader031.fdocuments.us/reader031/viewer/2022030305/58715c6b1a28ab8e5b8b692b/html5/thumbnails/7.jpg)
SENSORTHINGS+CITIZENSENSINGCanwebuildasimplecitizensensingplatformwithSensorThings?Ofcourse.
![Page 8: Citizen Sensing with the SenosrThings API](https://reader031.fdocuments.us/reader031/viewer/2022030305/58715c6b1a28ab8e5b8b692b/html5/thumbnails/8.jpg)
SENSORTHINGS+CITIZENSENSINGCanwebuildasimplecitizensensingplatformwithSensorThings?Ofcourse.CitizenSensing?
![Page 9: Citizen Sensing with the SenosrThings API](https://reader031.fdocuments.us/reader031/viewer/2022030305/58715c6b1a28ab8e5b8b692b/html5/thumbnails/9.jpg)
SENSORTHINGS+CITIZENSENSINGCanwebuildasimplecitizensensingplatformwithSensorThings?Ofcourse.CitizenSensing?
![Page 10: Citizen Sensing with the SenosrThings API](https://reader031.fdocuments.us/reader031/viewer/2022030305/58715c6b1a28ab8e5b8b692b/html5/thumbnails/10.jpg)
SENSORTHINGS+CITIZENSENSINGCanwebuildasimplecitizensensingplatformwithSensorThings?Ofcourse.CitizenSensing?CitizenSensorThings
![Page 11: Citizen Sensing with the SenosrThings API](https://reader031.fdocuments.us/reader031/viewer/2022030305/58715c6b1a28ab8e5b8b692b/html5/thumbnails/11.jpg)
SENSORTHINGS+CITIZENSENSINGCanwebuildasimplecitizensensingplatformwithSensorThings?Ofcourse.CitizenSensing?CitizenSensorThings-ing
![Page 12: Citizen Sensing with the SenosrThings API](https://reader031.fdocuments.us/reader031/viewer/2022030305/58715c6b1a28ab8e5b8b692b/html5/thumbnails/12.jpg)
ARCTICCITIZENSENSORS(INASSOCIATIONWITHGEOCONNECTIONS)
![Page 13: Citizen Sensing with the SenosrThings API](https://reader031.fdocuments.us/reader031/viewer/2022030305/58715c6b1a28ab8e5b8b692b/html5/thumbnails/13.jpg)
![Page 14: Citizen Sensing with the SenosrThings API](https://reader031.fdocuments.us/reader031/viewer/2022030305/58715c6b1a28ab8e5b8b692b/html5/thumbnails/14.jpg)
![Page 15: Citizen Sensing with the SenosrThings API](https://reader031.fdocuments.us/reader031/viewer/2022030305/58715c6b1a28ab8e5b8b692b/html5/thumbnails/15.jpg)
![Page 16: Citizen Sensing with the SenosrThings API](https://reader031.fdocuments.us/reader031/viewer/2022030305/58715c6b1a28ab8e5b8b692b/html5/thumbnails/16.jpg)
![Page 17: Citizen Sensing with the SenosrThings API](https://reader031.fdocuments.us/reader031/viewer/2022030305/58715c6b1a28ab8e5b8b692b/html5/thumbnails/17.jpg)
![Page 18: Citizen Sensing with the SenosrThings API](https://reader031.fdocuments.us/reader031/viewer/2022030305/58715c6b1a28ab8e5b8b692b/html5/thumbnails/18.jpg)
![Page 19: Citizen Sensing with the SenosrThings API](https://reader031.fdocuments.us/reader031/viewer/2022030305/58715c6b1a28ab8e5b8b692b/html5/thumbnails/19.jpg)
TODAY'SSPECIALBUILDINGASIMPLIFIEDVERSIONOFARCTICCITIZENSENSORS
CreateandlinkSensorThingsentities
![Page 20: Citizen Sensing with the SenosrThings API](https://reader031.fdocuments.us/reader031/viewer/2022030305/58715c6b1a28ab8e5b8b692b/html5/thumbnails/20.jpg)
TODAY'SSPECIALBUILDINGASIMPLIFIEDVERSIONOFARCTICCITIZENSENSORS
CreateandlinkSensorThingsentities
![Page 21: Citizen Sensing with the SenosrThings API](https://reader031.fdocuments.us/reader031/viewer/2022030305/58715c6b1a28ab8e5b8b692b/html5/thumbnails/21.jpg)
ENTITIESANDRELATIONSHIPS
Observation
+phenomenonTime:TM_Object+resultTime:TM_Instant+result:Any+resultQuality:DQ_Element[0..*]+validTime:TM_Period[0..1]+parameters:NamedValue[0..*]
Thing
+description:CharacterString+properties:JSON_Object[0..1]
Datastream
+description:CharacterString+observationType:ValueCode+unitOfMeasurement:JSON_Object+observedArea:GM_Envelope[0..1]+phenomenonTime:TM_Period[0..1]+resultTime:TM_Period[0..1]+datastreams
0..*
+thing1
ObservedProperty
+name:CharacterString+definition:URI+description:CharacterString
+observedProperty1
+datastreams0..*
Sensor
+description:CharacterString+encodingType:ValueCode+metadata:Any
+sensor1
+datastreams
0..* +datastream
1
+observations
0..*
FeatureOfInterest
+description:CharacterString+encodingType:ValueCode+feature:Any
+observations0..*
+featureOfInterest1
HistoricalLocation
+time:TM_Instant
Location
+description:CharacterString+encodingType:ValueCode+location:Any
+things
1
+historicalLocations0..*
+location
1..*
+historicalLocations0..*
+things0..*
+locations0..*
«CodeList»ValueCode
![Page 22: Citizen Sensing with the SenosrThings API](https://reader031.fdocuments.us/reader031/viewer/2022030305/58715c6b1a28ab8e5b8b692b/html5/thumbnails/22.jpg)
![Page 23: Citizen Sensing with the SenosrThings API](https://reader031.fdocuments.us/reader031/viewer/2022030305/58715c6b1a28ab8e5b8b692b/html5/thumbnails/23.jpg)
CREATINGATHING
![Page 24: Citizen Sensing with the SenosrThings API](https://reader031.fdocuments.us/reader031/viewer/2022030305/58715c6b1a28ab8e5b8b692b/html5/thumbnails/24.jpg)
LINKITONE
![Page 25: Citizen Sensing with the SenosrThings API](https://reader031.fdocuments.us/reader031/viewer/2022030305/58715c6b1a28ab8e5b8b692b/html5/thumbnails/25.jpg)
REQUESTPOST /v1.0/Things HTTP/1.1Host: example.sensorup.comContent-Type: application/json
{ "description": "LinkIt ONE"}
![Page 26: Citizen Sensing with the SenosrThings API](https://reader031.fdocuments.us/reader031/viewer/2022030305/58715c6b1a28ab8e5b8b692b/html5/thumbnails/26.jpg)
RESPONSE{ "@iot.id": 1, "description": "LinkIt ONE", "properties": {} ...}
![Page 27: Citizen Sensing with the SenosrThings API](https://reader031.fdocuments.us/reader031/viewer/2022030305/58715c6b1a28ab8e5b8b692b/html5/thumbnails/27.jpg)
![Page 28: Citizen Sensing with the SenosrThings API](https://reader031.fdocuments.us/reader031/viewer/2022030305/58715c6b1a28ab8e5b8b692b/html5/thumbnails/28.jpg)
CREATINGALOCATION
![Page 29: Citizen Sensing with the SenosrThings API](https://reader031.fdocuments.us/reader031/viewer/2022030305/58715c6b1a28ab8e5b8b692b/html5/thumbnails/29.jpg)
ALERT,NUNAVUT,CANADA
Photo:NationalOceanic&AtmosphericAdministration,retrievedfromhttps://commons.wikimedia.org/wiki/File:NOAA_-_Alert_observatory.jpg
![Page 30: Citizen Sensing with the SenosrThings API](https://reader031.fdocuments.us/reader031/viewer/2022030305/58715c6b1a28ab8e5b8b692b/html5/thumbnails/30.jpg)
REQUESTPOST /v1.0/Locations HTTP/1.1Host: example.sensorup.comContent-Type: application/json
{ "description": "Alert", "encodingType": "application/vnd.geo+json", "location": { "type": "Point", "coordinates": [ -62.358, 82.521 ] }, "Things": [{ "@iot.id": 1 }]}
![Page 31: Citizen Sensing with the SenosrThings API](https://reader031.fdocuments.us/reader031/viewer/2022030305/58715c6b1a28ab8e5b8b692b/html5/thumbnails/31.jpg)
RESPONSE{ "@iot.id": 2, "encodingType": "application/vnd.geo+json", "description": "Alert", "location": { "coordinates": [ -62.358, 82.521 ], "type": "Point" }, ...}
![Page 32: Citizen Sensing with the SenosrThings API](https://reader031.fdocuments.us/reader031/viewer/2022030305/58715c6b1a28ab8e5b8b692b/html5/thumbnails/32.jpg)
![Page 33: Citizen Sensing with the SenosrThings API](https://reader031.fdocuments.us/reader031/viewer/2022030305/58715c6b1a28ab8e5b8b692b/html5/thumbnails/33.jpg)
FeatureofInterestautomaticallycreatedbySensorThingslater
TWOFORTHEPRICEOFONE
![Page 34: Citizen Sensing with the SenosrThings API](https://reader031.fdocuments.us/reader031/viewer/2022030305/58715c6b1a28ab8e5b8b692b/html5/thumbnails/34.jpg)
CREATINGANOBSERVEDPROPERTY
![Page 35: Citizen Sensing with the SenosrThings API](https://reader031.fdocuments.us/reader031/viewer/2022030305/58715c6b1a28ab8e5b8b692b/html5/thumbnails/35.jpg)
REQUESTPOST /v1.0/ObservedProperties HTTP/1.1Host: example.sensorup.comContent-Type: application/json
{ "name": "dust", "definition": "http://dbpedia.org/page/Dust", "description": "Dust is composed of particles in the..."}
![Page 36: Citizen Sensing with the SenosrThings API](https://reader031.fdocuments.us/reader031/viewer/2022030305/58715c6b1a28ab8e5b8b692b/html5/thumbnails/36.jpg)
RESPONSE{ "@iot.id": 3, "name": "dust", "description": "Dust is composed of particles in the...", "definition": "http://dbpedia.org/page/Dust", ...}
![Page 37: Citizen Sensing with the SenosrThings API](https://reader031.fdocuments.us/reader031/viewer/2022030305/58715c6b1a28ab8e5b8b692b/html5/thumbnails/37.jpg)
![Page 38: Citizen Sensing with the SenosrThings API](https://reader031.fdocuments.us/reader031/viewer/2022030305/58715c6b1a28ab8e5b8b692b/html5/thumbnails/38.jpg)
CREATINGASENSOR
![Page 39: Citizen Sensing with the SenosrThings API](https://reader031.fdocuments.us/reader031/viewer/2022030305/58715c6b1a28ab8e5b8b692b/html5/thumbnails/39.jpg)
DUSTSENSOR
![Page 40: Citizen Sensing with the SenosrThings API](https://reader031.fdocuments.us/reader031/viewer/2022030305/58715c6b1a28ab8e5b8b692b/html5/thumbnails/40.jpg)
REQUESTPOST /v1.0/Sensors HTTP/1.1Host: example.sensorup.comContent-Type: application/json
{ "description": "dust", "encodingType": "text/html", "metadata": "http://www.seeedstudio.com/wiki/Grove_-_Dust_Sensor"}
![Page 41: Citizen Sensing with the SenosrThings API](https://reader031.fdocuments.us/reader031/viewer/2022030305/58715c6b1a28ab8e5b8b692b/html5/thumbnails/41.jpg)
RESPONSE{ "@iot.id": 4, "description": "dust" "encodingType": "text/html", "metadata": "http://www.seeedstudio.com/wiki/Grove_-_Dust_Sensor", ...}
![Page 42: Citizen Sensing with the SenosrThings API](https://reader031.fdocuments.us/reader031/viewer/2022030305/58715c6b1a28ab8e5b8b692b/html5/thumbnails/42.jpg)
SENSORNOTSHOWNINUIStillhavetocreateitProvidescontextFuturequeryingoptions
![Page 43: Citizen Sensing with the SenosrThings API](https://reader031.fdocuments.us/reader031/viewer/2022030305/58715c6b1a28ab8e5b8b692b/html5/thumbnails/43.jpg)
SENSORNOTSHOWNINUIStillhavetocreateitProvidescontextFuturequeryingoptionsIt'sgoodpractice,likeeatingyourvegetables
![Page 44: Citizen Sensing with the SenosrThings API](https://reader031.fdocuments.us/reader031/viewer/2022030305/58715c6b1a28ab8e5b8b692b/html5/thumbnails/44.jpg)
CREATINGADATASTREAM
![Page 45: Citizen Sensing with the SenosrThings API](https://reader031.fdocuments.us/reader031/viewer/2022030305/58715c6b1a28ab8e5b8b692b/html5/thumbnails/45.jpg)
REQUESTPOST /v1.0/Datastreams HTTP/1.1Host: example.sensorup.comContent-Type: application/json
{ "description": "LinkIt ONE Datastream", "observationType": "http://www.opengis.net/def/observationType/OGC-OM/2.0/OM_Measurement", "unitOfMeasurement": { "name": "pieces per 0.01 cubic feet", "symbol": "pcs/0.01cf", "definition": "N/A" }, "Thing": { "@iot.id": 1 }, "ObservedProperty": { "@iot.id": 3 }, "Sensor": { "@iot.id": 4 }}
![Page 46: Citizen Sensing with the SenosrThings API](https://reader031.fdocuments.us/reader031/viewer/2022030305/58715c6b1a28ab8e5b8b692b/html5/thumbnails/46.jpg)
RESPONSE{ "@iot.id": 5, "description": "LinkIt ONE Datastream", "observationType": "http://www.opengis.net/def/observationType/OGC-OM/2.0/OM_Measurement", "unitOfMeasurement": { "symbol": "pcs/0.01cf", "name": "pieces per 0.01 cubic feet", "definition": "N/A" }, ...}
![Page 47: Citizen Sensing with the SenosrThings API](https://reader031.fdocuments.us/reader031/viewer/2022030305/58715c6b1a28ab8e5b8b692b/html5/thumbnails/47.jpg)
![Page 48: Citizen Sensing with the SenosrThings API](https://reader031.fdocuments.us/reader031/viewer/2022030305/58715c6b1a28ab8e5b8b692b/html5/thumbnails/48.jpg)
CREATINGANOBSERVATION
![Page 49: Citizen Sensing with the SenosrThings API](https://reader031.fdocuments.us/reader031/viewer/2022030305/58715c6b1a28ab8e5b8b692b/html5/thumbnails/49.jpg)
REQUESTPOST /v1.0/Datastreams(5)/Observations HTTP/1.1Host: example.sensorup.comContent-Type: application/json
{ "result": "334.6"}
![Page 50: Citizen Sensing with the SenosrThings API](https://reader031.fdocuments.us/reader031/viewer/2022030305/58715c6b1a28ab8e5b8b692b/html5/thumbnails/50.jpg)
RESPONSE{ "@iot.id": 6, "result": "334.6", "phenomenonTime": "2016-03-02T20:37:00.598Z", ...}
![Page 51: Citizen Sensing with the SenosrThings API](https://reader031.fdocuments.us/reader031/viewer/2022030305/58715c6b1a28ab8e5b8b692b/html5/thumbnails/51.jpg)
THEFINISHEDPICTURE
![Page 52: Citizen Sensing with the SenosrThings API](https://reader031.fdocuments.us/reader031/viewer/2022030305/58715c6b1a28ab8e5b8b692b/html5/thumbnails/52.jpg)
![Page 53: Citizen Sensing with the SenosrThings API](https://reader031.fdocuments.us/reader031/viewer/2022030305/58715c6b1a28ab8e5b8b692b/html5/thumbnails/53.jpg)
![Page 54: Citizen Sensing with the SenosrThings API](https://reader031.fdocuments.us/reader031/viewer/2022030305/58715c6b1a28ab8e5b8b692b/html5/thumbnails/54.jpg)
![Page 55: Citizen Sensing with the SenosrThings API](https://reader031.fdocuments.us/reader031/viewer/2022030305/58715c6b1a28ab8e5b8b692b/html5/thumbnails/55.jpg)
![Page 56: Citizen Sensing with the SenosrThings API](https://reader031.fdocuments.us/reader031/viewer/2022030305/58715c6b1a28ab8e5b8b692b/html5/thumbnails/56.jpg)