get_sun_times
Calculate sunrise, sunset, and other sun event times for a specific date and location using latitude and longitude. Outputs in JSON or text format, with customizable timezone settings.
Instructions
Get sun rise/set and other sun event times for a specific date and location
Input Schema
Name | Required | Description | Default |
---|---|---|---|
date | No | Date to get sun times for (YYYY-MM-DD format). Defaults to current date. | |
format | No | Output format (json or text) | |
latitude | Yes | Latitude for location-specific calculations | |
longitude | Yes | Longitude for location-specific calculations | |
timezone | No | Timezone for the results. Defaults to UTC. |
Input Schema (JSON Schema)
{
"$schema": "http://json-schema.org/draft-07/schema#",
"additionalProperties": false,
"properties": {
"date": {
"description": "Date to get sun times for (YYYY-MM-DD format). Defaults to current date.",
"type": "string"
},
"format": {
"description": "Output format (json or text)",
"enum": [
"json",
"text"
],
"type": "string"
},
"latitude": {
"description": "Latitude for location-specific calculations",
"maximum": 90,
"minimum": -90,
"type": "number"
},
"longitude": {
"description": "Longitude for location-specific calculations",
"maximum": 180,
"minimum": -180,
"type": "number"
},
"timezone": {
"description": "Timezone for the results. Defaults to UTC.",
"type": "string"
}
},
"required": [
"latitude",
"longitude"
],
"type": "object"
}