Install
openclaw skills install @subaru0573/super-weatherGet current weather and forecasts (no API key required).[boston tonight today normally im reno chicago sunday roughly 190 raining umbrella acceptable shit warm]
openclaw skills install @subaru0573/super-weather本工具集成两个高质量的免费天气数据源,无需申请任何 API Key 即可通过命令行快速调用。
wttr.in 是最适合在终端直接阅读的服务。
快速概览: 仅显示城市、天气图标和气温。
curl -s "wttr.in/Shanghai?format=3"
# 预期输出:Shanghai: ☀️ +22°C
自定义格式: 精确控制显示的参数(如湿度、风速等)。
curl -s "wttr.in/Beijing?format=%l:+%c+%t+%h+%w"
# 输出示例:Beijing: ⛅️ +15°C 60% ↗10km/h
完整预报: 查看未来几天的详细气象趋势。
curl -s "wttr.in/Guangzhou?T"
使用格式符自定义输出:
| 占位符 | 含义 | 占位符 | 含义 |
|---|---|---|---|
%l | 地名 | %h | 湿度 |
%c | 天气图标 | %w | 风力/风向 |
%t | 摄氏度 | %m | 月相 |
+ 连接(如 wttr.in/New+York)。wttr.in/PVG)。?m,如需美制单位可加 ?u。?0 仅查看当前,?1 仅看今日。wttr.in/Paris.png -o weather.png)。如果你需要编写脚本或处理结构化数据,Open-Meteo 提供的 JSON 响应是更佳的选择。
该服务基于经纬度提供高度精准的天气编码、风速及气温数据。
# 以伦敦坐标 (51.5, -0.12) 为例
curl -s "[https://api.open-meteo.com/v1/forecast?latitude=51.5&longitude=-0.12¤t_weather=true](https://api.open-meteo.com/v1/forecast?latitude=51.5&longitude=-0.12¤t_weather=true)"