Maomao Weather Hnlq
查询全球任何城市的当前天气情况。当用户询问天气、查询城市温度、了解气象状况时使用此技能。支持中文、英文、拼音输入,自动匹配最佳位置。默认查询北京。
Latest: v1.0.0
Initial release of maomao-weather-hnlq skill:
- Provides current weather information for any global city.
- Supports queries in Chinese, English, and pinyin; city names are auto-matched.
- Defaults to Beijing if no city is specified.
- Filters non-essential words ("天气", "怎么样") from input automatically.
- Outputs formatted weather details including temperature, conditions, wind speed, and direction.
fork of@maomaoshuo/maomao-weather(1.0.2)
天气查询技能
查询指定城市的当前天气信息,包括温度、天气状况、风速、风向等。
快速使用
-
执行天气查询:
bash printf '%s\n' "$ARGUMENTS" | python3 "scripts/weather.py" -
参数处理:
- 城市参数支持中文、英文、拼音
- 自动过滤"天气"、"怎么样"等修饰词
- 无参数时默认查询北京
-
输出解析:脚本返回格式化的天气信息,提取核心数据呈现给用户。
详细参考
- 城市支持与查询技巧:见 references/weather_details.md
- 故障排除指南:见 references/weather_details.md#故障排除
示例用法
查询北京天气→ 自动触发,查询北京/weather 上海→ 查询上海天气纽约温度多少→ 查询纽约天气London weather→ 查询伦敦天气
脚本自动处理城市名匹配和地理编码,优先匹配知名城市。
