Last active
December 19, 2018 18:53
-
-
Save liangsteve/9bbc095c9e417af63a6e to your computer and use it in GitHub Desktop.
SensorUp SensorThings API Webinar #4 of 4 - Connect Your Sensor - 2015-12-17
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ | |
"description": "Thermometer readings from SHT31", | |
"name":"Thermometer readings", | |
"observationType": "http://www.opengis.net/def/observationType/OGC-OM/2.0/OM_Measurement", | |
"unitOfMeasurement": { | |
"name": "degree Celsius", | |
"symbol": "degC", | |
"definition": "http://www.qudt.org/qudt/owl/1.0.0/unit/Instances.html#DegreeCelsius" | |
}, | |
"Sensor": { | |
"@iot.id": 152722 | |
}, | |
"ObservedProperty": { | |
"@iot.id": 152721 | |
}, | |
"Thing": { | |
"@iot.id": 152718 | |
} | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ | |
"name":"oven temperature", | |
"description": "This is a datastream for an oven’s internal temperature.", | |
"unitOfMeasurement": { | |
"name": "degree Celsius", | |
"symbol": "°C", | |
"definition": "http://unitsofmeasure.org/ucum.html#para-30" | |
}, | |
"observationType": "http://www.opengis.net/def/observationType/OGC-OM/2.0/OM_Measurement", | |
"ObservedProperty": { | |
"name": "DewPoint Temperature", | |
"definition": "http://dbpedia.org/page/Dew_point", | |
"description": "The dewpoint temperature is the temperature to which the air must be cooled, at constant pressure, for dew to form. As the grass and other objects near the ground cool to the dewpoint, some of the water vapor in the atmosphere condenses into liquid water on the objects." | |
}, | |
"Sensor": { | |
"name":"RS Pro temperature probe", | |
"encodingType": "application/pdf", | |
"metadata": "http://uk.rs-online.com/web/p/temperature-probes/3428978/.", | |
"description": "This high temperature probe features a sprung stainless steel sensing disc. The disc is contained within a ceramic outer sheath. When the disc is in contact with the surface the ceramic outer acts as a draught shield thus ensuring a true surface measurement." | |
}, | |
"Thing": { | |
"@iot.id": 772954 | |
} | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ | |
"description": "My house", | |
"name":"My house", | |
"encodingType": "application/vnd.geo+json", | |
"location": { | |
"type": "Point", | |
"coordinates": [ | |
-114.130463, | |
51.083693 | |
] | |
}, | |
"Things": [ | |
{ | |
"@iot.id": 152718 | |
} | |
] | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ | |
"result": "53", | |
"Datastream":{"@iot.id":152723} | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ | |
"name": "DewPoint Temperature", | |
"description": "The dewpoint temperature is the temperature to which the air must be cooled, at constant pressure, for dew to form. As the grass and other objects near the ground cool to the dewpoint, some of the water vapor in the atmosphere condenses into liquid water on the objects.", | |
"definition": "http://dbpedia.org/page/Dew_point" | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ | |
"name":"SHT15", | |
"metadata": "https://cdn.sparkfun.com/datasheets/Sensors/Pressure/Sensirion_Humidity_SHT1x_Datasheet_V5.pdf", | |
"encodingType": "application/pdf", | |
"description": "This is a tempeature and humidity sensor board based on Sensirion SHT15" | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ | |
"name":"Arduino Weather Station", | |
"description": "This is a weather station based on Arduino", | |
"properties": { | |
"owner": "Steve Liang" | |
} | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ | |
"description": "Akureyri Weather Station, Icelandic Met Office", | |
"properties": { | |
"name": "Akureyri", | |
"type": "manned synoptic station", | |
"station number": "422", | |
"wmo number": "4063", | |
"abbreviation": "ak", | |
"forecast region": "North East(na)", | |
"height above sea-level": "23.0 a.s.l.", | |
"beignning of weather observations": "1881", | |
"station owned by": "Veðurstofa Íslands" | |
}, | |
"Locations": [ | |
{ | |
"encodingType": "application/vnd.geo+json", | |
"description": "Akureyri Weather Station, Icelandic Met Office", | |
"location": {"coordinates":[-18.1002,65.6856],"type":"Point"} | |
} | |
] | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
let i=1 | |
COUNT=75 | |
while [ $COUNT -gt 0 ]; do | |
curl --request POST \ | |
--data '{"result":'" $COUNT"',"Datastream":{"@iot.id":325584} }' \ | |
--header "Content-Type: application/json" \ | |
http://brendan-sta-03.sensorup.com/OGCSensorThings/v1.0/Observations | |
let COUNT=(COUNT-1) | |
sleep 1 | |
done |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment