微算力 · API 导航与自营网关
API 接入 EN
未登录登录
🌦

专业级免费气象数据终端

openmeteo-sh-weather-advanced · vv1.2.2
入口已确认,内容待校验 文件树里有 SKILL.md,但正文还没采回,frontmatter 未核对。
效率 安全 A 级 作者 lstpsche 公开目录收录
564 下载 206 安装 1.5k 收藏 3.3k 浏览

简介

基于 Open-Meteo 免费 API 的高级天气查询工具,支持 1940 年以来的历史数据、多模型选择与精细化参数控制,无需 API Key 即可获取专业级气象信息。

原始描述

Advanced weather from free OpenMeteo API: historical data, detailed variable selection, model choice, past-days, and in-depth forecasts. Use when the user as...

通过你的 Agent 添加

安装目录:openmeteo-sh-weather-advanced/(目录名取自 SKILL.md 的 frontmatter name,不是 URL 里的 slug)。

点「快速安装」复制一段指令贴给你的 Agent:它会先下载到 /tmp、把文件清单和校验值给你看,你确认之后才解压安装。不会一步装完、也不改系统其它位置。

或者手动安装

Claude Code~/.claude/skills/openmeteo-sh-weather-advanced/
Codex CLI~/.codex/skills/openmeteo-sh-weather-advanced/
DeepSeek Harness~/.agents/skills/openmeteo-sh-weather-advanced/

包是「根级 SKILL.md + 作者附带的文件」,解压到上面的 <slug>/ 目录即可; 目录名不用换,也不要把包直接解压到 skills 根目录。 技能申请的权限由作者决定:装之前先看清单里有没有脚本、它会读写什么。

中文使用说明 来自收录源

核心用法

OpenMeteo Weather Advanced 是一款面向专业用户的高级天气查询技能,通过 openmeteo CLI 工具对接免费的 Open-Meteo API。该技能突破了基础天气查询的限制,提供三大核心能力:实时与预报天气(最长 16 天)、历史数据回溯(自 1940 年起)、以及精细化参数控制(50+ 气象变量)。

用户可通过城市名自动地理编码或直接坐标定位,灵活选择输出参数——从基础的温湿度、降水概率,到专业的海平面气压、露点温度、积雪深度、紫外线指数等。--llm 标志专为 AI 场景优化,输出紧凑的 TSV 格式,大幅降低 token 消耗。历史数据查询支持多种再分析模型(ERA5、CERRA 等),满足科研与商业分析需求。

显著优点

零成本专业数据:Open-Meteo 作为欧洲气象机构支持的开放项目,提供通常需付费订阅的高质量气象数据,无需注册或 API Key。

极致的查询精度:支持按小时粒度筛选特定日期窗口(--forecast-since),可针对"周五何时停雨"类问题精准获取数据,避免冗余传输。参数覆盖从体感温度到太阳辐射、从能见度到土壤温度的全维度指标。

LLM 原生设计:--llm 输出格式将天气代码自动解析为自然语言,TSV 结构便于 AI 直接消费,相比标准 JSON 减少 60% 以上 token 开销。

跨平台 CLI 生态:依赖的 openmeteo-sh 工具支持 Homebrew、APT 及源码安装,与主流系统无缝集成。

潜在缺点与局限性

外部依赖门槛:用户需自行安装 CLI 工具,对非技术用户存在配置成本;工具未预装时技能完全不可用。

网络依赖刚性:所有查询实时调用 Open-Meteo 服务端,无离线缓存机制,网络中断或 API 限流时功能失效。

地理编码不确定性:城市名依赖 Open-Meteo 的地理编码服务,对同名城市(如美国/英国的 Portland)需手动附加国家代码,否则可能返回错误位置。

历史数据模型差异:1940-2024 年的历史数据基于再分析模型(ERA5 等),与实测站数据存在系统性偏差,不适用于对精度要求极高的法律或保险场景。

适合的目标群体

  • 数据分析师与科研人员:需要长序列历史气象数据进行气候研究、能源建模或农业分析
  • 户外与运动行业从业者:滑雪、航海、登山等场景对积雪深度、阵风、紫外线等细分参数有刚性需求
  • 智能家居与 IoT 开发者:构建基于天气触发的自动化规则,需程序化获取结构化数据
  • 内容创作者与旅行规划者:快速生成目的地天气摘要,支持自然语言交互降低使用门槛

使用风险

性能风险:历史数据大范围查询(如整年数据)可能因数据量过大导致响应延迟,建议分批次获取。CLI 工具本身无内置超时重试机制,网络波动时需手动重试。

依赖项风险:openmeteo-sh 依赖系统级的 curl 与 jq,在精简容器环境或老旧系统中可能缺失。项目为个人维护(T3 来源),长期更新承诺弱于企业级产品。

数据准确性风险:预报数据基于数值天气预报模型,72 小时后精度显著下降;历史数据的空间分辨率(约 25km)可能无法反映微气候差异(如城市热岛、山谷效应)。

隐私合规风险:虽无用户数据收集,但查询请求包含 IP 地址与查询坐标,默认发送至 Open-Meteo 服务器(欧盟托管),对数据主权敏感场景需评估合规性。

技能正文


name: openmeteo-sh-weather-advanced description: "Advanced weather from free OpenMeteo API: historical data, detailed variable selection, model choice, past-days, and in-depth forecasts. Use when the user asks about historical weather, specific weather models, niche variables (pressure, dew point, snow depth, etc.), or needs fine-grained control beyond simple current/forecast queries." metadata: {"openclaw":{"emoji":"🌦","requires":{"bins":["openmeteo"]}}} homepage: https://github.com/lstpsche/openmeteo-sh user-invocable: true

OpenMeteo Weather — Advanced (openmeteo-sh)

Advanced weather queries via openmeteo CLI: historical data (from 1940), detailed variable selection, model choice, and fine-grained forecast control. No API key required.

CLI: openmeteo <command> [options]

Output format

Always use --llm — compact TSV output designed for LLMs. Weather codes are auto-resolved to text. Pass --raw only if the user explicitly asks for JSON.

Quick reference

# Current weather
openmeteo weather --current --city=Berlin --llm

# Current + 2-day forecast
openmeteo weather --current --forecast-days=2 --city=London --llm

# Only precipitation data
openmeteo weather --forecast-days=2 --city=Vienna \
  --hourly-params=precipitation,precipitation_probability,weather_code --llm

# Coordinates instead of city
openmeteo weather --current --lat=48.8566 --lon=2.3522 --llm

# Disambiguate city with country
openmeteo weather --current --city=Portland --country=US --llm

# Forecast starting from day 3 (skip today and tomorrow)
openmeteo weather --forecast-days=7 --forecast-since=3 --city=London --llm

# Historical weather
openmeteo history --city=Paris --start-date=2024-01-01 --end-date=2024-01-31 --llm

Location (pick one, required)

  • --city=NAME — city name, auto-geocoded; usually sufficient on its own
  • --country=CODE — optional country hint to disambiguate (e.g. US, GB). Only needed when city name is ambiguous. Pass whatever you have or omit.
  • --lat=NUM --lon=NUM — direct WGS84 coordinates, skips geocoding

Commands

weather — forecast up to 16 days + current conditions

Mode (at least one required):

  • --current — fetch current conditions
  • --forecast-days=N — days of forecast, 0–16 (default 7)
  • --forecast-since=N — start from day N of the forecast (1=today, 2=tomorrow, etc.). Trims the window server-side. Must be <= forecast-days.

Param overrides (comma-separated variable names):

  • --current-params=LIST — override current variables
  • --hourly-params=LIST — override hourly variables
  • --daily-params=LIST — override daily variables

Units:

  • --temperature-unit=UNIT — celsius (default) / fahrenheit
  • --wind-speed-unit=UNIT — kmh (default) / ms / mph / kn
  • --precipitation-unit=UNIT — mm (default) / inch

Other:

  • --past-days=N — include past days, 0–92 (default 0)
  • --timezone=TZ — IANA timezone or auto (default auto)
  • --model=MODEL — weather model (default best_match)

history — historical weather from 1940

Requires --start-date=YYYY-MM-DD and --end-date=YYYY-MM-DD. Supports --hourly-params, --daily-params, --model (era5, era5_land, cerra, ecmwf_ifs, etc.).

Common weather variables

Override defaults via --current-params, --hourly-params, --daily-params. For the full variable list with descriptions, run openmeteo weather help --daily-params (or --hourly-params, --current-params).

Current & hourly (most used)

  • temperature_2m — air temp at 2m, C
  • apparent_temperature — feels-like temp, C
  • relative_humidity_2m — humidity, %
  • precipitation — total precipitation (rain+showers+snow), mm
  • precipitation_probability (hourly only) — chance of precipitation, %
  • weather_code — condition code, auto-resolved to text (e.g. "Light rain")
  • wind_speed_10m — wind at 10m, km/h
  • wind_gusts_10m — gusts at 10m, km/h
  • cloud_cover — total cloud cover, %
  • is_day (current only) — daytime flag, 0/1
  • uv_index (hourly only) — UV index
  • snowfall — snowfall, cm
  • visibility — visibility, m
  • pressure_msl — sea-level pressure, hPa

Daily (most used)

  • temperature_2m_max / temperature_2m_min — daily max/min temp, C
  • precipitation_sum — total daily precipitation, mm
  • precipitation_probability_max — max precipitation chance, %
  • weather_code — dominant condition for the day
  • wind_speed_10m_max — max wind, km/h
  • sunrise / sunset — ISO 8601 times
  • uv_index_max — max UV index
  • snowfall_sum — total daily snowfall, cm
  • apparent_temperature_max / apparent_temperature_min — daily feels-like range, C

Detailed variable help

Run openmeteo weather help <flag> to get a full list of available variables with descriptions:

openmeteo weather help --daily-params
openmeteo weather help --hourly-params
openmeteo weather help --current-params
openmeteo history help --daily-params

Add --llm for compact TSV output: openmeteo weather help --daily-params --llm

Use this when you need a variable beyond the common ones listed above.

Rules

  1. Always use --llm output format — most token-efficient, designed for agents.
  2. Quote all user-provided values in shell commands. City names, dates, and any free-text input must be quoted to prevent shell interpretation: --city="New York", --city="St. Petersburg". Only known-safe tokens (numbers, single ASCII words) may be unquoted.
  3. When the user asks about weather without specifying a location, use the user's default city/country if known from session context.
  4. Present results as a natural-language summary — do not paste raw CLI output to the user.
  5. Use --forecast-days=1 or --forecast-days=2 for today/tomorrow — don't waste tokens on 7-day fetches.
  6. For targeted questions (e.g. "when will the rain stop?"), override params via --hourly-params or --daily-params to fetch only what's needed, analyze the output and give answer.
  7. Use --forecast-since=N when the user asks about a specific future day (e.g. "weather on Friday") to avoid fetching unnecessary earlier days.
  8. When the user switches cities ("and what about London?"), carry over all params used in prior weather queries this conversation — including any added in follow-ups. The new city gets the union of all previously requested params.

Conversational examples

User: "What's the weather like?"

  • Location not specified -> use city/country from session context.
  • General overview -> --current.
openmeteo weather --current --city=Berlin --llm
  • Summarize naturally: "Clear sky, -12C (feels like -17C), wind 9 km/h."

User: "When will the rain stop?"

  • Needs hourly precipitation timeline.
openmeteo weather --forecast-days=2 --city=Berlin \
  --hourly-params=precipitation,precipitation_probability,weather_code --llm
  • Scan output, find when precipitation drops to 0. Answer: "Rain should stop around 14:00 today."

User: "Do I need an umbrella?"

openmeteo weather --forecast-days=1 --city=Berlin \
  --hourly-params=precipitation,precipitation_probability,weather_code --llm
  • Yes/no with reasoning: "Yes — 70% chance of rain between 11:00-15:00, up to 2mm."

User: "What's the weather this weekend in Rome?"

  • Calculate --forecast-since to skip to Saturday, --forecast-days to cover through Sunday.
openmeteo weather --forecast-days=7 --forecast-since=5 --city=Rome \
  --daily-params=temperature_2m_max,temperature_2m_min,weather_code,precipitation_sum --llm
  • Present only weekend days: "Saturday: 14/8C, partly cloudy. Sunday: 16/9C, clear."

User: "What's the temperature outside?"

  • Only wants temperature -> narrow params.
openmeteo weather --current --city=Berlin \
  --current-params=temperature_2m,apparent_temperature --llm
  • Short answer: "-5C, feels like -9C."

User: "How much rain fell in Tokyo last June?"

openmeteo history --city=Tokyo --start-date=2025-06-01 --end-date=2025-06-30 \
  --daily-params=precipitation_sum,rain_sum --llm
  • Summarize total and notable days.

正文来自原始发布页, 版权归作者所有,许可未标注。 权利人认为有不妥,可申请下架。

标签

data-analyticsapiproductivitycontent-mediaautomationeducation-research

同类 Skill