Skip to content

Commit

Permalink
Adding new example files
Browse files Browse the repository at this point in the history
  • Loading branch information
yahba committed Aug 17, 2018
1 parent 91385fa commit d5bf4f9
Show file tree
Hide file tree
Showing 4 changed files with 426 additions and 0 deletions.
88 changes: 88 additions & 0 deletions example_items/ex_flow_sensor_item.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,88 @@
{
"refCatalogueSchema": "generic_iotdevice_schema.json",
"id": "70b3d58ff0031d5a",
"resourceType": "flowsensor",
"tags": [
"flow",
"water"
],
"refCatalogueSchemaRelease": "0.1.0",
"latitude": {
"value": 13.024457,
"ontologyRef": "http://www.w3.org/2003/01/geo/wgs84_pos#"
},
"longitude": {
"value": 77.562875,
"ontologyRef": "http://www.w3.org/2003/01/geo/wgs84_pos#"
},
"owner": {
"name": "IISC",
"website": "http://www.iisc.ac.in"
},
"provider": {
"name": "Robert Bosch Centre for Cyber Physical Systems, IISc",
"website": "http://rbccps.org"
},
"geoLocation": {
"address": "80 ft Road, Bangalore, 560012"
},
"accessMechanism": {
"requestAccessSite": {
"describes": "URI for getting permissions to access the device",
"value": "http://rbccps.org/middleware/requestAccess"
},
"accessEndPoint": {
"value": "https://rbccps.org/middleware/api/{api_ver}/db",
"describes": "End point to access the archived values (database access endpoint)"
},
"subscriptionEndPoint": {
"value": "mqtt://rbccps.org/subscription/live",
"describes": "End point for subscribing to LIVE data"
},
"additionalResourceInfo": {
"value": "http://rbccps.org/resourceInfo/{id}",
"describes": "Additional information about the device"
},
"resourceAPIInfo": {
"value": "http://rbccps.org/resourceInfo/api",
"describes": "Information on how to use various APIs (access, update, cat) associated with this resource"
}
},
"data_schema": {
"type": "object",
"properties": {
"timestamp": {
"type": "number",
"description": "Sampling Time in EPOCH format",
"units": "seconds",
"permissions": "read",
"accessModifier": "public"
},
"flow": {
"type": "number",
"description": "Raw ADC value of the water flow",
"units": "unitless",
"permissions": "read",
"accessModifier": "public"
},
"battery": {
"type": "number",
"description": "1000 times the battery voltage, 255 if connected to DC",
"units": "volts",
"permissions": "read",
"accessModifier": "public"
}

},
"additionalProperties": false
},
"serialization_from_device": {
"format": "protocol-buffers",
"schema_ref": {
"type": "proto 2",
"mainMessageName": "Sensed",
"link": "https://raw.githubusercontent.com/mukuntharun/flowsensor/master/protos/sensed.proto"
}
}

}
56 changes: 56 additions & 0 deletions example_items/ex_intel_traffic_data.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,56 @@
{
"refCatalogueSchema": "isco_base_schema.json",
"id": "863977033828919",
"refCatalogueSchemaRelease":"0.1.0",
"tags": [
"traffic data",
"mobileye",
"saftey"
],
"owner": {
"name": "INTEL"
},
"provider": {
"name": "INTEL"
},
"accessMechanism": {
"requestAccessSite": {
"describes": "URI for getting permissions to access the device",
"value": "http://rbccps.org/middleware/requestAccess"
},
"subscriptionEndPoint": {
"value": "rtmp://10.156.14.206:1935/live1/idXYZ",
"describes": "Link to access live stream for this camera"
},
"accessEndPoint": {
"value": "http://10.156.14.206/archive/idXYZ/<file.mp4>",
"describes": "Link to access stored files for a given camera. <.../archive/idXYZ> lists all available files"
}
},
"data_schema": {
"type": "object",
"properties": {
"_id": {
"type": "string",
"units": "dimensionless",
"permissions": "read"
},
"deviceCode": {
"type": "string",
"units": "dimensionless",
"permissions": "read"
},
"location": {
"type": "object",
"permissions": "read",
"properties": {
"wardName": {
"type": "string",
"units": "dimensionless"
}
}
}
}

}
}
105 changes: 105 additions & 0 deletions example_items/ex_pollution_sensor_item.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,105 @@
{
"refCatalogueSchema": "generic_iotdevice_schema.json",
"id": "70b3d58ff0031dd6",
"resourceType": "pollution",
"tags": [
"co2",
"pm2.5",
"pm10",
"noise"
],
"refCatalogueSchemaRelease": "0.1.0",
"latitude": {
"value": 13.012230,
"ontologyRef": "http://www.w3.org/2003/01/geo/wgs84_pos#"
},
"longitude": {
"value": 77.569135,
"ontologyRef": "http://www.w3.org/2003/01/geo/wgs84_pos#"
},
"owner": {
"name": "IISC",
"website": "http://www.iisc.ac.in"
},
"provider": {
"name": "Robert Bosch Centre for Cyber Physical Systems, IISc",
"website": "http://rbccps.org"
},
"geoLocation": {
"address": "80 ft Road, Bangalore, 560012"
},
"accessMechanism": {
"requestAccessSite": {
"describes": "URI for getting permissions to access the device",
"value": "http://rbccps.org/middleware/requestAccess"
},
"accessEndPoint": {
"value": "https://rbccps.org/middleware/api/{api_ver}/db",
"describes": "End point to access the archived values (database access endpoint)"
},
"subscriptionEndPoint": {
"value": "mqtt://rbccps.org/subscription/live",
"describes": "End point for subscribing to LIVE data"
},
"additionalResourceInfo": {
"value": "http://rbccps.org/resourceInfo/{id}",
"describes": "Additional information about the device"
},
"resourceAPIInfo": {
"value": "http://rbccps.org/resourceInfo/api",
"describes": "Information on how to use various APIs (access, update, cat) associated with this resource"
}
},
"data_schema": {
"type": "object",
"properties": {
"timestamp": {
"type": "number",
"description": "Sampling Time in EPOCH format",
"units": "seconds",
"permissions": "read",
"accessModifier": "public"
},
"PM2_5": {
"type": "number",
"description": "PM2.5 level in ug/meter^3",
"units": "ug/Meter^3",
"permissions": "read",
"accessModifier": "public"
},
"PM10": {
"type": "number",
"description": "PM10 level in ug/meter^3",
"units": "ug/Meter^3",
"permissions": "read",
"accessModifier": "public"
},
"NOISELEVEL": {
"type": "number",
"description": "Ambient noise level in dBA",
"units": "dBA",
"permissions": "read",
"accessModifier": "public"
},

"CO2": {
"type": "number",
"description": "Ambient CO2 level in ppm",
"units": "ppm",
"permissions": "read",
"accessModifier": "public"
}

},
"additionalProperties": false
},
"serialization_from_device": {
"format": "protocol-buffers",
"schema_ref": {
"type": "proto 2",
"mainMessageName": "pollution",
"link": "https://raw.githubusercontent.com/mukuntharun/flowsensor/master/protos/sensed.proto"
}
}

}
Loading

0 comments on commit d5bf4f9

Please sign in to comment.