Sunrise Sunset Tools

Configuration File: sunrise_sunset_tools.json Tool Type: Local Tools Count: 1

This page contains all tools defined in the sunrise_sunset_tools.json configuration file.

Available Tools

SunriseSunset_get_times (Type: BaseRESTTool)

Get sunrise, sunset, solar noon, and twilight times for any location on Earth using the Sunrise-S…

SunriseSunset_get_times tool specification

Tool Information:

  • Name: SunriseSunset_get_times

  • Type: BaseRESTTool

  • Description: Get sunrise, sunset, solar noon, and twilight times for any location on Earth using the Sunrise-Sunset.org API. Returns times in UTC ISO 8601 format. Supports historical dates. No authentication required. Useful for astronomy, agriculture, photography planning, circadian rhythm research, and solar energy calculations.

Parameters:

  • lat (number) (required) Latitude in decimal degrees (-90 to 90). Examples: 40.7128 (New York), 51.5074 (London), 35.6762 (Tokyo), 48.8566 (Paris), -33.8688 (Sydney)

  • lng (number) (required) Longitude in decimal degrees (-180 to 180). Examples: -74.0060 (New York), -0.1278 (London), 139.6503 (Tokyo), 2.3522 (Paris), 151.2093 (Sydney)

  • date ([‘string’, ‘null’]) (optional) Date in YYYY-MM-DD format, or ‘today’. Default: today. Examples: ‘2024-06-21’, ‘2024-12-21’, ‘today’

Example Usage:

query = {
    "name": "SunriseSunset_get_times",
    "arguments": {
        "lat": "example_value",
        "lng": "example_value"
    }
}
result = tu.run(query)