🌤️ MarsAI Weather Forecast — MarsAI 天气预报 — 无需 API 密钥的天气查询
v1.0.0获取当前天气和预报,无需 API 密钥。通过 curl 调用 wttr.in 和 Open-Meteo 等公有无密钥服务,提供文本、PNG 或 JSON 格式的天气信息。
0· 69·0 当前·0 累计
安全扫描
OpenClaw
安全
high confidence该技能仅为指令式天气助手,通过 curl 调用 wttr.in 和 Open-Meteo 等公有无密钥端点,符合其声明的用途。
安全有层次,运行前请审查代码。
运行时依赖
无特殊依赖
版本
latestv1.0.02026/3/31
["发布天气技能的初始版本。","无需 API 密钥,为任何位置获取当前天气和预报。","使用 wttr.in 提供人性化输出(文本或 PNG)。","包含 Open-Meteo 作为回退,提供 JSON 预报。","仅要求 curl,无额外依赖。"]
● 无害
安装命令
点击复制官方npx clawhub@latest install marsai-weather-forecast
🇨🇳 镜像加速npx clawhub@latest install marsai-weather-forecast --registry https://cn.longxiaskill.com
技能文档
两个免费服务,无需 API 密钥。
wttr.in (主服务)
快速一行命令:curl -s "wttr.in/London?format=3"
# 输出:伦敦:⛅️ +8°C
紧凑格式:
curl -s "wttr.in/London?format=%l:+%c+%t+%h+%w"
# 输出:伦敦:⛅️ +8°C 71% ↙5km/h
完整预报:
curl -s "wttr.in/London?T"
格式代码:
%c 条件 · %t 温度 · %h 湿度 · %w 风 · %l 位置 · %m 月相
提示:
- URL 编码空格:
wttr.in/New+York - 机场代码:
wttr.in/JFK - 单位:
?m(公制)?u(美制) - 仅今日:
?1· 仅当前:?0 - PNG:
curl -s "wttr.in/Berlin.png" -o /tmp/weather.png
Open-Meteo (回退,JSON)
免费,无密钥,适合程序化使用:curl -s "https://api.open-meteo.com/v1/forecast?latitude=51.5&longitude=-0.12¤t_weather=true"
查找城市坐标,然后查询。返回包含温度、风速、天气代码的 JSON。
文档:https://open-meteo.com/en/docs数据来源:ClawHub ↗ · 中文优化:龙虾技能库