get_weather_by_position
Retrieve weather data for any location using geographic coordinates to support stargazing planning and astronomical observations.
Instructions
Fetches weather data for a specified location by its geographic coordinates (latitude and longitude) using the QWeather API.
Args: lat (float): The latitude of the location for which weather data is requested. lon (float): The longitude of the location for which weather data is requested.
Returns: Dict with keys "data", "_meta". "data" contains the weather data.
Raises:
ValueError: If the QWEATHER_API_KEY environment variable is not set, preventing API access.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| lat | Yes | ||
| lon | Yes |