Sites

List the daylight readings for a project

List the daylight readings for a specified date range and aggregate for a project

get

/weather/projects/{projectId}/sites/{siteId}

Authorizations
Path parameters
projectIdstringrequired

The ID of the project

siteIdstringrequired

The ID of the project

Query parameters
startstring · date-timerequired

The inclusive start date

endstring · date-timerequired

The exclusive end date

aggregationstring · enum

The aggregation to group the datums by

Options: year, month, day, hour, 15minute, 5minute
Responses
curl -L \
  --url 'https://api.ecosuite.io//weather/projects/{projectId}/sites/{siteId}?start=2025-02-23T23%3A50%3A21.276Z&end=2025-02-23T23%3A50%3A21.276Z' \
  --header 'Authorization: YOUR_API_KEY'
{
  "range": {
    "localStartDate": "2025-02-23T23:50:21.276Z",
    "localEndDate": "2025-02-23T23:50:21.276Z"
  },
  "aggregation": "year",
  "weather": [
    {
      "localDate": "2025-02-23T23:50:21.276Z",
      "conditions": {
        "sky": "text",
        "icon": "text"
      }
    }
  ]
}