get_weather_by_name
Fetch weather data for any location by name to support stargazing planning and astronomical calculations with location-specific conditions.
Instructions
Fetches weather data for a specified location by its name using the QWeather API.
Args: place_name (str): The name of the location (e.g., city, region) 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 |
|---|---|---|---|
| place_name | Yes |