API Today/Yesterday Data

From Cumulus Wiki

Back to Cumulus MX Local API

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

Each record in the returned array has the general format...

["Description", "Todays_value", "Todays_time", "Yesterdays_value", "Yesterdays_time"]

The general format of the today/yesterday data API request is as follows...

http://localhost:8998:/api/todayyest/xxxxx

Where xxxx is the specific request as below:

temp.json

Returns temperature data for today and yesterday.

An example response is given below...

{
   "data": [
       ["High Temperature", "11.5 °C", "15:36", "10.5 °C", "15:56"],
       ["Low Temperature", "7.6 °C", "05:00", "4.6 °C", "04:41"],
       ["Temperature Range", "3.9 °C", " ", "5.9 °C", " "],
       ["High Apparent Temperature", "10.9 °C", "15:35", "10.1 °C", "16:38"],
       ["Low Apparent Temperature", "6.4 °C", "05:28", "3.1 °C", "04:41"],
       ["High Feels Like", "11.5 °C", "15:36", "10.5 °C", "16:02"],
       ["Low Feels Like", "7.6 °C", "05:00", "4.6 °C", "04:41"],
       ["High Humidex", "12.3", "15:36", "11.3", "15:56"],
       ["High Dew Point", "8.7 °C", "15:31", "8.4 °C", "15:56"],
       ["Low Dew Point", "6.4 °C", "04:46", "3.0 °C", "04:41"],
       ["Low Wind Chill", "7.6 °C", "05:00", "4.6 °C", "04:41"],
       ["High Heat Index", "11.5 °C", "15:36", "10.5 °C", "15:56"]
   ]
}

hum.json

{
   "data": [
       ["High Humidity", "96 %", "01:04", "96 %", "05:43"],
       ["Low Humidity", "83 %", "15:37", "82 %", "01:34"]
   ]
}

rain.json

{
   "data": [
       ["Total Rain", "0.0 mm", " ", "0.0 mm", " "],
       ["High Rain Rate", "0.0 mm/hr", "00:00", "0.0 mm/hr", "00:00"],
       ["High Hourly Rain", "0.0 mm", "00:00", "0.0 mm", "00:00"]
   ]
}

wind.json

{
   "data": [
       ["Highest Gust", "10.0 mph", "13:38", "8.0 mph", "01:27"],
       ["Highest Speed", "4.8 mph", "14:14", "3.1 mph", "12:07"],
       ["Wind Run", "20.0 miles", " ", "23.0 miles", " "],
       ["Dominant Direction", "179 ° S", " ", "333 ° NNW", " "]
   ]
}

pressure.json

{
   "data": [
       ["High Pressure", "1024.6 hPa", "10:18", "1025.8 hPa", "00:00"],
       ["Low Pressure", "1021.8 hPa", "15:54", "1022.4 hPa", "16:24"]
   ]
}

solar.json

{
   "data": [
       ["High Solar Radiation", "171 W/m2", "13:51", "216 W/m2", "09:53"],
       ["Hours of Sunshine", "0.00 hrs", " ", "0.58 hrs", " "]
   ]
}