1,965
edits
(Created page with "''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...") |
mNo edit summary |
||
|
''Back to [[Cumulus MX Local API]]''
The general format of the
<pre>http://localhost:8998
Where xxxx is the specific request as below possibly followed by a startdate. If startdate is omitted you get the all data as present in [https://www.cumuluswiki.org/a/Cumulusmx.db#The_Recent_History_Data_Table|The Recent History Data Table]. If startdate is present you get the subset of data present in the daily database starting on that date until the end.
===
Returns inside temp, dew point, apparent temp, feels like, wind chill, heat index, outdoor temp as a JSON object, each value is an array of timestamp (JavaScript number) and value pairs...
{
"intemp": [[timestamp1,value1],[timestamp2,value2]...],
"dew": [[timestamp1,value1],[timestamp2,value2]...],
"apptemp": [[timestamp1,value1],[timestamp2,value2]...],
"feelslike": [[timestamp1,value1],[timestamp2,value2]...],
"wchill": [[timestamp1,value1],[timestamp2,value2]...],
"heatindex": [[timestamp1,value1],[timestamp2,value2]...],
"temp": [[timestamp1,value1],[timestamp2,value2]...]
}
=== winddata.json ===
Same as temp data...
{
"
"wspeed": [[,],[,]...]
}
=== raindata.json ===
Same as temp...
{
"
"rrate": [[,],[,]...]
}
=== pressdata.json ===
Same as temp...
{
"
}
=== wdirdata.json ===
Same as temp...
{
"
"avgbearing": [[,],[,]...]
}
=== humdata.json ===
Same as temp...
{
"hum": [[,],[,]...],
"inhum": [[,],[,]...]
}
=== solardata.json ===
Same as temp...
{
"UV": [[,],[,]...],
"SolarRad": [[,],[,]...],
"CurrentSolarMax": [[,],[,]...]
}
=== sunhours.json ===
Same as temp...
{
"sunshours": [[,],[,]...]
}
=== dailyrain.json ===
Same as temp...
{
"dailyrain": [[,],[,]...]
}
=== dailytemp.json ===
{
"mintemp": [[,],[,]...],
"maxtemp": [[,],[,]...],
"avgtemp": [[,],[,]...]
}
=== units.json or graphconfig.json ===
Returns the units of measurement used for the graph values above.
{
"temp": {"units": "C|F", "decimals": 0|1|2},
"wind": {"units": "windunit", "decimals": N},
"rain": {"units": "rainunit", "decimals": N},
"press": {"units": "pressunit", "decimals": N},
"hum": {decimals": N},
"UV": {decimals": N}
}
== Example response ==
A truncated response for humdata.json...
{"hum":[[1602861480000,75],[1602861540000,75],[1602861600000,75],[1602861660000,74],....]}
| |||