Introduction
Examples
Documentation
Sensors
Raw Sensor Data
Variables
Themes
Sensor Types
Sensor
Individual Raw Sensor Data
UO API v1.1
Raw Sensor Data
Get Sensors
GET
http://uoweb3.ncl.ac.uk/api/v1.1/sensors/data/xlsx/
Parameters
Time Slice
Last n days
Selects Data from the last n days
Field | Format | Example |
---|---|---|
last_n_days | Integer | 3 |
Start & End Times
Time slice for which data in queried
Field | Format | Example |
---|---|---|
starttime | strftime "%Y%m%d%H%M%S" or "%Y%m%d" (http://strftime.org/) | 20150101 |
endtime | strftime "%Y%m%d%H%M%S" or "%Y%m%d" (http://strftime.org/) | 20160101 |
Last n Records
select the number of latest records to retrieve
Field | Format | Example |
---|---|---|
last_n_records | Integer | 200 |
Sensor Type
Sensor Type
Subset the sensors by the variables that they record
Field | Format | Example |
---|---|---|
sensor_type | Text | NO2 |
Theme
Subset the sensor by their theme
Field | Format | Example |
---|---|---|
theme | Text | Weather |
Sensor Broker
Subset the sensors by their broker/manufacturer
Field | Format | Example |
---|---|---|
broker | Text | Emote Air Quality Sensor |
Location
Polygon (Well Known Binary)
Polygon that the sensor falls in
Field | Format | Example |
---|---|---|
polygon_wkb | Well-Known Binary (WKB) Format | 01030000000100000005000000ffffffff3f9..... |
Bounding Box
Bounding box the sensors fall inside off
Field | Format | Example |
---|---|---|
bbox_p1_x | Float | -1.4 |
bbox_p1_y | Float | 55.4 |
bbox_p2_x | Float | -1.2 |
bbox_p2_y | Float | 56.1 |
Sensor Region
Region sensor lies inside of
Field | Format | Example |
---|---|---|
subset_layer | Text | Post code Sectors |
subset_shapes | Text | NE10 0 |
Data
Data Variable
Variables to retrieve data for
Field | Format | Example |
---|---|---|
data_variable | Text | Temperature |
Example Use
http://uoweb3.ncl.ac.uk/api/v1.1/sensors/data/xlsx/?starttime=20180117100000&endtime=20180117120000&theme=Bee+Hive