Skip to content

Instantly share code, notes, and snippets.

@liangsteve
Last active December 19, 2018 18:53
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 liangsteve/9bbc095c9e417af63a6e to your computer and use it in GitHub Desktop.
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
{
"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
}
}
{
"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
}
}
{
"description": "My house",
"name":"My house",
"encodingType": "application/vnd.geo+json",
"location": {
"type": "Point",
"coordinates": [
-114.130463,
51.083693
]
},
"Things": [
{
"@iot.id": 152718
}
]
}
{
"result": "53",
"Datastream":{"@iot.id":152723}
}
{
"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"
}
{
"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"
}
{
"name":"Arduino Weather Station",
"description": "This is a weather station based on Arduino",
"properties": {
"owner": "Steve Liang"
}
}
{
"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"}
}
]
}
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