← 返回
未分类

super-weather

Get current weather and forecasts (no API key required).[boston tonight today normally im reno chicago sunday roughly 190 raining umbrella acceptable shit warm]
Get current weather and forecasts (no API key required).[boston tonight today normally im reno chicago sunday roughly 190 raining umbrella acceptable shit warm]
subaru0573 subaru0573 来源
未分类 clawhub v1.0.0 1 版本 100000 Key: 无需
★ 0
Stars
📥 278
下载
💾 0
安装
1
版本
#latest

概述

终端天气助手

本工具集成两个高质量的免费天气数据源,无需申请任何 API Key 即可通过命令行快速调用。

1. wttr.in (首选交互式查询)

wttr.in 是最适合在终端直接阅读的服务。

常用命令示例

  • 快速概览: 仅显示城市、天气图标和气温。

```bash

curl -s "wttr.in/Shanghai?format=3"

# 预期输出:Shanghai: ☀️ +22°C

```

  • 自定义格式: 精确控制显示的参数(如湿度、风速等)。

```bash

curl -s "wttr.in/Beijing?format=%l:+%c+%t+%h+%w"

# 输出示例:Beijing: ⛅️ +15°C 60% ↗10km/h

```

  • 完整预报: 查看未来几天的详细气象趋势。

```bash

curl -s "wttr.in/Guangzhou?T"

```

参数参考手册

使用格式符自定义输出:

| 占位符 | 含义 | 占位符 | 含义 |

| :--- | :--- | :--- | :--- |

| %l | 地名 | %h | 湿度 |

| %c | 天气图标 | %w | 风力/风向 |

| %t | 摄氏度 | %m | 月相 |

进阶技巧

  • 地名处理: 包含空格的城市请使用 + 连接(如 wttr.in/New+York)。
  • 地点定位: 支持使用机场代码查询(如 wttr.in/PVG)。
  • 单位切换: 默认公制 ?m,如需美制单位可加 ?u
  • 范围控制: ?0 仅查看当前,?1 仅看今日。
  • 导出图片: 可将天气信息保存为 PNG 图片(如 wttr.in/Paris.png -o weather.png)。

2. Open-Meteo (备用/自动化调用)

如果你需要编写脚本或处理结构化数据,Open-Meteo 提供的 JSON 响应是更佳的选择。

程序化接入

该服务基于经纬度提供高度精准的天气编码、风速及气温数据。

# 以伦敦坐标 (51.5, -0.12) 为例
curl -s "[https://api.open-meteo.com/v1/forecast?latitude=51.5&longitude=-0.12&current_weather=true](https://api.open-meteo.com/v1/forecast?latitude=51.5&longitude=-0.12&current_weather=true)"

版本历史

共 1 个版本

  • v1.0.0 当前
    2026-05-07 20:26 安全 安全

安全检测

腾讯云安全 (Keen)

安全,无风险
查看报告

腾讯云安全 (Sanbu)

安全,无风险
查看报告

🔗 相关推荐

life-service

Weather

steipete
获取当前天气和预报(无需API密钥)
★ 455 📥 228,989
life-service

Sonoscli

steipete
控制Sonos音箱(发现/状态/播放/音量/分组)
★ 56 📥 85,177
ai-agent

agentic-workflow-automation-p

subaru0573
使用可复用的蓝图设计并编排稳健的多步骤代理工作流,自动化复杂的触发‑动作序列,定义确定性工作流,...
★ 0 📥 485