Returns Energy API response - Given a single lat/lon.
GET {{baseUrl}}/history/energy?lat={{lat}}&lon={{lon}}&start_date=<integer>&end_date=<integer>&tp=<string>&threshold=<number>&units=<string>&callback=<string>&key=<string>
Returns aggregate energy specific historical weather fields, over a specified time period.
Request Params
Key | Datatype | Required | Description |
---|---|---|---|
lat | string | ||
lon | string | ||
start_date | string | Start Date (YYYY-MM-DD or YYYY-MM-DD:HH). | |
end_date | string | End Date (YYYY-MM-DD or YYYY-MM-DD:HH). | |
tp | string | Time period to aggregate by (daily, monthly) | |
threshold | string | Temperature threshold to use to calculate degree days (default 18 C) | |
units | string | Convert to units. Default Metric See <a target='blank' href='/api/requests'>units field description</a> | |
callback | string | Wraps return in jsonp callback. Example: callback=func | |
key | string | Your registered API key. |