elizaOS/eliza✦ 精选0°

weather

仓库创建 2024年7月9日最近提交 1 小时前SkillHot 收录 1 小时前
▸ 精选理由

简单可靠、跨平台且零配置,适合频繁询问天气的场景。

这个 Skill 做什么

使用无需 API Key 的免费服务(如 wttr.in)获取实时天气和预报信息。

用无需 API Key 的免费服务(比如 wttr.in)通过 curl 获取实时天气和预报信息。想知道某地当前温度、风向风速、湿度或几天的天气预报时就能用。支持一行简洁输出或更完整的预报格式,适合在终端或脚本里快速查询。

▸ 展开 SKILL.md 英文原文

Get current weather and forecasts (no API key required). Use when the user asks about the weather, temperature, forecast, wind, humidity, or climate conditions for a city or location. Fetches real-time weather data from free services using curl.

数据与抓取天气免费APIwttr.in通用✓ ClawHub 收录
1.9w
Stars
5.6k
Forks
35
仓库内 Skill
积累中
7 日增星
安装 / 使用
给你的 Agent 一句话(通用)
帮我安装这个 skill:https://raw.githubusercontent.com/elizaOS/eliza/develop/packages/skills/skills/weather/SKILL.md
或 curl 直取 SKILL.md
curl -fsSL "https://raw.githubusercontent.com/elizaOS/eliza/develop/packages/skills/skills/weather/SKILL.md"
SKILL.MD 节选查看完整文件 ↗
# Weather

Two free services, no API keys needed.

## wttr.in (primary)

Quick one-liner:

```bash
curl -s "wttr.in/London?format=3"
# Output: London: ⛅️ +8°C
```

Compact format:

```bash
curl -s "wttr.in/London?format=%l:+%c+%t+%h+%w"
# Output: London: ⛅️ +8°C 71% ↙5km/h
```

Full forecast:

```bash
curl -s "wttr.in/London?T"
```

Format codes: `%c` condition · `%t` temp · `%h` humidity · `%w` wind · `%l` location · `%m` moon

Tips:

- URL-encode spaces: `wttr.in/New+York`
- Airport codes: `wttr.in/JFK`
- Units: `?m` (metric) `?u` (USCS)
- Today only: `?1` · Current only: `?0`
- PNG: `curl -s "wttr.in/Berlin.png" -o /tmp/weather.png`

## Open-Meteo JSON

Free, no key, useful for programmat
via SKILL·HOT · 数据来自 GitHub 公开信息 · 原文版权归作者所有