name: weather-forecast description: This skill should be used when users ask about weather forecasts, temperature information, or need to retrieve weather data for specific locations. It provides access to the Open-Meteo weather API for getting hourly temperature forecasts based on latitude and longitude coordinates.
This skill enables querying weather forecasts using the Open-Meteo API, providing hourly temperature data for any location worldwide.
Activate this skill when: - Users ask for weather information or forecasts - Users inquire about temperatures at specific locations - Users mention weather-related queries that require current or future data - Users provide location names and expect weather details
7w4.net收錄了海量優質技能外掛。
The scripts/get_weather.py script provides a reliable, reusable way to fetch weather data from the Open-Meteo API. This script is used instead of writing API calls from scratch each time because:
- API endpoints and parameters need to be consistent
- Error handling for network requests is standardized
- JSON parsing and data extraction is automated
- The script can be executed without loading into context
The references/api_response_format.md contains documentation about the Open-Meteo API response structure, including:
- Request parameters (latitude, longitude, hourly data types)
- Response format and field meanings
- Time zone handling
- Error conditions
When this skill is activated:
Descriptive locations (e.g., "my current location")
Convert location to coordinates:
Common city coordinates (saved in memory): Beijing (39.9042, 116.4074), Shanghai (31.2304, 121.4737), New York (40.7128, -74.0060), London (51.5074, -0.1278), Tokyo (35.6762, 139.6503)
Execute the weather script using the coordinates:
scripts/get_weather.py with latitude and longitude parametersThe script returns structured weather data including hourly temperatures
Present results to the user in a natural, readable format:
User: "What's the weather like in Beijing?" Action: Extract "Beijing", use coordinates (39.9042, 116.4074), run script, present forecast
User: "Will it be cold in Tokyo tomorrow?" Action: Extract "Tokyo" and "tomorrow", use coordinates (35.6762, 139.6503), run script, present tomorrow's temperature
User: "Get the temperature for latitude 52.52 and longitude 13.41" Action: Use provided coordinates directly, run script, present hourly data
User: "How hot will it be in Shanghai today?" Action: Extract "Shanghai", use coordinates (31.2304, 121.4737), run script, identify maximum temperature for today
這個天氣查詢工具質量中等偏上,文件非常詳細完善,功能描述清晰易懂,預存了多個常用城市座標使用方便。但存在一個嚴重 bug 會導致指令碼執行失敗,且只能查詢預存的城市,無法直接用城市名搜尋天氣,對於不常用地點支援有限。如果你懂技術可以修復 bug 後使用,否則建議等待修復版本。總體完成度較高,但穩定性和易用性還有提升空間。