sunshine_hours
Retrieve predicted sunshine hours for a Swiss location over a specified time window, using hour offsets from today's start.
Instructions
Get sunshine hours for a location and offset period.
Args:
location (str): Location name (e.g., "Zurich").
lead_time_start_swiss (int): Start hour offset from today at 00:00 Swiss local time. Min offset time is 2 hours.
lead_time_end_swiss (int): End hour offset from today at 00:00 Swiss local time. Max offset time is 121 hours.
Returns:
float: Predicted sunshine hours for the specified period.
Examples:
sunshine_hours("Zurich", 2, 24) # Total sunshine hours today
sunshine_hours("Zurich", 24, 48) # Total sunshine hours tomorrow
sunshine_hours("Zurich", 30, 36) # Total sunshine hours tomorrow morning
sunshine_hours("Zurich", 36, 42) # Total sunshine hours tomorrow afternoon
sunshine_hours("Zurich", 42, 48) # Total sunshine hours tomorrow evening
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| location | Yes | ||
| lead_time_end_swiss | Yes | ||
| lead_time_start_swiss | Yes |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |