pp-open-meteo

Compare original and translation side by side

🇺🇸

Original

English
🇨🇳

Translation

Chinese

Open-Meteo — Printing Press CLI

Open-Meteo — Printing Press CLI工具

Prerequisites: Install the CLI

前提条件:安装CLI

This skill drives the
open-meteo-pp-cli
binary. You must verify the CLI is installed before invoking any command from this skill. If it is missing, install it first:
  1. Install via the Printing Press installer:
    bash
    npx -y @mvanhorn/printing-press install open-meteo --cli-only
  2. Verify:
    open-meteo-pp-cli --version
  3. Ensure
    $GOPATH/bin
    (or
    $HOME/go/bin
    ) is on
    $PATH
    .
If the
npx
install fails (no Node, offline, etc.), fall back to a direct Go install (requires Go 1.23+):
bash
go install github.com/mvanhorn/printing-press-library/library/other/open-meteo/cmd/open-meteo-pp-cli@latest
If
--version
reports "command not found" after install, the install step did not put the binary on
$PATH
. Do not proceed with skill commands until verification succeeds.
本技能基于
open-meteo-pp-cli
二进制文件运行。在调用本技能的任何命令前,必须确认CLI已安装。若未安装,请先执行以下步骤:
  1. 通过Printing Press安装程序安装:
    bash
    npx -y @mvanhorn/printing-press install open-meteo --cli-only
  2. 验证安装:
    open-meteo-pp-cli --version
  3. 确保
    $GOPATH/bin
    (或
    $HOME/go/bin
    )已添加到
    $PATH
    环境变量中。
npx
安装失败(如无Node环境、离线等),可改用Go直接安装(要求Go 1.23及以上版本):
bash
go install github.com/mvanhorn/printing-press-library/library/other/open-meteo/cmd/open-meteo-pp-cli@latest
若安装后执行
--version
提示“command not found”,说明安装程序未将二进制文件添加到
$PATH
中。请在验证成功前不要执行技能命令。

When to Use This CLI

何时使用本CLI

Use this CLI for any weather, climate, or air-quality question that does not require a paid commercial agreement. It covers forecasts (16 days, multiple models), historicals (ERA5 from 1940), marine waves, air quality with pollen, river flood discharge, CMIP6 climate projections, and ensemble runs. Reach for the novel commands (compare, normals, weather-mix, panel, is-good-for) when the user is asking a decision or anomaly question rather than a raw-data question.
当你有天气、气候或空气质量相关问题且无需付费商业协议时,可使用本CLI。它涵盖16天多模型天气预报、1940年以来的ERA5历史数据、海浪数据、含花粉的空气质量数据、河流洪水流量、CMIP6气候预测以及集合预报。当用户提出决策类或异常分析类问题(而非原始数据查询)时,可使用特色命令(compare、normals、weather-mix、panel、is-good-for)。

When Not to Use This CLI

何时不使用本CLI

Do not activate this CLI for requests that require creating, updating, deleting, publishing, commenting, upvoting, inviting, ordering, sending messages, booking, purchasing, or changing remote state. This printed CLI exposes read-only commands for inspection, export, sync, and analysis.
请勿在需要创建、更新、删除、发布、评论、点赞、邀请、订购、发送消息、预订、购买或修改远程状态的请求中激活本CLI。本CLI仅提供用于查看、导出、同步和分析的只读命令。

Unique Capabilities

独特功能

These capabilities aren't available in any other tool for this API.
以下功能是其他同类型API工具所不具备的:

Local state that compounds

可累积的本地状态

  • forecast diff
    — See exactly what changed since the last forecast pull for this location — temperature deltas, new precipitation hours, weather-code shifts.
    Pick this when an agent needs to react to forecast changes (alerting, replanning) rather than to the current forecast itself.
    bash
    open-meteo-pp-cli forecast diff --place Seattle --json --select changes
  • normals
    — Compute the 30-year (or user-specified) climate normal for any (location, day-of-year, variable) tuple.
    Use to ground a 'normal vs current' answer. Also useful for travel/timing recommendations across decades.
    bash
    open-meteo-pp-cli normals --place Seattle --month 7 --variable temperature_2m_max --years 30 --json
  • accuracy
    — For any past date, compare what the model predicted (cached snapshot) against what actually happened (archive ground truth).
    Use to score forecast trust over time, or to debug a 'why did the forecast change?' question.
    bash
    open-meteo-pp-cli accuracy --place Seattle --date 2025-12-25 --variable temperature_2m_max --json
  • weather-mix
    — Distribution of WMO weather conditions (% clear, % rain, % storms, etc.) over an arbitrary historical window for a place.
    Use for travel planning, climatology summaries, or 'how often does it rain in November?' questions.
    bash
    open-meteo-pp-cli weather-mix --place Seattle --past-days 30 --json
  • forecast diff
    — 查看自上次获取该地点预报以来的具体变化——温度差值、新增降水时段、天气代码变动。
    当Agent需要对预报变化做出反应(如告警、重新规划)而非仅关注当前预报时,使用此命令。
    bash
    open-meteo-pp-cli forecast diff --place Seattle --json --select changes
  • normals
    — 计算任意(地点、一年中的某天、变量)组合的30年(或用户指定时长)气候正常值。
    用于生成“正常值vs当前值”的对比结果,也可用于跨十年的旅行/时间规划建议。
    bash
    open-meteo-pp-cli normals --place Seattle --month 7 --variable temperature_2m_max --years 30 --json
  • accuracy
    — 针对任意过去日期,对比模型预测值(缓存快照)与实际发生情况(历史存档真实数据)。
    用于长期评估预报可信度,或解答“预报为何变化?”这类问题。
    bash
    open-meteo-pp-cli accuracy --place Seattle --date 2025-12-25 --variable temperature_2m_max --json
  • weather-mix
    — 统计任意历史时间段内某地点的WMO天气状况分布(晴天占比、雨天占比、风暴占比等)。
    用于旅行规划、气候总结,或解答“西雅图11月降雨频率如何?”这类问题。
    bash
    open-meteo-pp-cli weather-mix --place Seattle --past-days 30 --json

Cross-API joins

跨API关联查询

  • compare
    — Compare today's weather (or any forecast hour) against the 30-year climate normal for that date and place.
    Use when a user asks 'is this weather unusual?' or 'how does this compare to historical?' — a single API call cannot answer.
    bash
    open-meteo-pp-cli compare --place Seattle --metric temperature_2m_mean --years 30 --json
  • is-good-for
    — Verdict (GO / CAUTION / STOP) for surfing, skiing, hiking, running, biking based on combined forecast + marine + air-quality thresholds.
    Use when the user asks a decision question, not a data question. Saves the agent from synthesizing 3 endpoint calls into a verdict.
    bash
    open-meteo-pp-cli is-good-for surfing --place "Half Moon Bay, CA" --json
  • compare
    — 将当日天气(或任意预报时段)与该地点对应日期的30年气候正常值进行对比。
    当用户询问“这种天气是否异常?”或“与历史数据相比如何?”时使用——单一API调用无法解答这类问题。
    bash
    open-meteo-pp-cli compare --place Seattle --metric temperature_2m_mean --years 30 --json
  • is-good-for
    — 结合天气预报+海洋气象+空气质量阈值,给出冲浪、滑雪、徒步、跑步、骑行等活动的 verdict(GO / CAUTION / STOP)建议。
    当用户提出决策类问题而非数据查询类问题时使用,省去Agent将3个端点调用结果合成结论的步骤。
    bash
    open-meteo-pp-cli is-good-for surfing --place "Half Moon Bay, CA" --json

Agent-native plumbing

Agent原生适配

  • panel
    — One-command snapshot panel for N locations side-by-side — batched in a single Open-Meteo call when possible.
    Use to compare conditions across locations in one shot; cheaper and faster than N separate calls.
    bash
    open-meteo-pp-cli panel --place Seattle,Berlin,Tokyo --current temperature_2m,wind_speed_10m,weather_code --json
  • panel
    — 一键生成多个地点的并排快照面板——尽可能通过单次Open-Meteo调用批量处理。
    用于一次性对比多个地点的天气状况,比N次单独调用更经济、更快。
    bash
    open-meteo-pp-cli panel --place Seattle,Berlin,Tokyo --current temperature_2m,wind_speed_10m,weather_code --json

Command Reference

命令参考

air-quality — Air quality and pollen: PM2.5, PM10, ozone, NO2, SO2, CO, dust, pollens, EU/US AQI, UV.
  • open-meteo-pp-cli air-quality
    — Air quality forecast and historical: pollutants, AQI, pollen, UV.
archive — Historical weather data (ERA5 reanalysis, 1940 to ~5 days ago). Same variable surface as forecast.
  • open-meteo-pp-cli archive
    — Historical hourly/daily weather observations from ERA5 (1940 to ~5 days ago).
climate — CMIP6 climate change projections (1950-2050) under SSP scenarios.
  • open-meteo-pp-cli climate
    — Daily CMIP6 climate projections for any (lat, lon) under SSP scenarios. Models include EC_Earth3P_HR, CMCC_CM2_VHR4,...
elevation — Digital elevation model lookup. Supports up to 100 coordinates per call.
  • open-meteo-pp-cli elevation
    — Lookup elevation in meters for one or more coordinate pairs (up to 100).
ensemble — Ensemble forecasts (all model members) for uncertainty quantification.
  • open-meteo-pp-cli ensemble
    — Hourly ensemble forecasts; returns all ensemble members so you can quantify uncertainty.
flood — River discharge / flood forecasts (GloFAS).
  • open-meteo-pp-cli flood
    — Daily river discharge forecasts and historicals from GloFAS.
forecast — Weather forecast (up to 16 days). Free, no API key, hourly + daily + current resolution. Default model is best-available; pass --models for specific models (gfs_seamless, ecmwf_ifs025, dwd_icon, jma_seamless, metno_seamless, gem_seamless, meteofrance_arpege_world).
  • open-meteo-pp-cli forecast
    — 7-16 day weather forecast for one or more coordinates. Pass comma-separated latitude/longitude for batch fetch.
geocode — Geocoding: search locations by name/postcode, or look up a location by ID.
  • open-meteo-pp-cli geocode get
    — Look up a single location by its Open-Meteo geocoding ID.
  • open-meteo-pp-cli geocode search
    — Search locations worldwide by name ('Berlin', 'Springfield, IL') or postcode.
marine — Marine weather: wave height, period, direction, swell components, sea-surface temperature.
  • open-meteo-pp-cli marine
    — Marine forecast/historical: waves, swells, sea-surface temperature.
seasonal — Seasonal forecasts (up to 9 months) using NCEP CFSv2.
  • open-meteo-pp-cli seasonal
    — 9-month seasonal forecast at six-hourly resolution. Default model is NCEP CFSv2.
air-quality — 空气质量与花粉数据:PM2.5、PM10、臭氧、NO2、SO2、CO、粉尘、花粉、欧盟/美国AQI、紫外线。
  • open-meteo-pp-cli air-quality
    — 空气质量预报与历史数据:污染物、AQI、花粉、紫外线。
archive — 历史气象数据(ERA5再分析数据,1940年至约5天前),变量维度与预报一致。
  • open-meteo-pp-cli archive
    — 来自ERA5的逐小时/逐日历史气象观测数据(1940年至约5天前)。
climate — CMIP6气候变化预测数据(1950-2050年),基于SSP情景。
  • open-meteo-pp-cli climate
    — 任意经纬度地点在SSP情景下的逐日CMIP6气候预测数据,涉及模型包括EC_Earth3P_HR、CMCC_CM2_VHR4等。
elevation — 数字高程模型查询,支持单次调用最多100个坐标。
  • open-meteo-pp-cli elevation
    — 查询一个或多个坐标对的海拔高度(单位:米,最多100个)。
ensemble — 集合预报(所有模型成员),用于不确定性量化。
  • open-meteo-pp-cli ensemble
    — 逐小时集合预报,返回所有集合成员数据以量化不确定性。
flood — 河流流量/洪水预报数据(GloFAS)。
  • open-meteo-pp-cli flood
    — 来自GloFAS的逐日河流流量预报与历史数据。
forecast — 天气预报(最长16天),免费无需API密钥,支持逐小时、逐日、当前天气三种分辨率。默认使用最优模型;可通过
--models
指定特定模型(gfs_seamless、ecmwf_ifs025、dwd_icon、jma_seamless、metno_seamless、gem_seamless、meteofrance_arpege_world)。
  • open-meteo-pp-cli forecast
    — 一个或多个坐标的7-16天天气预报,传入逗号分隔的纬度/经度可批量获取数据。
geocode — 地理编码:按名称/邮政编码搜索地点,或按ID查询地点。
  • open-meteo-pp-cli geocode get
    — 通过Open-Meteo地理编码ID查询单个地点。
  • open-meteo-pp-cli geocode search
    — 按名称(如'Berlin'、'Springfield, IL')或邮政编码搜索全球地点。
marine — 海洋气象数据:浪高、浪周期、浪向、涌浪成分、海面温度。
  • open-meteo-pp-cli marine
    — 海洋气象预报/历史数据:海浪、涌浪、海面温度。
seasonal — 季节性预报(最长9个月),使用NCEP CFSv2模型。
  • open-meteo-pp-cli seasonal
    — 9个月的逐六小时季节性预报,默认模型为NCEP CFSv2。

Freshness Contract

数据新鲜度约定

This printed CLI owns bounded freshness only for registered store-backed read command paths. In
--data-source auto
mode, those paths check
sync_state
and may run a bounded refresh before reading local data.
--data-source local
never refreshes.
--data-source live
reads the API and does not mutate the local store. Set
OPEN_METEO_NO_AUTO_REFRESH=1
to skip the freshness hook without changing source selection.
When JSON output uses the generated provenance envelope, freshness metadata appears at
meta.freshness
. Treat it as current-cache freshness for the covered command path, not a guarantee of complete historical backfill or API-specific enrichment.
本CLI仅对注册的存储型只读命令路径保证有限的数据新鲜度。在
--data-source auto
模式下,这些路径会检查
sync_state
,并可能在读取本地数据前进行有限刷新。
--data-source local
模式从不刷新数据。
--data-source live
模式直接读取API且不修改本地存储。设置
OPEN_METEO_NO_AUTO_REFRESH=1
可跳过新鲜度检查,无需更改数据源选择。
当JSON输出使用生成的溯源封装格式时,新鲜度元数据会显示在
meta.freshness
字段中。该字段代表对应命令路径的当前缓存新鲜度,不保证完整的历史回填或特定API的增强数据。

Finding the right command

查找合适的命令

When you know what you want to do but not which command does it, ask the CLI directly:
bash
open-meteo-pp-cli which "<capability in your own words>"
which
resolves a natural-language capability query to the best matching command from this CLI's curated feature index. Exit code
0
means at least one match; exit code
2
means no confident match — fall back to
--help
or use a narrower query.
当你知道要执行的操作但不确定对应命令时,可直接询问CLI:
bash
open-meteo-pp-cli which "<用你自己的语言描述功能>"
which
命令会将自然语言的功能查询解析为CLI精选功能索引中最匹配的命令。退出码
0
表示至少有一个匹配项;退出码
2
表示无匹配结果——此时可改用
--help
或缩小查询范围。

Recipes

使用示例

Pick a slim forecast slice for an agent

为Agent获取精简的预报数据

bash
open-meteo-pp-cli forecast --latitude 47.6062 --longitude -122.3321 --hourly temperature_2m,precipitation,weather_code --forecast-days 3 --json --select hourly.time,hourly.temperature_2m,hourly.weather_code
Use --select with dotted paths to narrow deeply nested time-series arrays. Open-Meteo responses can be tens of KB; this trims them to the columns you actually need.
bash
open-meteo-pp-cli forecast --latitude 47.6062 --longitude -122.3321 --hourly temperature_2m,precipitation,weather_code --forecast-days 3 --json --select hourly.time,hourly.temperature_2m,hourly.weather_code
使用
--select
配合点路径可筛选深层嵌套的时间序列数组。Open-Meteo响应数据可达数十KB,此命令可将数据精简至你实际需要的字段。

Diff what changed in tomorrow's forecast

对比明日预报的变化内容

bash
open-meteo-pp-cli forecast diff --place Seattle --json
Compares the current forecast against the cached prior pull for this place and emits only the changed hours.
bash
open-meteo-pp-cli forecast diff --place Seattle --json
将当前预报与该地点的缓存历史预报进行对比,仅输出有变化的时段数据。

Anomaly check: is this temperature unusual?

异常检查:当前温度是否异常?

bash
open-meteo-pp-cli compare --place Seattle --metric temperature_2m_mean --years 30 --json
Joins the 30-year ERA5 archive normal for the date and place against the current forecast.
bash
open-meteo-pp-cli compare --place Seattle --metric temperature_2m_mean --years 30 --json
将该地点对应日期的30年ERA5历史正常值与当前预报数据进行关联查询。

Side-by-side panel for travel planning

旅行规划用的多地点并排面板

bash
open-meteo-pp-cli panel --place "Seattle,Berlin,Tokyo" --current temperature_2m,weather_code --json
Open-Meteo accepts comma-separated coords natively; the CLI batches the call and labels each result by place.
bash
open-meteo-pp-cli panel --place "Seattle,Berlin,Tokyo" --current temperature_2m,weather_code --json
Open-Meteo原生支持逗号分隔的坐标输入;CLI会批量处理调用并按地点标记每个结果。

How often does it rain in October in Seattle?

西雅图10月降雨频率如何?

bash
open-meteo-pp-cli weather-mix --place Seattle --start-date 2024-10-01 --end-date 2024-10-31 --json
Aggregates archive hourly WMO codes into a category histogram (% clear / % rain / % storms / etc.).
bash
open-meteo-pp-cli weather-mix --place Seattle --start-date 2024-10-01 --end-date 2024-10-31 --json
将历史逐小时WMO天气代码聚合为分类直方图(晴天占比/雨天占比/风暴占比等)。

Auth Setup

认证设置

No authentication required.
Run
open-meteo-pp-cli doctor
to verify setup.
无需认证。
执行
open-meteo-pp-cli doctor
可验证设置是否正确。

Agent Mode

Agent模式

Add
--agent
to any command. Expands to:
--json --compact --no-input --no-color --yes
.
  • Pipeable — JSON on stdout, errors on stderr
  • Filterable
    --select
    keeps a subset of fields. Dotted paths descend into nested structures; arrays traverse element-wise. Critical for keeping context small on verbose APIs:
    bash
    open-meteo-pp-cli air-quality --agent --select id,name,status
  • Previewable
    --dry-run
    shows the request without sending
  • Offline-friendly — sync/search commands can use the local SQLite store when available
  • Non-interactive — never prompts, every input is a flag
  • Read-only — do not use this CLI for create, update, delete, publish, comment, upvote, invite, order, send, or other mutating requests
在任意命令后添加
--agent
参数,等效于:
--json --compact --no-input --no-color --yes
  • 可管道传输 — JSON输出至标准输出,错误信息输出至标准错误
  • 可筛选
    --select
    参数保留指定字段子集。点路径可深入嵌套结构;数组会遍历每个元素。这在处理冗长API时对缩减上下文大小至关重要:
    bash
    open-meteo-pp-cli air-quality --agent --select id,name,status
  • 可预览
    --dry-run
    参数显示请求内容但不发送
  • 离线友好 — 同步/搜索命令可在本地SQLite存储可用时使用该存储
  • 非交互式 — 从不弹出提示,所有输入均通过参数传入
  • 只读 — 请勿使用本CLI执行创建、更新、删除、发布、评论、点赞、邀请、订购、发送或其他修改性请求

Response envelope

响应封装格式

Commands that read from the local store or the API wrap output in a provenance envelope:
json
{
  "meta": {"source": "live" | "local", "synced_at": "...", "reason": "..."},
  "results": <data>
}
Parse
.results
for data and
.meta.source
to know whether it's live or local. A human-readable
N results (live)
summary is printed to stderr only when stdout is a terminal — piped/agent consumers get pure JSON on stdout.
从本地存储或API读取数据的命令会将输出封装在溯源结构中:
json
{
  "meta": {"source": "live" | "local", "synced_at": "...", "reason": "..."},
  "results": <data>
}
解析
.results
字段获取数据,通过
.meta.source
字段判断数据是实时的还是本地缓存的。仅当标准输出为终端时,才会向标准错误输出人类可读的
N results (live)
摘要;管道/Agent消费者仅会在标准输出获取纯JSON数据。

Agent Feedback

Agent反馈

When you (or the agent) notice something off about this CLI, record it:
open-meteo-pp-cli feedback "the --since flag is inclusive but docs say exclusive"
open-meteo-pp-cli feedback --stdin < notes.txt
open-meteo-pp-cli feedback list --json --limit 10
Entries are stored locally at
~/.open-meteo-pp-cli/feedback.jsonl
. They are never POSTed unless
OPEN_METEO_FEEDBACK_ENDPOINT
is set AND either
--send
is passed or
OPEN_METEO_FEEDBACK_AUTO_SEND=true
. Default behavior is local-only.
Write what surprised you, not a bug report. Short, specific, one line: that is the part that compounds.
当你(或Agent)发现本CLI存在问题时,可记录反馈:
open-meteo-pp-cli feedback "the --since flag is inclusive but docs say exclusive"
open-meteo-pp-cli feedback --stdin < notes.txt
open-meteo-pp-cli feedback list --json --limit 10
反馈条目会本地存储在
~/.open-meteo-pp-cli/feedback.jsonl
中。仅当设置了
OPEN_METEO_FEEDBACK_ENDPOINT
且传入
--send
参数或设置
OPEN_METEO_FEEDBACK_AUTO_SEND=true
时,反馈才会被POST提交。默认行为仅本地存储。
请记录让你感到意外的内容,而非正式的bug报告。简短、具体、单条记录:这样的反馈才更有价值。

Output Delivery

输出交付

Every command accepts
--deliver <sink>
. The output goes to the named sink in addition to (or instead of) stdout, so agents can route command results without hand-piping. Three sinks are supported:
SinkEffect
stdout
Default; write to stdout only
file:<path>
Atomically write output to
<path>
(tmp + rename)
webhook:<url>
POST the output body to the URL (
application/json
or
application/x-ndjson
when
--compact
)
Unknown schemes are refused with a structured error naming the supported set. Webhook failures return non-zero and log the URL + HTTP status on stderr.
所有命令均支持
--deliver <sink>
参数。输出会发送至指定目标,同时(或替代)标准输出,因此Agent无需手动管道即可路由命令结果。支持三种目标:
目标效果
stdout
默认值;仅输出至标准输出
file:<path>
原子性地将输出写入
<path>
(先写入临时文件再重命名)
webhook:<url>
将输出主体POST至指定URL(当使用
--compact
时为
application/json
application/x-ndjson
格式)
不支持的格式会返回结构化错误,并列出支持的类型。Webhook提交失败会返回非零退出码,并在标准错误输出记录URL和HTTP状态码。

Named Profiles

命名配置文件

A profile is a saved set of flag values, reused across invocations. Use it when a scheduled agent calls the same command every run with the same configuration - HeyGen's "Beacon" pattern.
open-meteo-pp-cli profile save briefing --json
open-meteo-pp-cli --profile briefing air-quality
open-meteo-pp-cli profile list --json
open-meteo-pp-cli profile show briefing
open-meteo-pp-cli profile delete briefing --yes
Explicit flags always win over profile values; profile values win over defaults.
agent-context
lists all available profiles under
available_profiles
so introspecting agents discover them at runtime.
配置文件是一组保存的参数值,可在多次调用中复用。当定时Agent每次运行都使用相同配置调用同一命令时,可使用此功能(即HeyGen的“Beacon”模式)。
open-meteo-pp-cli profile save briefing --json
open-meteo-pp-cli --profile briefing air-quality
open-meteo-pp-cli profile list --json
open-meteo-pp-cli profile show briefing
open-meteo-pp-cli profile delete briefing --yes
显式参数优先级高于配置文件值;配置文件值优先级高于默认值。
agent-context
会在
available_profiles
下列出所有可用配置文件,以便Agent在运行时自动发现。

Exit Codes

退出码

CodeMeaning
0Success
2Usage error (wrong arguments)
3Resource not found
5API error (upstream issue)
7Rate limited (wait and retry)
10Config error
代码含义
0成功
2使用错误(参数错误)
3资源未找到
5API错误(上游问题)
7速率限制(请等待后重试)
10配置错误

Argument Parsing

参数解析

Parse
$ARGUMENTS
:
  1. Empty,
    help
    , or
    --help
    → show
    open-meteo-pp-cli --help
    output
  2. Starts with
    install
    → ends with
    mcp
    → MCP installation; otherwise → see Prerequisites above
  3. Anything else → Direct Use (execute as CLI command with
    --agent
    )
解析
$ARGUMENTS
的逻辑:
  1. 为空、
    help
    --help
    → 显示
    open-meteo-pp-cli --help
    输出
  2. install
    开头
    → 若结尾为
    mcp
    → 安装MCP服务器;否则 → 参考上方前提条件中的安装步骤
  3. 其他情况 → 直接使用(添加
    --agent
    参数执行CLI命令)

MCP Server Installation

MCP服务器安装

  1. Install the MCP server:
    bash
    go install github.com/mvanhorn/printing-press-library/library/other/open-meteo/cmd/open-meteo-pp-mcp@latest
  2. Register with Claude Code:
    bash
    claude mcp add open-meteo-pp-mcp -- open-meteo-pp-mcp
  3. Verify:
    claude mcp list
  1. 安装MCP服务器:
    bash
    go install github.com/mvanhorn/printing-press-library/library/other/open-meteo/cmd/open-meteo-pp-mcp@latest
  2. 在Claude Code中注册:
    bash
    claude mcp add open-meteo-pp-mcp -- open-meteo-pp-mcp
  3. 验证:
    claude mcp list

Direct Use

直接使用

  1. Check if installed:
    which open-meteo-pp-cli
    If not found, offer to install (see Prerequisites at the top of this skill).
  2. Match the user query to the best command from the Unique Capabilities and Command Reference above.
  3. Execute with the
    --agent
    flag:
    bash
    open-meteo-pp-cli <command> [subcommand] [args] --agent
  4. If ambiguous, drill into subcommand help:
    open-meteo-pp-cli <command> --help
    .
  1. 检查是否安装:
    which open-meteo-pp-cli
    若未找到,提供安装选项(见本文顶部的前提条件)。
  2. 将用户查询与上方“独特功能”和“命令参考”中的最佳命令匹配。
  3. 添加
    --agent
    参数执行命令:
    bash
    open-meteo-pp-cli <command> [subcommand] [args] --agent
  4. 若存在歧义,查看子命令帮助:
    open-meteo-pp-cli <command> --help