# getDaySummary

**Identifier:** `openweather_getDaySummary`

**Provider:** [OpenWeather](https://kirha.com/providers/openweather.md)

Get aggregated weather data summary for a specific day including min/max temperatures, precipitation totals, and conditions throughout different periods of the day.

## Run it with the CLI

```bash
kirha tools run openweather_getDaySummary \
  --input '{
    "latitude": -90,
    "longitude": -180,
    "date": "<date>"
  }'
```

`--input` takes a JSON object that matches the input schema. Pass `--input -` to read it from stdin.

## Call it over HTTP

```bash
curl https://api.kirha.com/tools/v1/execute \
  --request POST \
  --header 'Content-Type: application/json' \
  --header 'Authorization: **********' \
  --data '{
  "tool_name": "openweather_getDaySummary",
  "input": {
    "latitude": -90,
    "longitude": -180,
    "date": "<date>"
  }
}'
```

Replace the stars with an API key from https://app.kirha.com/api-keys.

## Input schema

```json
{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "properties": {
    "date": {
      "description": "Date in ISO 8601 format (YYYY-MM-DD) to get the day summary for. Must be in the past.",
      "type": "string"
    },
    "latitude": {
      "description": "Latitude of the location",
      "maximum": 90,
      "minimum": -90,
      "type": "number"
    },
    "longitude": {
      "description": "Longitude of the location",
      "maximum": 180,
      "minimum": -180,
      "type": "number"
    }
  },
  "required": [
    "latitude",
    "longitude",
    "date"
  ],
  "type": "object"
}
```

## Output schema

```json
{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "additionalProperties": false,
  "properties": {
    "cloudCover": {
      "additionalProperties": false,
      "properties": {
        "afternoon": {
          "type": "number"
        }
      },
      "type": "object"
    },
    "context": {
      "type": "string"
    },
    "date": {
      "type": "string"
    },
    "humidity": {
      "additionalProperties": false,
      "properties": {
        "afternoon": {
          "type": "number"
        }
      },
      "type": "object"
    },
    "latitude": {
      "type": "number"
    },
    "longitude": {
      "type": "number"
    },
    "precipitation": {
      "additionalProperties": false,
      "properties": {
        "total": {
          "type": "number"
        }
      },
      "required": [
        "total"
      ],
      "type": "object"
    },
    "pressure": {
      "additionalProperties": false,
      "properties": {
        "afternoon": {
          "type": "number"
        }
      },
      "type": "object"
    },
    "temperature": {
      "additionalProperties": false,
      "properties": {
        "afternoon": {
          "type": "number"
        },
        "evening": {
          "type": "number"
        },
        "max": {
          "type": "number"
        },
        "min": {
          "type": "number"
        },
        "morning": {
          "type": "number"
        },
        "night": {
          "type": "number"
        }
      },
      "required": [
        "min",
        "max"
      ],
      "type": "object"
    },
    "timezone": {
      "type": "string"
    },
    "units": {
      "type": "string"
    },
    "wind": {
      "additionalProperties": false,
      "properties": {
        "max": {
          "additionalProperties": false,
          "properties": {
            "direction": {
              "type": "number"
            },
            "speed": {
              "type": "number"
            }
          },
          "required": [
            "speed",
            "direction"
          ],
          "type": "object"
        }
      },
      "required": [
        "max"
      ],
      "type": "object"
    }
  },
  "required": [
    "context",
    "latitude",
    "longitude",
    "timezone",
    "date",
    "units",
    "cloudCover",
    "humidity",
    "precipitation",
    "temperature",
    "pressure",
    "wind"
  ],
  "type": "object"
}
```

-----

[All OpenWeather tools](https://kirha.com/providers/openweather.md) · [< Back to tools list](https://kirha.com/tools.md)