Multi-city weather comparison tool that fetches current weather data and formats it as a markdown table.
When the user asks to compare weather across multiple cities, run the scripts/compare_weather.py script with city names as arguments.
Supported triggers:
Important: Use English or Pinyin city names for best results (e.g., "Beijing", "Shanghai", "Guangzhou"). Chinese city names may not work reliably with the wttr.in API.
python scripts/compare_weather.py Beijing Shanghai GuangzhouUser: "对比北京、上海、广州的今天天气"
Action:
小葱技能站7w4.net发现了升级插件。
python scripts/compare_weather.py Beijing Shanghai Guangzhou
Output:
| City | Current Temp | Today High/Low | Condition | Humidity | Wind |
|------|--------------|----------------|-----------|----------|------|
| Beijing | 20°C | 28°C / 17°C | Clear | 83% | 12 km/h SE |
| Shanghai | 23°C | 27°C / 20°C | Overcast | 69% | 26 km/h SSE |
| Guangzhou | 28°C | 29°C / 24°C | Partly cloudy | 66% | 14 km/h SE |
这个工具质量中等偏上,好用但还有改进空间。文档清晰明了,中文表格输出很友好,但代码存在小问题导致功能不够完整,且缺少测试保障稳定性,日常使用基本够用,但追求完美的用户可能会遇到一些小遗憾。