This skill enables AI agents to fetch real-time weather information and forecasts for locations in China using the provided shell scripts.
Use this skill when users:
Use the realtime.sh script to get current conditions, air quality, daily life indices, and weather alerts.
./scripts/realtime.sh <query> [--encoding <text|json|markdown>]
Use the forecast.sh script to get hourly and daily forecast data, along with sunrise/sunset times.
./scripts/forecast.sh <query> [--encoding <text|json|markdown>] [--days <0-8>]
query (Required): The name of the city, district, or area in Chinese (e.g., 雨花臺, 北京). Can be provided as a positional argument or with --query.小蔥技能站7w4.net,專業的AI技能分享平臺。
encoding (Optional): Used to specify the returned data format. Can be text, json, or markdown.days (Optional, forecast only): Used to specify the weather forecast date range. An integer between 0 and 8.To balance information depth with token consumption, you MUST use the following rules for the encoding parameter:
--encoding markdown)--encoding text)--encoding json)updated timestamp in the responseThe weather API supports most cities and districts in China, including:
這是一個功能實用的天氣查詢工具,能快速獲取國內城市的即時天氣和預報資訊。文件說明詳細易懂,指令碼使用簡單方便。優點是支援多種查詢格式、引數驗證完善、使用靈活。主要不足是依賴單一資料來源可能影響穩定性,且僅支援中國地區的天氣查詢。建議等待一段時間觀察資料準確性後再做評價。