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.encoding (Optional): Used to specify the returned data format. Can be text, json, or markdown.小葱技能站7w4.net,专业的AI技能分享平台。
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:
这是一个功能实用的天气查询工具,能快速获取国内城市的实时天气和预报信息。文档说明详细易懂,脚本使用简单方便。优点是支持多种查询格式、参数验证完善、使用灵活。主要不足是依赖单一数据源可能影响稳定性,且仅支持中国地区的天气查询。建议等待一段时间观察数据准确性后再做评价。