API Records Data

Revision as of 14:44, 18 October 2020 by Mcrossley (talk | contribs)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)

Back to Cumulus MX Local API

All Time Records

The all time records data response is designed for displaying on a web page, the text is formatted with HTML codes.

The general format of the records data API request is as follows...

http://localhost:8998:/api/records/alltime/xxxxx

Where xxxx is the specific request as below:

temperature.json

Returns all time temperature records. An example response is given below...

{
   "data": [
       ["High temperature", "34.6 °C", "25 July 2019 15:39"],
       ["Low temperature", "-12.5 °C", "20 December 2010 07:17"],
       ["High dew point", "23.7 °C", "25 July 2019 16:35"],
       ["Low dew point", "-13.5 °C", "20 December 2010 07:20"],
       ["High apparent temp", "38.7 °C", "25 July 2019 16:35"],
       ["Low apparent temp", "-15.8 °C", "20 December 2010 07:17"],
       ["High feels like", "37.6 °C", "25 July 2019 16:40"],
       ["Low feels like", "-12.5 °C", "20 December 2010 07:20"],
       ["High Humidex", "42.0  ", "12 August 2020 14:12"],
       ["Low wind chill", "-12.5 °C", "20 December 2010 07:17"],
       ["High heat index", "40.2 °C", "25 July 2019 16:35"],
       ["Highest minimum temp", "18.8 °C", "06 September 2016 04:07"],
       ["Lowest maximum temp", "-4.4 °C", "20 December 2010 00:00"],
       ["High daily temp range", "21.3 °C", "26 March 3912"],
       ["Low daily temp range", "0.9 °C", "19 January 2017"]
   ]
}

humidity.json

Returns all time humidity records. An example response is given below...

{
   "data": [
       ["High humidity", "100 %", "23 January 2010 01:10"],
       ["Low humidity", "17 %", "25 March 2017 14:19"]
   ]
}

pressure.json

{
   "data": [
       ["High pressure", "1048.5 hPa", "20 January 2020 00:09"],
       ["Low pressure", "962.9 hPa", "15 February 2014 00:13"]
   ]
}

wind.json

{
   "data": [
       ["High gust", "53.0 mph", "12 February 2014 17:32"],
       ["High wind speed", "25.0 mph", "12 February 2014 17:35"],
       ["High daily windrun", "352.9 miles", "31 March 2015"]
   ]
}

rain.json

{
   "data": [
       ["High rain rate", "230.4 mm/hr", "29 April 2016 01:52"],
       ["High hourly rain", "29.0 mm", "16 June 2016 16:09"],
       ["High daily rain", "44.6 mm", "16 June 2016"],
       ["Highest monthly rainfall", "170.6 mm", "October 2013"],
       ["Longest dry period", "26 days", "12 July 2018"],
       ["Longest wet period", "33 days", "19 January 2014"]
   ]
}


Monthly Records

The monthly records data response is designed for displaying on a web page, the text is formatted with HTML codes.

The general format of the records data API request is as follows...

http://localhost:8998:/api/records/month/ZZ/xxxxx

Where ZZ is the month number (1 - 12) and xxxx is the specific request as below:

temperature.json

{
   "data": [
       ["High temperature", "14.0 °C", "09 January 2015 22:45"],
       ["Low temperature", "-7.9 °C", "29 January 2011 08:07"],
       ["High dew point", "11.8 °C", "24 January 2016 19:34"],
       ["Low dew point", "-8.8 °C", "29 January 2011 08:10"],
       ["High apparent temp", "12.9 °C", "24 January 2016 14:38"],
       ["Low apparent temp", "-10.9 °C", "29 January 2011 08:26"],
       ["High feels like", "13.5 °C", "24 January 2016 14:40"],
       ["Low feels like", "-8.7 °C", "18 January 2013 18:19"],
       ["High Humidex", "-999.0  ", "01 January 0001 00:00"],
       ["Low wind chill", "-8.7 °C", "18 January 2013 18:19"],
       ["High heat index", "14.0 °C", "09 January 2015 22:45"],
       ["Highest minimum temp", "9.1 °C", "13 January 2011 00:15"],
       ["Lowest maximum temp", "0.2 °C", "23 January 2019 02:52"],
       ["High daily temp range", "10.4 °C", "01 January 2019"],
       ["Low daily temp range", "0.9 °C", "19 January 2017"]
   ]
}

humidity.json

{
   "data": [
       ["High humidity", "100 %", "15 February 2014 12:28"],
       ["Low humidity", "31 %", "26 February 2019 14:44"]
   ]
}

pressure.json

{
   "data": [
       ["High pressure", "1043.6 hPa", "29 March 2020 13:34"],
       ["Low pressure", "975.7 hPa", "28 March 2016 04:23"]
   ]
}

wind.json

{
   "data": [
       ["High gust", "40.0 mph", "17 April 2013 20:14"],
       ["High wind speed", "22.0 mph", "29 April 2012 17:07"],
       ["High daily windrun", "258.9 miles", "29 April 2012"]
   ]
}

rain.json

{
   "data": [
       ["High rain rate", "132.4 mm/hr", "28 May 2015 02:00"],
       ["High hourly rain", "5.9 mm", "22 May 2011 02:10"],
       ["High daily rain", "25.2 mm", "19 May 2015"],
       ["Highest monthly rainfall", "124.4 mm", "May 2015"],
       ["Longest dry period", "20 days", "21 May 2020"],
       ["Longest wet period", "14 days", "18 May 2011"]
   ]
}

This Month Records

The this months records data response is designed for displaying on a web page, the text is formatted with HTML codes.

The responses are the same format as the monthly records above

The general format of the records data API request is as follows...

http://localhost:8998:/api/records/thismonth/xxxxx

Where xxxx is the specific request as below:

temperature.json
humidity.json
pressure.json
wind.json
rain.json

This Year Records

The this months records data response is designed for displaying on a web page, the text is formatted with HTML codes.

The responses are the same format as the monthly records above

The general format of the records data API request is as follows...

http://localhost:8998:/api/records/thismonth/xxxxx

Where xxxx is the specific request as below:

temperature.json
humidity.json
pressure.json
wind.json
rain.json